Skip to contentSkip to conversation

x86/pvh: remove stale HVM/PVHv1 comment from public headers

PATCH In review Roger Pau Monne 2 participants 3 messages Aug 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/pvh: remove stale HVM/PVHv1 comment from public headers

From the vcpu_guest_context structure. PVHv2/HVM uses a completely different structure (vcpu_hvm_context), that's described in hvm_vpcu.h.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
---
Changes since v1:
- Completely remove the comment, HVM guests also use vcpu_hvm_context instead of vcpu_guest_context.

---
 xen/include/public/arch-x86/xen.h | 9 ---------
 1 file changed, 9 deletions(-)
xen/include/public/arch-x86/xen.h +0 -9
index f21332e897..ba40b97e97 100644
@@ -161,15 +161,6 @@ typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */
 /*
  * The following is all CPU context. Note that the fpu_ctxt block is filled
  * in by FXSAVE if the CPU has feature FXSR; otherwise FSAVE is used.
- *
- * Also note that when calling DOMCTL_setvcpucontext and VCPUOP_initialise
- * for HVM and PVH guests, not all information in this structure is updated:
- *
- * - For HVM guests, the structures read include: fpu_ctxt (if
- * VGCT_I387_VALID is set), flags, user_regs, debugreg[*]
- *
- * - PVH guests are the same as HVM guests, but additionally use ctrlreg[3] to
- * set cr3. All other fields not used should be set to 0.
  */
 struct vcpu_guest_context {
     /* FPU registers come first so they can be aligned for FXSAVE/FXRSTOR. */
Signature · 7 lines
2.11.0 (Apple Git-81)


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 31.08.17 at 17:10, <[email protected]> wrote:

Changes since v1:
- Completely remove the comment, HVM guests also use vcpu_hvm_context instead of vcpu_guest_context.

Are you sure? Specifically for ...

xen/include/public/arch-x86/xen.h typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */ · line 165

Quoted 8 lines
xen/include/public/arch-x86/xen.h +0 -2
@@ -161,15 +161,6 @@ typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */
 /*
  * The following is all CPU context. Note that the fpu_ctxt block is filled
  * in by FXSAVE if the CPU has feature FXSR; otherwise FSAVE is used.
- *
- * Also note that when calling DOMCTL_setvcpucontext and VCPUOP_initialise

... the DOMCTL_setvcpucontext part.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 7 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 31.08.17 at 17:10, <[email protected]> wrote:

Changes since v1:
- Completely remove the comment, HVM guests also use vcpu_hvm_context instead of vcpu_guest_context.

Are you sure? Specifically for ...

Quoted 10 lines

xen/include/public/arch-x86/xen.h typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */ · line 165

Quoted 8 lines
xen/include/public/arch-x86/xen.h +0 -2
@@ -161,15 +161,6 @@ typedef uint64_t tsc_timestamp_t; /* RDTSC timestamp */
 /*
  * The following is all CPU context. Note that the fpu_ctxt block is filled
  * in by FXSAVE if the CPU has feature FXSR; otherwise FSAVE is used.
- *
- * Also note that when calling DOMCTL_setvcpucontext and VCPUOP_initialise

... the DOMCTL_setvcpucontext part.

Right, I couldn't change DOMCTL_setvcpucontext to use the new struct because it was already in use by gdbsx.

So v1 is the right version.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel