c9e3853c04
24448-x86-pt-irq-leak.patch - Upstream patches from Jan 24261-x86-cpuidle-Westmere-EX.patch 24417-amd-erratum-573.patch 24429-mceinj-tool.patch 24447-x86-TXT-INIT-SIPI-delay.patch ioemu-9868-MSI-X.patch - bnc#732884 - remove private runlevel 4 from init scripts xen.no-default-runlevel-4.patch - bnc#727515 - Fragmented packets hang network boot of HVM guest ipxe-gcc45-warnings.patch ipxe-ipv4-fragment.patch ipxe-enable-nics.patch - fate#310510 - fix xenpaging update xenpaging.autostart.patch, make changes with mem-swap-target permanent update xenpaging.doc.patch, mention issues with live migration - fate#310510 - fix xenpaging add xenpaging.evict_mmap_readonly.patch update xenpaging.error-handling.patch, reduce debug output - bnc#736824 - Microcode patches for AMD's 15h processors panic the system 24189-x86-p2m-pod-locking.patch 24412-x86-AMD-errata-model-shift.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=164
21 lines
698 B
Diff
21 lines
698 B
Diff
xenpaging: mmap gfn to evict in readonly mode
|
|
|
|
nominate/evict will not modify the page so there is no need to map the page rw.
|
|
|
|
---
|
|
tools/xenpaging/xenpaging.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
--- a/tools/xenpaging/xenpaging.c
|
|
+++ b/tools/xenpaging/xenpaging.c
|
|
@@ -575,8 +575,7 @@ static int xenpaging_evict_page(xenpagin
|
|
|
|
/* Map page to get a handle */
|
|
gfn = victim->gfn;
|
|
- page = xc_map_foreign_pages(xch, paging->mem_event.domain_id,
|
|
- PROT_READ | PROT_WRITE, &gfn, 1);
|
|
+ page = xc_map_foreign_pages(xch, paging->mem_event.domain_id, PROT_READ, &gfn, 1);
|
|
if ( page == NULL )
|
|
{
|
|
if ( errno == EINVAL )
|