Re: [PATCH] KVM: x86 emulator: cleanup for BitOp instruction emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 08/04/2010 11:01 AM, Wei Yongjun wrote:
>   
>> Signed-off-by: Wei Yongjun<yjwei@xxxxxxxxxxxxxx>
>> ---
>>   arch/x86/kvm/emulate.c |   12 ++++--------
>>   1 files changed, 4 insertions(+), 8 deletions(-)
>>
>> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
>> index eba5a67..c05a5d7 100644
>> --- a/arch/x86/kvm/emulate.c
>> +++ b/arch/x86/kvm/emulate.c
>> @@ -2545,6 +2545,10 @@ done_prefixes:
>>   		break;
>>   	}
>>
>> +	/* Only subword offset for BitOp: bt/bts/btr/btc. */
>> +	if (c->d&  BitOp)
>> +		c->src.val&= (c->op_bytes<<  3) - 1;
>> +
>>     
> You are doing this before the destination operand is decoded, which
> means you are not adjusting a memory operand anymore if c->src.val >
> (c->op_bytes * 8).
>   

Oh, I forgot this, I will fix it, thanks.

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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux