Skip to contentSkip to conversation

xenpv: Fix qemu_uuid compiling error

PATCH In review Fam Zheng 3 participants 4 messages Sep 27, 2016 – Sep 29, 2016

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 xenpv: Fix qemu_uuid compiling error

9c5ce8db2 switched the type of qemu_uuid and this should have followed. Fix it.

---
 hw/xenpv/xen_domainbuild.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xenpv/xen_domainbuild.c +1 -1
index b439b0e..457a897 100644
@@ -232,7 +232,7 @@ int xen_domain_build_pv(const char *kernel, const char *ramdisk,
     unsigned long xenstore_mfn = 0, console_mfn = 0;
     int rc;
 
-    memcpy(uuid, qemu_uuid, sizeof(uuid));
+    memcpy(uuid, &qemu_uuid, sizeof(uuid));
     rc = xen_domain_create(xen_xc, ssidref, uuid, flags, &xen_domid);
     if (rc < 0) {
         fprintf(stderr, "xen: xc_domain_create() failed\n");
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Fam Zheng

9c5ce8db2 switched the type of qemu_uuid and this should have followed. Fix it.

---
 hw/xenpv/xen_domainbuild.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
hw/xenpv/xen_domainbuild.c +1 -1
index b439b0e..457a897 100644
@@ -232,7 +232,7 @@ int xen_domain_build_pv(const char *kernel, const char *ramdisk,
     unsigned long xenstore_mfn = 0, console_mfn = 0;
     int rc;
 
-    memcpy(uuid, qemu_uuid, sizeof(uuid));
+    memcpy(uuid, &qemu_uuid, sizeof(uuid));
     rc = xen_domain_create(xen_xc, ssidref, uuid, flags, &xen_domid);
     if (rc < 0) {
         fprintf(stderr, "xen: xc_domain_create() failed\n");
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw
Quoted 10 lines · Eric Blake
Quoted 7 lines · Fam Zheng

9c5ce8db2 switched the type of qemu_uuid and this should have followed. Fix it.

---
 hw/xenpv/xen_domainbuild.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 21 lines
Quoted 15 lines
hw/xenpv/xen_domainbuild.c +1 -1
index b439b0e..457a897 100644
@@ -232,7 +232,7 @@ int xen_domain_build_pv(const char *kernel, const char *ramdisk,
     unsigned long xenstore_mfn = 0, console_mfn = 0;
     int rc;
 
-    memcpy(uuid, qemu_uuid, sizeof(uuid));
+    memcpy(uuid, &qemu_uuid, sizeof(uuid));
     rc = xen_domain_create(xen_xc, ssidref, uuid, flags, &xen_domid);
     if (rc < 0) {
         fprintf(stderr, "xen: xc_domain_create() failed\n");
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
author Applied
#3 lore raw
Quoted 5 lines · Stefano Stabellini
Quoted 4 lines · Eric Blake
Quoted 3 lines · Fam Zheng

9c5ce8db2 switched the type of qemu_uuid and this should have followed. Fix it.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
---
 hw/xenpv/xen_domainbuild.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Queued for next pull request, thanks.

Fam