lkml.org 
[lkml]   [2011]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 03/22] KVM: x86: fix broken read emulation spans a page boundary
On 06/29/2011 01:53 PM, Xiao Guangrong wrote:
> On 06/29/2011 04:21 PM, Avi Kivity wrote:
>
> >>
> >> - if (kvm_read_guest_virt(ctxt, addr, val, bytes, exception)
> >> - == X86EMUL_CONTINUE)
> >> + if (!kvm_read_guest(vcpu->kvm, gpa, val, bytes))
> >> return X86EMUL_CONTINUE;
> >
> > This doesn't perform the cpl check.
> >
>
> Firstly, it calls kvm_mmu_gva_to_gpa_read to translate gva to gpa, and cpl
> is checked in this function, it is not enough?

You are right, it is enough. I don't know how I missed it.

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2011-06-29 13:21    [W:0.203 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site