Re: [PATCH 2/3] KVM: SVM: Restore correct registers after sel_cr0intercept emulation

From: Avi Kivity
Date: Sun Sep 05 2010 - 03:09:25 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/