Skip to contentSkip to conversation

x86/shim: fix ballooning down the guest

PATCH In review Sergey Dyasli 4 participants 4 messages Sep 26, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
CC: Andrew Cooper <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/common/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/memory.c +1 -1
index 7364fd2c33..309e872edf 100644
@@ -1225,7 +1225,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;
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Sergey Dyasli

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.

This is missing:

Fixes b2245acc60c3 ('xen/pvshim: memory hotplug')
Quoted 1 line

Also adding Juergen for a release Ack.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by
#2 lore raw
Quoted 12 lines · Roger Pau Monné
Quoted 10 lines · Sergey Dyasli

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.

Quoted 7 lines

This is missing:

Fixes b2245acc60c3 ('xen/pvshim: memory hotplug')
Quoted 1 line

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
In reply to Roger Pau Monné
Quoted 16 lines · Roger Pau Monné
Quoted 10 lines · Sergey Dyasli

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.

This is missing:

Fixes b2245acc60c3 ('xen/pvshim: memory hotplug')
Quoted 8 lines
Quoted 1 line

Also adding Juergen for a release Ack.

Thanks, Roger.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel