[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging-4.11] x86/shim: fix ballooning down the guest



commit 4c6142e0991228f1aeb2075a553200d75a725017
Author:     Sergey Dyasli <sergey.dyasli@xxxxxxxxxx>
AuthorDate: Fri Oct 25 11:59:35 2019 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Oct 25 11:59:35 2019 +0200

    x86/shim: fix ballooning down the guest
    
    Currently ballooning down a pvshim guest causes the following errors
    inside the shim:
    
        d3v0 failed to reserve 512 extents of order 512 for offlining
    
    And the ballooned-out pages stay inside shim and don't reach L0 Xen.
    
    Fix this by passing the correct arguments to pv_shim_offline_memory()
    during a XENMEM_decrease_reservation request.
    
    Fixes: b2245acc60c3 ('xen/pvshim: memory hotplug')
    Signed-off-by: Sergey Dyasli <sergey.dyasli@xxxxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    master commit: ddc5a85fbcfbacc34bbd9abcdb12923de2fc27b3
    master date: 2019-09-26 18:06:07 +0200
---
 xen/common/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/memory.c b/xen/common/memory.c
index f71163221f..dee85f1496 100644
--- a/xen/common/memory.c
+++ b/xen/common/memory.c
@@ -1163,7 +1163,7 @@ long do_memory_op(unsigned long cmd, 
XEN_GUEST_HANDLE_PARAM(void) arg)
              * hypercall has failed and only part of the extents where
              * processed.
              */
-            pv_shim_offline_memory(args.nr_extents, args.nr_done);
+            pv_shim_offline_memory(args.nr_done, args.extent_order);
 #endif
 
         break;
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.11

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.