diff options
author | Tim Deegan <tim@xen.org> | 2012-03-15 11:46:54 +0000 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2012-03-15 11:46:54 +0000 |
commit | 5125dc02d9fb1fd2177aea8af7e1b3b7873357d6 (patch) | |
tree | 40bef0d693c30c9668e38392ff2da0088161773f /xen/arch/x86/hvm/emulate.c | |
parent | 923d946a0db1e1f6c2523c5d2e210f7ddd7a33af (diff) | |
download | xen-5125dc02d9fb1fd2177aea8af7e1b3b7873357d6.tar.gz xen-5125dc02d9fb1fd2177aea8af7e1b3b7873357d6.tar.bz2 xen-5125dc02d9fb1fd2177aea8af7e1b3b7873357d6.zip |
x86/mm: make 'query type' argument to get_gfn into a set of flags
Having an enum for this won't work if we want to add any orthogonal
options to it -- the existing code is only correct (after the removal of
p2m_guest in the previous patch) because there are no tests anywhere for
'== p2m_alloc', only for '!= p2m_query' and '== p2m_unshare'.
Replace it with a set of flags.
Signed-off-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/emulate.c')
-rw-r--r-- | xen/arch/x86/hvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index 362f351599..82efd1aa45 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -716,7 +716,7 @@ static int hvmemul_rep_movs( get_two_gfns(current->domain, sgpa >> PAGE_SHIFT, &sp2mt, NULL, NULL, current->domain, dgpa >> PAGE_SHIFT, &dp2mt, NULL, NULL, - p2m_alloc, &tg); + P2M_ALLOC, &tg); if ( !p2m_is_ram(sp2mt) && !p2m_is_grant(sp2mt) ) { |