xen: fix virt_to_mfn()

Need to shift by 12 to get to a frame number.  With this the host accepts
the guest interface.
This commit is contained in:
Avi Kivity
2014-11-02 15:43:20 +02:00
parent 6bb8d687d0
commit 6269fe2bdf

View File

@@ -116,7 +116,7 @@ public:
// and in that case we'll need to have an extra step here
inline uint64_t
virt_to_mfn(void *virt) {
return virt_to_phys(virt);
return virt_to_phys(virt) >> 12;
}
gntref& kernel_grant_head::new_ref() {