lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [KVM PATCH] KVM: introduce "xinterface" API for external interaction with guests
Gregory Haskins wrote:
> That said, I think the assumption that was made when I was using this
> was that a proper ref for the page was acquired by the gfn_to_page() and
> dropped by the caller. This was always used in the context of a
> hypercall/vmexit so presumably the gpa should be considered stable
> across that call. Is that not true?
>

If you're in kvm.ko, then yes, that's a safe assumption to make because
the guest VCPU cannot run while you are running.

But you're opening this interface to any caller so the VCPU is likely to
be running while someone calls this function

> Regards,
> -Greg
>
>
>


--
Regards,

Anthony Liguori



\
 
 \ /
  Last update: 2009-07-16 18:13    [W:0.038 / U:1.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site