[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 4/5] x86/nestedsvm: update vmcb correctly



>-    /* Virtual Interrupts */
>-    ns_vmcb->_vintr = n2vmcb->_vintr;
>-    if ( !svm->ns_hostflags.fields.vintrmask )
>-        ns_vmcb->_vintr.fields.intr_masking = 0;
>+    /*
>+     * Virtual Interrupts.  #VMEXIT writes back V_TPR and V_IRQ (APM vol.2
>+     * 15.6); the remaining fields do not change.
Not sure if this has changed recently but the APM also mentions the
INTERRUPT_SHADOW bits? Not sure if the plural bits means also
GUEST_INTERRUPT_MASK?
>+     * enabled in L1.
>+     */
>+    ns_vmcb->_vintr.fields.tpr = n2vmcb->_vintr.fields.tpr;
>+    ns_vmcb->_vintr.fields.irq = n2vmcb->_vintr.fields.irq;
>+    if ( ns_vmcb->_vintr.fields.vgif_enable )
>+        ns_vmcb->_vintr.fields.vgif = n2vmcb->_vintr.fields.vgif;



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.