Skip to contentSkip to conversation

xen/x86: add a comment regarding how to get the VCPU ID on HVM

PATCH In review Roger Pau Monne 1 participant 2 messages Sep 23, 2013 – Oct 7, 2013

lore
Share & tools
lore
#0 lore raw

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).

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 +4 -0
index e888daf..f09367a 100644
@@ -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
#1 lore raw

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).

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
index e888daf..f09367a 100644

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