projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b0de0
)
pass an inclusive address range to xc_domain_pin_memory_cacheattr
author
Stefano Stabellini
<stefano.stabellini@eu.citrix.com>
Wed, 7 May 2014 13:48:37 +0000
(13:48 +0000)
committer
Stefano Stabellini
<stefano.stabellini@eu.citrix.com>
Wed, 7 May 2014 16:17:57 +0000
(16:17 +0000)
xc_domain_pin_memory_cacheattr expects an inclusive address range:
adjust the parameters.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-hvm.c
patch
|
blob
|
history
diff --git
a/xen-hvm.c
b/xen-hvm.c
index 0a4905518063d92d07c6823a285edbce48c79186..a64486cd35f9c83d42481c79f88351c3224cf96e 100644
(file)
--- a/
xen-hvm.c
+++ b/
xen-hvm.c
@@
-323,7
+323,7
@@
go_physmap:
xc_domain_pin_memory_cacheattr(xen_xc, xen_domid,
start_addr >> TARGET_PAGE_BITS,
- (start_addr + size) >> TARGET_PAGE_BITS,
+ (start_addr + size
- 1
) >> TARGET_PAGE_BITS,
XEN_DOMCTL_MEM_CACHEATTR_WB);
snprintf(path, sizeof(path),