Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1199818304 28800
# Node ID 10d141f683370b6f04637bb9ad059bbd92051ce0
# Parent 85213a968ca3b6e86b03287c3cf7355d54f62165
Fix virt_device_dup() for emu and graphics devices
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 85213a968ca3 -r 10d141f68337 libxkutil/device_parsing.c
--- a/libxkutil/device_parsing.c Tue Jan 08 08:15:25 2008 -0800
+++ b/libxkutil/device_parsing.c Tue Jan 08 10:51:44 2008 -0800
@@ -395,6 +395,11 @@ struct virt_device *virt_device_dup(stru
dev->dev.vcpu.state = _dev->dev.vcpu.state;
dev->dev.vcpu.cpuTime = _dev->dev.vcpu.cpuTime;
dev->dev.vcpu.cpu = _dev->dev.vcpu.cpu;
+ } else if (dev->type == VIRT_DEV_EMU) {
+ DUP_FIELD(dev, _dev, dev.emu.path);
+ } else if (dev->type == VIRT_DEV_GRAPHICS) {
+ DUP_FIELD(dev, _dev, dev.graphics.type);
+ DUP_FIELD(dev, _dev, dev.graphics.port);
}
return dev;
Good catch. +1
--
Kaitlin Rupert
IBM Linux Technology Center
karupert(a)us.ibm.com