xen/x86: add a comment regarding how to get the VCPU ID on HVM
PATCH v2 1/1 xen/x86: add a comment regarding how to get the VCPU ID on HVM
Add a note to the public headers regarding how to get the VCPU ID for HVM guests (on x86).
---
This is what Linux PVHVM does AFAIK, and also what I've been using in my FreeBSD PVHVM series, but it's not written anywere.
---
Changes since v1:
* Reworded the comment as requested by Matt.
--- xen/include/public/vcpu.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
xen/include/public/vcpu.h +4 -0
@@ -35,6 +35,10 @@* @cmd == VCPUOP_??? (VCPU operation). * @vcpuid == VCPU to operate on. * @extra_args == Operation-specific extra arguments (NULL if none). +* +* For x86 HVM domains that use VCPU operations the VCPU ID is the ACPI +* Processor ID of the CPU (not to be confused with the APIC ID), as +* fetched from the MADT table. */ /*
Signature · 7 lines
1.7.7.5 (Apple Git-26) _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Ping?
Quoted 25 lines · Roger Pau Monne
Add a note to the public headers regarding how to get the VCPU ID for HVM guests (on x86).
Signed-off-by Roger Pau Monné <[email protected]>Acked-by Matt Wilson <[email protected]>Cc Jan Beulich <[email protected]>Cc Keir Fraser <[email protected]>Cc Konrad Rzeszutek Wilk <[email protected]>Cc Matt Wilson <[email protected]>---
This is what Linux PVHVM does AFAIK, and also what I've been using in my FreeBSD PVHVM series, but it's not written anywere.
---
Changes since v1:
* Reworded the comment as requested by Matt.--- xen/include/public/vcpu.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)xen/include/public/vcpu.h +0
-0
xen/include/public/vcpu.h line 44
Quoted 10 lines
xen/include/public/vcpu.h +4
-0@@ -35,6 +35,10 @@* @cmd == VCPUOP_??? (VCPU operation). * @vcpuid == VCPU to operate on. * @extra_args == Operation-specific extra arguments (NULL if none). +* +* For x86 HVM domains that use VCPU operations the VCPU ID is the ACPI +* Processor ID of the CPU (not to be confused with the APIC ID), as +* fetched from the MADT table. */ /*
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel