Re: Problem with vmexit on mtrap

2014-08-19 Thread Martin Steegmanns
On Mon, Aug 18, 2014 at 08:59:28PM -0700, Neel Natu wrote: I wonder if a vmexit caused by the MTF could overlay with another vmexit. With the MTF bit set, I expect the guest system to behave exactly as without the MTF bit. Of course slower due to single stepping :). On my Xeon E5-2650

Re: Problem with vmexit on mtrap

2014-08-18 Thread Neel Natu
Hi Martin, On Sat, Aug 16, 2014 at 12:33 PM, Martin Steegmanns mar...@unix-users.de wrote: On Tue, Aug 12, 2014 at 06:39:18PM -0700, Neel Natu wrote: The VM-exit instruction length field is valid only for a subset of VM exits. See section 27.2.4 Information for VM exits due to instruction

Problem with vmexit on mtrap

2014-08-12 Thread Martin Steegmanns
Hello list! I modified bhyve to toggle the MTF bit on an UD2 instruction. In a guest system, a program does: __asm__ __volatile__( UD2 NOP xor %rax,%rax NOP UD2 ); On the first UD2, MTF bit is correctly set, but the second UD2 is never reached (waited some

Re: Problem with vmexit on mtrap

2014-08-12 Thread Neel Natu
Hi Martin, On Tue, Aug 12, 2014 at 2:24 AM, Martin Steegmanns mar...@unix-users.de wrote: Hello list! I modified bhyve to toggle the MTF bit on an UD2 instruction. In a guest system, a program does: __asm__ __volatile__( UD2 NOP xor %rax,%rax NOP UD2 ); On the