[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-devel] [PATCH 15 of 20] Switch shadow/virtual VMCS between n1/n2 guests
> > + 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |