|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 5 of 7] [XIU]: When destroying a domain in the simulato
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1259361890 0
# Node ID 017686f2d3b2f906b094a07fbd32926ef6b832ad
# Parent 099e85cfc1fee37b949f20ae56ff85125380a956
[XIU]: When destroying a domain in the simulator, give its memory back to xen.
Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>
diff -r 099e85cfc1fe -r 017686f2d3b2 ocaml/xiu/xiu.ml
--- a/ocaml/xiu/xiu.ml Fri Nov 27 22:44:49 2009 +0000
+++ b/ocaml/xiu/xiu.ml Fri Nov 27 22:44:50 2009 +0000
@@ -517,7 +517,9 @@
newdom
let domain_destroy domid =
- ignore (domain_find domid); Hashtbl.remove domains domid
+ let d = domain_find domid in
+ transfer_to_domain d (-d.tot_mem_kib);
+ Hashtbl.remove domains domid
let domain_sethandle domid uuid =
let dom = domain_find domid in dom.uuid <- uuid; ()
1 file changed, 3 insertions(+), 1 deletion(-)
ocaml/xiu/xiu.ml | 4 +++-
xen-api.hg-7.patch
Description: Text Data
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 0 of 7] Improvements to the hypercall simulator, David Scott
- [Xen-API] [PATCH 2 of 7] [XIU]: rename tot_mem -> tot_mem_kib and max_mem -> max_mem_kib, David Scott
- [Xen-API] [PATCH 4 of 7] [XIU]: write control/feature-balloon 3s after starting a simulated domain, David Scott
- [Xen-API] [PATCH 1 of 7] [XIU]: store the physical memory used/free in KiB rather than MiB for consistency, David Scott
- [Xen-API] [PATCH 3 of 7] [XIU]: when a domain target is updated, transfer the memory immediately from the host, respecting both the domain's max_mem and the total amount of memory free on the host, David Scott
- [Xen-API] [PATCH 5 of 7] [XIU]: When destroying a domain in the simulator, give its memory back to xen,
David Scott <=
- [Xen-API] [PATCH 7 of 7] [XIU]: increase the realism of the hypercall simulator by adding a constant amount of extra memory to tot_pages for every domain, David Scott
- [Xen-API] [PATCH 6 of 7] [XIU]: Add explicit HVM and HAP flags to Domctl_create in the simulator, David Scott
|
|
|
|
|