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

From: H. Peter Anvin
Date: Mon Mar 17 2014 - 13:38:52 EST


On 03/17/2014 10:01 AM, Paolo Bonzini wrote:
> the emulator).
>
> If CS and possibly SS are valid real mode selectors, it should be
> possible to run big real mode at almost-full speed, taking exits only
> for memory accesses via other segment registers. It is on my todo list,
> but not very high. Depending on the exit overhead, it may be a better
> idea to revert the emulate_invalid_guest_state default to N and let
> people who care about big real mode specify Y.
>

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>.

As Big Real Mode is part of the spec for certain things (option ROMs, as
we discussed) it probably matters, but especially with the CPUs not
supporting unrestricted mode fading into history I suspect it is fine
for BRM to be slow on those older processors.

The PM transitions that you mentioned are usually only a handful of
instructions and thus can be slow.

-hpa


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