Messages in this thread | | | Date | Mon, 17 Mar 2014 10:38:17 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 0/2] KVM: x86 emulator: emulate MOVAPS and MOVAPD SSE instructions |
| |
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
| |