Re: [PATCH 0/2] KVM: x86 emulator: emulate MOVAPS and MOVAPD SSE instructions

From: Paolo Bonzini
Date: Tue Mar 18 2014 - 08:12:02 EST


Il 17/03/2014 18:38, H. Peter Anvin ha scritto:
I'm not sure what you mean with "valid real mode selectors"; the normal
case in big real mode is that either CS = SS = 0 or CS = SS = <some
program base address>.

I mean "valid according to the VMX spec" for running in vm86 mode: base = selector << 4, limit = 0xffff, access rights = 0xf3.

If a segment does not follow the rules, but CS does, we could run the guest normally and trap memory accesses to KVM.

Paolo
--
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/