[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/5] Mini-OS: get own domid
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 10 Nov 2023 13:44:50 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=SFxTjFDNUPAnbA0IIp9Blep8NlksFtPdsH6CO29nvvQ=; b=Eu0m9PXoocNJbn9/tZVsn5RJExvNniEvuZNgFO4P1UYMSSecne+Y6m50lJOpppzHOcQkFpKbjcRu0krwpNQzTYdvL9dqo41XOn+pCFgmPsYkcDnso5pjBcbYuTFGGUvC5mCUGCqVg20mcWiZbSnwub2Hp5u+gXb7KFMr/YrD70POso920M8JJtx86pkT9UqZtjJzThCwkHy5ZU73DM1o85kNoHQr3gtWtRYI9LroebQ9Po5XZboB8/OtOmOExO2BGXUsAHmz0b5r+UgqJMDh0ygFPiQoG78pw2iP45xeaKXjFq9d1J0FqtWZ+/tAMqOW/ssskdO8jgB5lbW7ZjCweQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qyvjj+LiNSKaPSunGjWDVJyUvhl0HCxLGG2kLX/InCPaqdK303x4NEapYSgo/huiLCikA5zoV/DEwea7hHhL978yYllNzm6hPFdeKQ3AXAf7pU5IlbLkpbmNDE9d/W46VQY98e3uyeRsp87OiAy2SMHGBvJrZ1osrZ4LTOeCEz3e9Q1+TFmreVnXJdQMDhgS/LwIO8tUlX3pqCdCzSQFb2iw6xn3qD771HRQvpqXa46prT3jmbrR/4xJ/fuuqRnc2FWXmAk9jT7TvZbwRaJcqj3ea+zwiA1bi4/Ou/o8qbIYGzftnp6f5wutZ8n9zLOU5ggdEmyeu00SCTwalD6YUg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: minios-devel@xxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, samuel.thibault@xxxxxxxxxxxx, wl@xxxxxxx, Juergen Gross <jgross@xxxxxxxx>
- Delivery-date: Fri, 10 Nov 2023 12:44:59 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 10.11.2023 13:23, Roger Pau Monné wrote:
> On Fri, Nov 10, 2023 at 12:34:32PM +0100, Juergen Gross wrote:
>> Get the own domid via creation of a temporary event channel. There is
>> no "official" way to read the own domid in PV guests, so use the event
>> channel interface to get it:
>>
>> - allocate an unbound event channel specifying DOMID_SELF for the
>> other end
>>
>> - read the event channel status which will contain the own domid in
>> unbound.dom
>>
>> - close the event channel
>
> Should we look into introducing a way to expose the domid, so that in
> the future we might not need to resort to this workarounds to get the
> domid?
>
> Maybe in the PV-specific cpuid leaf? It's a shame we didn't put it in
> a non-HVM specific leaf when it was made available to HVM for pvshim
> reasons.
Couldn't we retroactively generalize the type-agnostic parts of that
leaf?
Jan
|