xen/balloon: Move the registration from device to subsystem.
commit8ea11f7f11c811d1f502c2dabc5259d447c2f2a0
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Jan 2012 16:35:50 +0000 (12 11:35 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 Jan 2012 16:53:59 +0000 (12 11:53 -0500)
tree42dd906657f4860372eb8a97b20ba8d38c72fd31
parentd3b7737f2b70ed2fb7cef985e70d04fb5dee7b7c
xen/balloon: Move the registration from device to subsystem.

With git commit 070680218379e15c1901f4bf21b98e3cbf12b527
"xen-balloon: convert sysdev_class to a regular subsystem" we would
end up with the attributes being put in:

 /sys/devices/xen_memory0/target_kb
instead of
/sys/devices/system/xen_memory/xen_memory0/target_kb

Making the tools inable to deflate the kernel to make more space
for launching another guest and printing:
Error: Failed to query current memory allocation of dom0

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Suggested-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-balloon.c