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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user