|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [PATCH 15 of 20] Switch shadow/virtual VMCS between n1/n
> > + u32 shadow_cntrl;
> > + struct nestedvcpu *nvcpu = &vcpu_nestedhvm(v);
> > +
> > +#define REMOVED_EXIT_CONTROL_BITS ((1<<2) | \
>
> Define a macro for whatever 1<<2 means here, please.
>
Done.
> > + (VM_EXIT_SAVE_GUEST_PAT) | \
> > + (VM_EXIT_SAVE_GUEST_EFER) | \
> > + (VM_EXIT_SAVE_PREEMPT_TIMER))
> > + shadow_cntrl = __get_vvmcs(nvcpu->nv_vvmcx,
> VM_EXIT_CONTROLS);
> > + shadow_cntrl &= ~REMOVED_EXIT_CONTROL_BITS;
> > + shadow_cntrl |= host_cntrl;
> > + __vmwrite(VM_EXIT_CONTROLS, shadow_cntrl);
> > +}
> > + /* SDM 20.6.6: L2 guest execution may change GUEST CR0/CR4 */
> > + mask = __get_vvmcs(vvmcs, CR0_GUEST_HOST_MASK);
> > + if ( ~mask )
> > + {
> > + cr = __get_vvmcs(vvmcs, GUEST_CR0);
> > + cr = (cr & mask) | (__vmread(GUEST_CR4) & ~mask);
>
> Cut-n-paste error? ^^^^^^^^^
>
Oh, Yes, Thanks.
Eddie
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 09 of 20] Emulation of guest VMCLEAR, (continued)
- [Xen-devel] [PATCH 09 of 20] Emulation of guest VMCLEAR, Eddie Dong
- [Xen-devel] [PATCH 13 of 20] Emulation of VMRESUME/VMLAUNCH, Eddie Dong
- [Xen-devel] [PATCH 11 of 20] Emulation of guest VMREAD, Eddie Dong
- [Xen-devel] [PATCH 04 of 20] Add APIs for nestedhvm_ops, Eddie Dong
- [Xen-devel] [PATCH 06 of 20] Define structure and access APIs for virtual VMCS, Eddie Dong
- [Xen-devel] [PATCH 08 of 20] Emulation of guest VMPTRST, Eddie Dong
- [Xen-devel] [PATCH 18 of 20] Lazy FPU for n2 guest, Eddie Dong
- [Xen-devel] [PATCH 10 of 20] Emulation of guest VMWRITE, Eddie Dong
- [Xen-devel] [PATCH 15 of 20] Switch shadow/virtual VMCS between n1/n2 guests, Eddie Dong
- [Xen-devel] [PATCH 14 of 20] Extend VMCS control fields for n2 guest, Eddie Dong
- [Xen-devel] [PATCH 17 of 20] VM exit handler of n2-guest, Eddie Dong
- [Xen-devel] [PATCH 12 of 20] Add APIs to switch n1/n2 VMCS, Eddie Dong
- [Xen-devel] [PATCH 20 of 20] n2 MSR handling and capability exposure, Eddie Dong
|
|
|
|
|