]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
gnttab: fix/adjust gnttab_transfer()
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:28:11 +0000 (12:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:28:11 +0000 (12:28 +0200)
commit213f14511446de8eb6c4756aee505e914a3e3a16
tree31cc8e7a5ed92414dd4383702c075d4a241faf50
parent1549a9dac132d00a1e4a011e0c4e6ea5b42d23b8
gnttab: fix/adjust gnttab_transfer()

- don't update shared entry's frame number for translated domains (as
  MFNs shouldn't be exposed to such guests)
- for v1 grant table format, force copying of the page also when the
  intended MFN doesn't fit in 32 bits (and the domain isn't translated)
- fix an apparent off-by-one error (it's unclear to me why commit
  5cc77f9098 ("32-on-64: Fix domain address-size clamping, implement")
  uses BITS_PER_LONG-1 here, while using BITS_PER_LONG in the two other
  invocations of domain_clamp_alloc_bitsize())
- adjust comments accompanying the shared entry's frame field

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c
xen/include/public/grant_table.h