]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Format spapr-vio addresses as 32-bit
authorAndrea Bolognani <abologna@redhat.com>
Fri, 14 Jun 2019 10:46:05 +0000 (12:46 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 20 Jun 2019 10:50:03 +0000 (12:50 +0200)
Using 8 hex digits all the time, regardless of whether the
actual value can fit in fewer, makes it more obvious to the
user what the limits are.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2xmloutdata/disk-scsi.xml
tests/qemuxml2xmloutdata/pseries-nvram.xml

index c69d382d70c088d61260751d8249029ee47f7e06..98cac90720d385a6799b6b0ef2b82f2d86f67ddc 100644 (file)
@@ -7136,7 +7136,7 @@ virDomainDeviceInfoFormat(virBufferPtr buf,
 
     case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_SPAPRVIO:
         if (info->addr.spaprvio.has_reg)
-            virBufferAsprintf(&attrBuf, " reg='0x%llx'", info->addr.spaprvio.reg);
+            virBufferAsprintf(&attrBuf, " reg='0x%08llx'", info->addr.spaprvio.reg);
         break;
 
     case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW:
index 9cfff4b14e7f26fade431ba5d93897bd9f1a8734..45fed6423ab072c78ed92c957e1df5a5ff0d3322 100644 (file)
@@ -62,7 +62,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </controller>
     <controller type='scsi' index='3' model='ibmvscsi'>
-      <address type='spapr-vio' reg='0x2000'/>
+      <address type='spapr-vio' reg='0x00002000'/>
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
index f89b23b3387454c3ccb5c7b38940139a5bd04741..fd77c7aa892a756527de1f463759bf6a14019e24 100644 (file)
@@ -23,7 +23,7 @@
     </controller>
     <memballoon model='none'/>
     <nvram>
-      <address type='spapr-vio' reg='0x4000'/>
+      <address type='spapr-vio' reg='0x00004000'/>
     </nvram>
     <panic model='pseries'/>
   </devices>