aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/p2m.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-09 16:39:01 -0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-10-09 16:39:01 -0400
commit2f558d40911c1b8f929b8a382833ae1da5df3293 (patch)
tree335a0f22ecb0707251c6075667e9e427ac59c946 /arch/x86/xen/p2m.c
parent4a19138c6505e224d9f4cc2fe9ada9188d7100ea (diff)
xen/x86: allow __set_phys_to_machine for autotranslate guests
Allow __set_phys_to_machine to be called for autotranslate guests. It can be used to keep track of phys_to_machine changes, however we don't do anything with the information at the moment. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'arch/x86/xen/p2m.c')
-rw-r--r--arch/x86/xen/p2m.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
index a61c7d5811be..2ae8699e8767 100644
--- a/arch/x86/xen/p2m.c
+++ b/arch/x86/xen/p2m.c
@@ -799,10 +799,10 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn)
799{ 799{
800 unsigned topidx, mididx, idx; 800 unsigned topidx, mididx, idx;
801 801
802 if (unlikely(xen_feature(XENFEAT_auto_translated_physmap))) { 802 /* don't track P2M changes in autotranslate guests */
803 BUG_ON(pfn != mfn && mfn != INVALID_P2M_ENTRY); 803 if (unlikely(xen_feature(XENFEAT_auto_translated_physmap)))
804 return true; 804 return true;
805 } 805
806 if (unlikely(pfn >= MAX_P2M_PFN)) { 806 if (unlikely(pfn >= MAX_P2M_PFN)) {
807 BUG_ON(mfn != INVALID_P2M_ENTRY); 807 BUG_ON(mfn != INVALID_P2M_ENTRY);
808 return true; 808 return true;