[libvirt] [PATCH 04/26] tests: Update qemumemlock data

Andrea Bolognani posted 26 patches 7 years, 11 months ago
There is a newer version of this series
[libvirt] [PATCH 04/26] tests: Update qemumemlock data
Posted by Andrea Bolognani 7 years, 11 months ago
Use 0001:01:00.0 instead of 0000:04:02.0 as the source address
for the host device. This doesn't change anything at the moment,
but it will make a difference later on.
---
 tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml             | 2 +-
 tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml      | 2 +-
 tests/qemumemlockdata/qemumemlock-pc-hostdev.xml                       | 2 +-
 tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml                | 2 +-
 tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml        | 2 +-
 tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml | 2 +-
 tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml                  | 2 +-
 tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml           | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
index 5443145..e03f5a5 100644
--- a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
@@ -13,7 +13,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
index 8184eef..7070e5a 100644
--- a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
@@ -16,7 +16,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
index 6c058a9..cd517ee 100644
--- a/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
@@ -10,7 +10,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
index fbc1dc3..da79cb5 100644
--- a/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
@@ -13,7 +13,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
index ddd3b47..baf0649 100644
--- a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
@@ -13,7 +13,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
index 73c28c1..04ae4e9 100644
--- a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
@@ -16,7 +16,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
index daf70a4..a52768c 100644
--- a/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
@@ -10,7 +10,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
diff --git a/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
index 74212f1..f5abef0 100644
--- a/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
+++ b/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
@@ -13,7 +13,7 @@
     <hostdev mode='subsystem' type='pci' managed='yes'>
       <driver name='vfio'/>
       <source>
-        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
+        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
       </source>
     </hostdev>
   </devices>
-- 
2.7.5

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 04/26] tests: Update qemumemlock data
Posted by Laine Stump 7 years, 11 months ago
On 06/02/2017 12:07 PM, Andrea Bolognani wrote:
> Use 0001:01:00.0 instead of 0000:04:02.0 as the source address
> for the host device. This doesn't change anything at the moment,
> but it will make a difference later on.

Now I'm curious - a non-0 domain is *extremely* rare on x86 machines. Is
it more normal on PPC?


Reviewed-by: Laine Stump <laine@laine.org>

> ---
>  tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml             | 2 +-
>  tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml      | 2 +-
>  tests/qemumemlockdata/qemumemlock-pc-hostdev.xml                       | 2 +-
>  tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml                | 2 +-
>  tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml        | 2 +-
>  tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml | 2 +-
>  tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml                  | 2 +-
>  tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml           | 2 +-
>  8 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
> index 5443145..e03f5a5 100644
> --- a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+hostdev.xml
> @@ -13,7 +13,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
> index 8184eef..7070e5a 100644
> --- a/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pc-hardlimit+locked+hostdev.xml
> @@ -16,7 +16,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
> index 6c058a9..cd517ee 100644
> --- a/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pc-hostdev.xml
> @@ -10,7 +10,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
> index fbc1dc3..da79cb5 100644
> --- a/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pc-locked+hostdev.xml
> @@ -13,7 +13,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
> index ddd3b47..baf0649 100644
> --- a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+hostdev.xml
> @@ -13,7 +13,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
> index 73c28c1..04ae4e9 100644
> --- a/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pseries-hardlimit+locked+hostdev.xml
> @@ -16,7 +16,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
> index daf70a4..a52768c 100644
> --- a/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pseries-hostdev.xml
> @@ -10,7 +10,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> diff --git a/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml b/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
> index 74212f1..f5abef0 100644
> --- a/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
> +++ b/tests/qemumemlockdata/qemumemlock-pseries-locked+hostdev.xml
> @@ -13,7 +13,7 @@
>      <hostdev mode='subsystem' type='pci' managed='yes'>
>        <driver name='vfio'/>
>        <source>
> -        <address domain='0x0000' bus='0x04' slot='0x02' function='0x0'/>
> +        <address domain='0x0001' bus='0x01' slot='0x00' function='0x0'/>
>        </source>
>      </hostdev>
>    </devices>
> 

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 04/26] tests: Update qemumemlock data
Posted by Andrea Bolognani 7 years, 11 months ago
On Sun, 2017-06-11 at 22:14 -0400, Laine Stump wrote:
> > Use 0001:01:00.0 instead of 0000:04:02.0 as the source address
> > for the host device. This doesn't change anything at the moment,
> > but it will make a difference later on.
> 
> Now I'm curious - a non-0 domain is *extremely* rare on x86 machines. Is
> it more normal on PPC?

Yup. Most PCI devices have their own PCI domain on POWER
hosts and PowerVM guests, and getting libvirt to behave the
same way is kind of the whole point of this series :)

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list