Messages in this thread | | | Date | Sun, 05 Sep 2010 10:09:14 +0300 | From | Avi Kivity <> | Subject | Re: [PATCH 2/3] KVM: SVM: Restore correct registers after sel_cr0 intercept emulation |
| |
On 09/02/2010 07:29 PM, Roedel, Joerg wrote: > >> I agree. We can probably use X86EMUL_PROPAGATE_FAULT to abort >> emulation, but looking at the code, it will take some refactoring. > I thought of an X86EMUL_INTERCEPTED. An architecture specific function > is called after instruction decoding which checks if an intercept is > necessary. If it returns X86EMUL_INTERCEPTED then the instruction > emulation is discarded and kvm goes straight back into the guest.
Yes, this sounds just right.
-- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.
| |