On 07/26/2010 11:47 AM, Paolo Bonzini wrote:
I don't think this is needed. The temp_eflags value is assigned
directly to eflags if we're operand size is 16 bits. At least that's
what the Intel manual says!
That's fine, but please make sure that
mov %sp, %bp
orw $2, 4(%bp)
iret
followed at return site by
pushf
popw %ax
does not set bit 1 in %ax. That's the important point (also see how
emulate_popf avoids magic hex constants).
Moreover, vmx will fail the next entry if this is not done. 23.3.1.4 says:
RFLAGS.
— Reserved bits 63:22 (bits 31:22 on processors that do not support
Intel 64
architecture), bit 15, bit 5 and bit 3 must be 0 in the field, and
reserved bit 1
must be 1.
Looks like a note is missing in the manual. I'll alert the authors.
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html