lkml.org 
[lkml]   [2011]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 03/11] KVM: x86: retry non-page-table writing instruction
On 09/14/2011 05:53 PM, Avi Kivity wrote:
> On 09/13/2011 09:24 PM, Xiao Guangrong wrote:
>> >>
>> >> +static bool retry_instruction(struct x86_emulate_ctxt *ctxt,
>> >> + unsigned long cr2, int emulation_type)
>> >> +{
>> >> + if (!vcpu->arch.mmu.direct_map&& !mmu_is_nested(vcpu))
>> >> + gpa = kvm_mmu_gva_to_gpa_write(vcpu, cr2, NULL);
>> >
>> > If mmu_is_nested() cr2 is an ngpa, we have to translate it to a gpa, no?
>> >
>>
>> Yeah, will fix it.
>>
>> And this bug also exists in the current code: it always uses L2 gpa to emulate
>> write operation.
>
> Can you please send this fix separately, so it can be backported if needed?
>

Sure, i will do it as soon as possible. :-)


\
 
 \ /
  Last update: 2011-09-14 12:19    [W:0.093 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site