[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 8/8] xen/dom0less: store xenstore event channel in page


  • To: Jason Andryuk <jason.andryuk@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Wed, 27 Aug 2025 10:03:11 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UOmTl6j6JPjcCc9p7W7fW1X7z7OXS8mLrvOmJ0hFw+g=; b=m9ccbifJ7iwjdKKu1ZwvKF85wcXM1cxugsn+uXfhIvZTUKOB2VqdvGXa/DZCIr13tO1FGUEDgMmyRGWNpfc8pYxLyJPBh7q/TK3PuD4axmRoZcdqBRGry3NmEZoEeSp45d7+QmaVkR1UkZhXg20KzXTJ6gPCMXdnuMplZO/d6k325S0cSAqXLPZVGUPPHZzaWCk3KBv2XvIfY0yOvqRcPc0SCOl6KfHUMy7YzYZGmcMyncZjBWVdTp0F60NYC0IqyF02VH/UvKNtGftht5YY0wqLN92hSuOEKvJlt+g0QLY/64TvrciSOjnXca18rMuOOtCvhEmGfRRfPbM6aJFWMg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J1VtaQuGS/PuVQSAwqR//2EqxtHuyhko1LQ4OuKtYdRdK+ZGeEvG1IqIRP0xMoZPGdWgaNdv3bYt6milgfvKZrS3q4o/mHZBg8t01p7wZ8dUoD5rNTVA/zFMTsLqR3rqP4tRyXng7LxAsLSb7Sq7pHODymBmrQvs4HbR/3kmz2nc7e2wQphvasszaeduFvPs3vRkIrK0twF+l8tr27wm7gt95JS5aspWqGJv2i/1Gc6qNinwNDAfuKR/MCxHIzcElGRJa0rxJFda2n3YadryUz3Lk/dZugodl/T1MKX6I4fLlKs0L1BUR/0KW3vfhzMgcBb1rEV8lKahyoZnesVF+A==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Wed, 27 Aug 2025 08:03:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 26/08/2025 23:08, Jason Andryuk wrote:
> Write the associated event channel into the xenstore page so xenstored
> can read it.  xenstored can map the grant by the reserved grant table
> entry, and then read out the event channel and bind it.  This eliminates
> the need for an additional mechanism to discover the event channel.
> 
> Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
> ---
> v2:
> No change
> 
> This should go in after the init-dom0less changes so init-dom0less is
> ready for xenstored automatically introducing domains.
> 
> I'm looking for feedback.  This is ARM-only for the time being, but that
> is the only in-tree user of this code.  From the perspective, it is okay
> to go in.
> 
> If we want a cross-arch approach, a common function to write to guest
> physical addresses would be needed for additional arches, but they
> aren't available yet.
> 
> Oleksii added a function pointer to dtb_load() and initrd_load() when
> moving dom0less to common, but I think that isn't necessary.  Just
> having a common helper would be sufficient.
> 
> copy_to_guest_phys() or something_copy_to_guest_phys() could be defined
> or a wrapper for ARM's copy_to_guest_phys_flush_dcache().  Other arches
> could need to implement it when using dom0less.
> 
> I'm not an ARM expert, but Stefano said
> copy_to_guest_phys_flush_dcache() is not necessary since this xenstore
> page isn't expected to be accessed without caches enabled.
I'm not sure I understand this point. When copying data *to* the guest, cleaning
is about Xen's cache, not guest's...

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.