[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/4] x86/svm: Use named (bit)fields for task switch exit info
On 04.12.2019 21:04, Andrew Cooper wrote: > Net delta is: > > diff --git a/xen/include/asm-x86/hvm/svm/vmcb.h > b/xen/include/asm-x86/hvm/svm/vmcb.h > index 02b5e86b49..864618ccf9 100644 > --- a/xen/include/asm-x86/hvm/svm/vmcb.h > +++ b/xen/include/asm-x86/hvm/svm/vmcb.h > @@ -419,17 +419,15 @@ struct vmcb_struct { > u64 interrupt_shadow; /* offset 0x68 */ > u64 exitcode; /* offset 0x70 */ > union { > - u64 exitinfo1; /* offset 0x78 */ > + struct { > + uint64_t exitinfo1; /* offset 0x78 */ > + uint64_t exitinfo2; /* offset 0x80 */ > + }; > union { > struct { > uint16_t sel; > - } task_switch; > - } e1; > - }; > - union { > - u64 exitinfo2; /* offset 0x80 */ > - union { > - struct { > + uint64_t :48; > + > uint32_t ec; > uint32_t :4; > bool iret:1; > @@ -440,7 +438,7 @@ struct vmcb_struct { > uint32_t :3; > bool rf:1; > } task_switch; > - } e2; > + } ei; > }; > intinfo_t exitintinfo; /* offset 0x88 */ > u64 _np_enable; /* offset 0x90 - cleanbit 4 */ > > LGTM. And the result then Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |