x86/public: Further correctsion to vcpu context comments
PATCH 1/1 x86/public: Further correctsion to vcpu context comments
VCPUOP_initialise and DOMCTL_setvcpucontext are not symetric.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/include/public/arch-x86/xen.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
xen/include/public/arch-x86/xen.h +6 -4
@@ -162,10 +162,12 @@ 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 guests, not all information in this structure is updated, the fields -* read include: fpu_ctxt (if VGCT_I387_VALID is set), flags, user_regs and -* debugreg[*]. +* Also note that when calling DOMCTL_setvcpucontext for HVM guests, not all +* information in this structure is updated, the fields read include: fpu_ctxt +* (if VGCT_I387_VALID is set), flags, user_regs and debugreg[*]. +* +* Note: VCPUOP_initialise for HVM guests is non-symetric with +* DOMCTL_setvcpucontext, and uses struct vcpu_hvm_context from hvm/hvm_vcpu.h */ struct vcpu_guest_context {/* FPU registers come first so they can be aligned for FXSAVE/FXRSTOR. */
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 01.09.17 at 15:14, <[email protected]> wrote:
VCPUOP_initialiseandDOMCTL_setvcpucontextare not symetric.Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
There's a typo in the subject line s/correctsion/correction/.
Quoted 3 lines · Andrew Cooper
VCPUOP_initialiseandDOMCTL_setvcpucontextare not symetric.Signed-off-by Andrew Cooper <[email protected]>
Long term DOMCTL_setvcpucontext should only be used by PV guests and gdbsx should instead use the vpcu context save/restore IMHO.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel