Stale Xenstore entries after start of domU with stubdom
Anyone an idea why I have additional stale Xenstore entries each time I've started a new domU with a stubdom? After 4 such starts I have:
vm = ""
00000000-0100-0000-fd7f-0000489bdb5a = ""
memory = "6651"
00000000-0100-0000-fc7f-000048dbe98a = ""
memory = "6651"
00000000-0100-0000-ff7f-0000482b19f9 = ""
memory = "6651"
00000000-0100-0000-ff7f-000048ebcf93 = ""
memory = "6651"
The "memory" size reported is the same as for dom0.
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 1/1 libxl: fix libxl_set_memory_target
Commit 26dbc93a ("libxl: Remove pointless hypercall from libxl_set_memory_target") removed the call to xc_domain_getinfolist, but it failed to notice that "info" was actually needed later.
Put that back. While at it, make the code conform to coding style requirement.
---
Cc: Juergen Gross <[email protected]>
Cc: Ian Jackson <[email protected]>
I'm not really sure how useful it is to store memory information under /vm path. For now let's err on the safe side.
Should be backported to 4.7 and 4.8.
--- tools/libxl/libxl.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/libxl/libxl.c +7 -0
@@ -4308,6 +4308,13 @@ retry_transaction:libxl__xs_printf (gc, t,GCSPRINTF ("%s/memory/target" , dompath),"%" PRIu64, new_target_memkb); + r =xc_domain_getinfolist (ctx->xch, domid,1 , &info); +if (r !=1 || info.domain != domid) { + abort_transaction =1 ; + rc =ERROR_FAIL ; + goto out; + } +libxl_dominfo_init (&ptr);xcinfo2xlinfo (ctx, &info, &ptr); uuid =libxl__uuid2string (gc, ptr.uuid);
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Juergen Gross writes ("Stale Xenstore entries after start of domU with stubdom"):
Quoted 13 lines
Anyone an idea why I have additional stale Xenstore entries each time I've started a new domU with a stubdom? After 4 such starts I have:
vm = ""
00000000-0100-0000-fd7f-0000489bdb5a = ""
memory = "6651"
00000000-0100-0000-fc7f-000048dbe98a = ""
memory = "6651"
00000000-0100-0000-ff7f-0000482b19f9 = ""
memory = "6651"
00000000-0100-0000-ff7f-000048ebcf93 = ""
memory = "6651"
Quoted 1 line
The "memory" size reported is the same as for dom0.
What is the uuid ? It's probably the stubdom or the main domain. (Try `xl list -l'.)
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH] libxl: fix libxl_set_memory_target [and 1 more messages]
In reply to Wei LiuIan Jackson writes ("Re: Stale Xenstore entries after start of domU with stubdom"):
Quoted 2 lines
What is the uuid ? It's probably the stubdom or the main domain. (Try `xl list -l'.)
Never mind, I have just realised that Wei's patch (below) is a reply to this.
Wei Liu writes ("[PATCH] libxl: fix libxl_set_memory_target"):
Quoted 3 lines
Commit
26dbc93a("libxl: Remove pointless hypercall fromlibxl_set_memory_target") removed the call toxc_domain_getinfolist, but it failed to notice that "info" was actually needed later.
And applied.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel