vfio: Restrict to 64-bit host platforms
cover vfio: Restrict to 64-bit host platforms
Hello,
This series avoids compiling VFIO on 32-bit host platforms where it is not needed.
Thanks,
C.
Cédric Le Goater (2):
vfio: Make vfio-pci available on 64-bit host platforms only
vfio: Make vfio-platform available on Aarch64 platforms only
hw/vfio/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 vfio: Make vfio-pci available on 64-bit host platforms only
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
--- hw/vfio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/Kconfig +1 -1
@@ -7,7 +7,7 @@ config VFIO_PCI default y select VFIO select EDID - depends on LINUX && PCI + depends on LINUX && PCI && (AARCH64 || PPC64 || X86_64 || S390X) config VFIO_CCW bool
Signature · 1 line
2.48.1
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 18 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/Kconfig +0
-0
hw/vfio/Kconfig config VFIO_PCI · line 10
Quoted 5 lines
hw/vfio/Kconfig +1
-1@@ -7,7 +7,7 @@ config VFIO_PCI default y select VFIO select EDID - depends on LINUX && PCI + depends on LINUX && PCI && (AARCH64 || PPC64 || X86_64 || S390X)
Are these defined for the host or target? I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc and we are trying to use it for GPU pass through for 32 bit PPC guests. Please keep that enabled.
Regards,
BALATON Zoltan
Quoted 3 lines
config
VFIO_CCW
bool
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 14 lines · BALATON Zoltan
Quoted 13 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines
Quoted 10 lines
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIdefault y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
host.
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
Ah ! I am surprised. Which host and QEMU machine please ?
Quoted 1 line
and we are trying to use it for GPU pass through for 32 bit PPC guests. Please keep that enabled.
As per commit 6d701c9bac1d3571e9ad511e01b27df7237f0b13 "meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.
Thanks,
C.
Quoted 7 lines
Regards,
BALATON ZoltanQuoted 3 lines
config
VFIO_CCW
bool
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 28 lines · Cédric Le Goater
Quoted 14 lines · BALATON Zoltan
Quoted 13 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
Quoted 10 lines
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIdefault y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 1 line
host.
Where are these defined? I thought compiling qemu-system-ppc on x64_64 or aarch64 would have PPC defined not X86_64 or AARCH64 but I could well be missing something.
Quoted 3 lines
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
Ah ! I am surprised. Which host and QEMU machine please ?
I've seen people do this on x86_64 host with pegasos2, amigaone and mac99 running 32 bit guests (AmigaOS and MacOS). Some people running older 32 bit Windows versions on pc machine might also use this.
Quoted 5 lines
Quoted 1 line
and we are trying to use it for GPU pass through for 32 bit PPC guests. Please keep that enabled.
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.
That's about removing support for compiling QEMU on 32 bit host OSes not using 32 bit guests with qemu-system-ppc and qemu-system-i386 isn't it?
Regards,
BALATON Zoltan
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 31 lines · BALATON Zoltan
Quoted 28 lines · Cédric Le Goater
Quoted 14 lines · BALATON Zoltan
Quoted 13 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
Quoted 10 lines
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIdefault y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 1 line
host.
Quoted 7 lines
Where are these defined? I thought compiling qemu-system-ppc on
x64_64or aarch64 would have PPC defined notX86_64or AARCH64 but I could well be missing something.Quoted 3 lines
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
Ah ! I am surprised. Which host and QEMU machine please ?
I've seen people do this on
x86_64host
Since this patch does:
LINUX && PCI && (... X86_64 ...)
these users won't see any change.
Quoted 12 lines
with pegasos2, amigaone and mac99 running 32 bit guests (AmigaOS and MacOS). Some people running older 32 bit Windows versions on pc machine might also use this.
Quoted 5 lines
Quoted 1 line
and we are trying to use it for GPU pass through for 32 bit PPC guests. Please keep that enabled.
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.That's about removing support for compiling QEMU on 32 bit host OSes not using 32 bit guests with qemu-system-ppc and qemu-system-i386 isn't it?
Regards,
BALATON Zoltan
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 38 lines · Philippe Mathieu-Daudé
Quoted 37 lines · BALATON Zoltan
Quoted 28 lines · Cédric Le Goater
Quoted 14 lines · BALATON Zoltan
Quoted 13 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
Quoted 10 lines
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIdefault y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 1 line
host.
Where are these defined? I thought compiling qemu-system-ppc on
x64_64or aarch64 would have PPC defined notX86_64or AARCH64 but I could well be missing something.Quoted 3 lines
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
Ah ! I am surprised. Which host and QEMU machine please ?
Quoted 7 lines
Quoted 1 line
I've seen people do this on
x86_64hostSince this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
I still don't understand why. X86_64 is defined in target/i386/Kconfig. Isn't that only defined when building qemu-x86_64 or qemu-system-x86_64? Or is it also defined when building TCG on x86_64 host? This is confusing. docs/devel/tcg-ops.rst says "The TCG *target* is the architecture for which we generate the code. It is of course not the same as the "target" of QEMU which is the emulated architecture." Which of these is marked by these defines?
Regards,
BALATON Zoltan
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Philippe Mathieu-DaudéQuoted 9 lines · Philippe Mathieu-Daudé
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
I've seen people do this on
x86_64hostSince this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect.
For VFIO_PLATFORM, no objections to deprecating this.
Paolo
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 5 lines · Paolo Bonzini
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
I've seen people do this on
x86_64host
Quoted 7 lines
Quoted 5 lines
Since this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect.
euh it was.
With this patch, on 32-bit and 64-bit host systems :
# build/qemu-system-i386 -device vfio-pci,? # qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not found
Same for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
Quoted 1 line
For
VFIO_PLATFORM, no objections to deprecating this.
Good let's do that !
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 16 lines · Cédric Le Goater
Quoted 5 lines · Paolo Bonzini
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
I've seen people do this on
x86_64hostQuoted 7 lines
Quoted 5 lines
Since this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect.
euh it was.
Quoted 8 lines
With this patch, on 32-bit and 64-bit host systems :
# build/qemu-system-i386 -device vfio-pci,? # qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not foundSame for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
These QEMU targets aren't deprecated, compiling QEMU on 32 bit hosts is. But you can still use qemu-system-i386 and qemu-system-ppc on 64 bit hosts and vfio-pci works with these so it should not be disabled when building these QEMU targets. I think you meant to do something else not what this patch does.
Regards,
BALATON Zoltan
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 19 lines · BALATON Zoltan
Quoted 18 lines · Cédric Le Goater
Quoted 5 lines · Paolo Bonzini
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
I've seen people do this on
x86_64hostQuoted 7 lines
Quoted 5 lines
Since this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect.
euh it was.
With this patch, on 32-bit and 64-bit host systems :
Quoted 8 lines
Quoted 6 lines
# build/qemu-system-i386 -device vfio-pci,? # qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not foundSame for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
These QEMU targets aren't deprecated, compiling QEMU on 32 bit hosts is. But you can still use qemu-system-i386 and qemu-system-ppc on 64 bit hosts and vfio-pci works with these so it should not be disabled when building these QEMU targets. I think you meant to do something else not what this patch does.
I meant to remove all VFIO devices on 32-bit host platforms (which is not needed anymore since 32-bit host platforms are dying anyway).
The patch is actually doing more, as it is removing VFIO devices for 32-bit targets too. That said, I doubt this config is tested at all on i386. Something to add on the TODO list.
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
Thanks,
C.
Quoted 3 lines
Regards,
BALATON Zoltan
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 27 lines · Cédric Le Goater
Quoted 26 lines · BALATON Zoltan
Quoted 24 lines · Cédric Le Goater
Quoted 5 lines · Paolo Bonzini
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
I've seen people do this on
x86_64hostQuoted 7 lines
Quoted 5 lines
Since this patch does:
LINUX && PCI && (...
X86_64...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect.
euh it was.
With this patch, on 32-bit and 64-bit host systems :
# build/qemu-system-i386 -device vfio-pci,? # qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not foundSame for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
Quoted 8 lines
Quoted 1 line
These QEMU targets aren't deprecated, compiling QEMU on 32 bit hosts is. But you can still use qemu-system-i386 and qemu-system-ppc on 64 bit hosts and vfio-pci works with these so it should not be disabled when building these QEMU targets. I think you meant to do something else not what this patch does.
I meant to remove all VFIO devices on 32-bit host platforms (which is not needed anymore since 32-bit host platforms are dying anyway).
The patch is actually doing more, as it is removing VFIO devices for 32-bit targets too. That said, I doubt this config is tested at all on i386. Something to add on the TODO list.
So,
root@vm15:~# uname -a
Linux vm15 6.10.12-686-pae #1 SMP PREEMPT_DYNAMIC Debian 6.10.12-1 (2024-10-01) i686 GNU/Linux
root@vm15:~# lspci -s 0000:01:00.0 -v
01:00.0 Ethernet controller: Intel Corporation Ethernet Virtual Function 700 Series (rev 02)
Subsystem: Intel Corporation Device 0000
Physical Slot: 0
Flags: bus master, fast devsel, latency 0
Memory at fba00000 (64-bit, prefetchable) [size=64K]
Memory at fba10000 (64-bit, prefetchable) [size=16K]
Capabilities: [70] MSI-X: Enable+ Count=5 Masked-
Capabilities: [a0] Express Endpoint, IntMsgNum 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [1a0] Transaction Processing Hints
Capabilities: [1d0] Access Control Services
Kernel driver in use: iavf
Kernel modules: iavf
root@vm15:~# ip link show dev enp1s0
3: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 06:0a:3d:59:01:11 brd ff:ff:ff:ff:ff:ff
altname enx060a3d590111It works well. I will make sure it continues to work.
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Cédric Le GoaterQuoted 3 lines · Cédric Le Goater
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
They're not identical -- for example "-cpu max" on qemu-system-arm is a 32-bit CPU but on qemu-system-aarch64 it is a 64-bit CPU.
There's definitely a lot of overlap but we can't just drop the -arm executable until/unless we figure out what to do about the corner cases where they are different. Plus there's a lot of users out there with existing command lines and configs that assume the existence of a qemu-system-arm executable.
thanks
-- PMM
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 9 lines · Peter Maydell
Quoted 3 lines · Cédric Le Goater
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
They're not identical -- for example "-cpu max" on qemu-system-arm is a 32-bit CPU but on qemu-system-aarch64 it is a 64-bit CPU.
Quoted 6 lines
There's definitely a lot of overlap but we can't just drop the -arm executable until/unless we figure out what to do about the corner cases where they are different. Plus there's a lot of users out there with existing command lines and configs that assume the existence of a qemu-system-arm executable.
Thomas and myself have been trying to sort that out. Now with the single-binary effort, it gained new interest. This hasn't be a trivial task so far, due to as you mentioned the legacy CLI uses and migration.
This is however in my priority list and Alex asked to have a single qemu-system-aarch64 binary for ARM/Aarch64 for the 11.0 release.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Peter Maydell
Quoted 3 lines · Cédric Le Goater
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
They're not identical -- for example "-cpu max" on qemu-system-arm is a 32-bit CPU but on qemu-system-aarch64 it is a 64-bit CPU.
Quoted 6 lines
There's definitely a lot of overlap but we can't just drop the -arm executable until/unless we figure out what to do about the corner cases where they are different. Plus there's a lot of users out there with existing command lines and configs that assume the existence of a qemu-system-arm executable.
Quoted 3 lines
Thomas and myself have been trying to sort that out. Now with the single-binary effort, it gained new interest. This hasn't be a trivial task so far, due to as you mentioned the legacy CLI uses and migration.
FWIW, here's my former attempt to see whether we could move into that direction:
https://lore.kernel.org/qemu-devel/[email protected]/
In the end, it was too frustrating to struggle with the backwards-compatibility questions (do we really need to keep qemu-system-i386 around forever?), so I pretty much gave up on that patch series.
Thomas
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 18 lines · Thomas Huth
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 15 lines · Peter Maydell
Quoted 3 lines · Cédric Le Goater
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
They're not identical -- for example "-cpu max" on qemu-system-arm is a 32-bit CPU but on qemu-system-aarch64 it is a 64-bit CPU.
There's definitely a lot of overlap but we can't just drop the -arm executable until/unless we figure out what to do about the corner cases where they are different. Plus there's a lot of users out there with existing command lines and configs that assume the existence of a qemu-system-arm executable.
Quoted 7 lines
Quoted 3 lines
Thomas and myself have been trying to sort that out. Now with the single-binary effort, it gained new interest. This hasn't be a trivial task so far, due to as you mentioned the legacy CLI uses and migration.
FWIW, here's my former attempt to see whether we could move into that direction:
This mentions KVM compatibility. KVM now works at least on PowerPC G4 host with qemu-system-ppc (as I've heard, did not try it myself). Would that stop working with qemu-system-ppc64? As people still use old 32bit PPC OSes such as MacOS with qemu it's still wanted to keep it working. (Although most people use TCG on other hosts and maybe a few on actual PPC host but it's still nice to keep this feature until such hosts still exist.)
Regards,
BALATON Zoltan
Quoted 1 line
In the end, it was too frustrating to struggle with the backwards-compatibility questions (do we really need to keep qemu-system-i386 around forever?), so I pretty much gave up on that patch series.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Peter MaydellQuoted 8 lines · Peter Maydell
Quoted 3 lines · Cédric Le Goater
Why are we keeping qemu-system-ppc and qemu-system-i386, and arm, since qemu-system-ppc64 and qemu-system-x86_64 should be able to run the same machines ?
They're not identical -- for example "-cpu max" on qemu-system-arm is a 32-bit CPU but on qemu-system-aarch64 it is a 64-bit CPU.
OK.
Quoted 6 lines
There's definitely a lot of overlap but we can't just drop the -arm executable until/unless we figure out what to do about the corner cases where they are different. Plus there's a lot of users out there with existing command lines and configs that assume the existence of a qemu-system-arm executable.
We could have symlinks. Anyway, given the issue described above, we need to keep a build for the 32-bit targets.
I see that qemu-system-arm supports virt machines. Would you know if there is a supported userspace that I could use ?
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Cédric Le GoaterIl lun 3 mar 2025, 16:05 Cédric Le Goater <[email protected]> ha scritto:
Quoted 9 lines · Paolo Bonzini
Quoted 2 lines · Philippe Mathieu-Daudé
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I see PPC is defined in target/ppc/Kconfig so I think these mark the
target not the host. Vfio-pci works with qemu-system-ppc
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
I've seen people do this on
x86_64hostSince this patch does:
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
LINUX && PCI && (... X86_64 ...)these users won't see any change.
This is wrong---clearly this patch was never tested on the 32-bit
platforms where it was supposed to have an effect.
euh it was.
Uff—I should have said was *only* tested on the 32-bit platforms where it was supposed to have an effect! The problem is with the 64-bit hosts...
With this patch, on 32-bit and 64-bit host systems :
Quoted 7 lines
# build/qemu-system-i386 -device vfio-pci,? # qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not foundSame for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
... Where you were testing the wrong target. :) qemu-system-i386 should still support VFIO if compiled on a 64-bit host, according to the subject.
Paolo
Quoted 13 lines
Quoted 2 lines
For
VFIO_PLATFORM, no objections to deprecating this.Good let's do that !
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 28 lines · Paolo Bonzini
Il lun 3 mar 2025, 16:05 Cédric Le Goater <[email protected] <mailto:[email protected]>> ha scritto:
On 3/3/25 15:46, Paolo Bonzini wrote: > On 3/3/25 15:30, Philippe Mathieu-Daudé wrote: >>>>> I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc >>> >>> I've seen people do this on x86_64 host >> >> Since this patch does: >> >> LINUX && PCI && (... X86_64 ...) >> >> these users won't see any change. > > This is wrong---clearly this patch was never tested on the 32-bit platforms where it was supposed to have an effect. euh it was.Uff—I should have said was *only* tested on the 32-bit platforms where it was supposed to have an effect! The problem is with the 64-bit hosts...
With this patch, on 32-bit and 64-bit host systems :
# build/qemu-system-i386 -device vfio-pci,?
# qemu-system-i386: -device vfio-pci,?: Device 'vfio-pci' not found
Quoted 6 lines
Same for qemu-system-ppc and qemu-system-arm
What I am doing wrong ?
... Where you were testing the wrong target. :) qemu-system-i386 should still support VFIO if compiled on a 64-bit host, according to the subject.
yep. I have a test case for it now ! on q35 and pc-i440fx machines.
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to BALATON ZoltanQuoted 6 lines
Quoted 4 lines
Quoted 2 lines
I see PPC is defined in target/ppc/Kconfig so I think these mark the target not the host. Vfio-pci works with qemu-system-ppc
Ah ! I am surprised. Which host and QEMU machine please ?
I've seen people do this on
x86_64host with pegasos2, amigaone and mac99 running 32 bit guests (AmigaOS and MacOS). Some people running older 32 bit Windows versions on pc machine might also use this.
I tried with :
qemu-system-ppc -m 1G -smp 1 -M mac99,via=pmu -cpu g4 ....
There are some errors/warnings:
qemu-system-ppc: -device vfio-pci,host=0000:0c:00.0: warning: MSI-X is not supported by interrupt controller
Cannot manage 'ethernet controller' PCI device type 'network':
>>
>> 8086 10c9 (2 0 0)
>> set_property: NULL phandle
>> =============================================================
>> OpenBIOS 1.1 [Sep 24 2024 19:56]
...but it does work :
root@debian-powerpc:~# uname -a
Linux debian-powerpc 6.1.0-7-powerpc #1 Debian 6.1.20-1 (2023-03-19) ppc GNU/Linux
root@debian-powerpc:~# lspci -s 00:10.0 -vv
00:10.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
Subsystem: Beijing Sinead Technology Co., Ltd. 82576 Gigabit Network Connection
Device tree node: /sys/firmware/devicetree/base/pci@f2000000/pci8086,10c9@10
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 27
Region 0: Memory at 82080000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at 82400000 (32-bit, non-prefetchable) [size=4M]
Region 2: I/O ports at 1080 [size=32]
Region 3: Memory at 82800000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at 82c00000 [disabled] [size=4M]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
Capabilities: [a0] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W
DevCtl: CorrErr- NonFatalErr- FatalErr+ UnsupReq-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM L1 Enabled; RCB 64 bytes, Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1 (downgraded)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS- TPHComp- ExtTPHComp-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 16ms to 55ms, TimeoutDis- LTR- 10BitTagReq- OBFF Disabled,
AtomicOpsCtl: ReqEn-
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
Retimer- 2Retimers- CrosslinkRes: unsupported
Kernel driver in use: igb
Kernel modules: igb
root@debian-powerpc:~# ip link show dev enp0s16
2: enp0s16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 80:61:5f:0a:2f:c4 brd ff:ff:ff:ff:ff:ffThe number of VFIO combinations drives me nuts. It's worse than PPC.
Thanks,
C.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Cédric Le GoaterQuoted 28 lines · Cédric Le Goater
Quoted 14 lines · BALATON Zoltan
Quoted 13 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
Quoted 10 lines
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIdefault y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 1 line
host.
No, Zoltan is correct. They are defined for the target, so if you build for 32-bit ARM you'd still get things with "depends on AARCH64" in qemu-system-aarch64. You can check that you have
config SBSA_REF
bool
default y
depends on TCG && AARCH64but on x86-64:
$ qemu-system-aarch64 -M help|grep sbsa sbsa-ref QEMU 'SBSA Reference' ARM Virtual Machine
Quoted 3 lines
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.
Note that a deprecation *allows* full removal in 2 releases. We have a lot of things that are deprecated but have not been removed. For example
Short-form boolean options (since 6.0)
''''''''''''''''''''''''''''''''''''''
Boolean options such as ``share=on``/``share=off`` could be written in short form as ``share`` and ``noshare``. This is now deprecated and will cause a warning.
is deprecated to *allow* switching command-line options from the "qemu-options" parser to the "keyval" parser that doesn't support short-form boolean options, but it's unlikely that qemu-options will drop support for short-form boolean options.
Paolo
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 29 lines · Paolo Bonzini
Quoted 28 lines · Cédric Le Goater
Quoted 26 lines · BALATON Zoltan
Quoted 18 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIQuoted 5 lines
default y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 3 lines
Quoted 1 line
host.
No, Zoltan is correct. They are defined for the target,
Oops indeed, not my day.
Quoted 19 lines
so if you build for 32-bit ARM you'd still get things with "depends on AARCH64" in qemu- system-aarch64. You can check that you have
config
SBSA_REF
bool
default y
depends on TCG && AARCH64but on x86-64:
$ qemu-system-aarch64 -M help|grep sbsa sbsa-ref QEMU 'SBSA Reference' ARM Virtual MachineQuoted 3 lines
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.Note that a deprecation *allows* full removal in 2 releases. We have a lot of things that are deprecated but have not been removed. For example
Quoted 8 lines
Short-form boolean options (since 6.0)
''''''''''''''''''''''''''''''''''''''Boolean options such as ``share=on``/``share=off`` could be written in short form as ``share`` and ``noshare``. This is now deprecated and will cause a warning.
is deprecated to *allow* switching command-line options from the "qemu- options" parser to the "keyval" parser that doesn't support short-form boolean options, but it's unlikely that qemu-options will drop support for short-form boolean options.
In another thread Daniel said deprecated options shall be removed, the only justification for delay being man power, IIRC.
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
Quoted 66 lines · Philippe Mathieu-Daudé
Quoted 30 lines · Paolo Bonzini
Quoted 29 lines · Cédric Le Goater
Quoted 27 lines · BALATON Zoltan
Quoted 19 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/Kconfig +0
-0100644
hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIQuoted 5 lines
default y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 3 lines
Quoted 1 line
host.
No, Zoltan is correct. They are defined for the target,
Oops indeed, not my day.
Quoted 29 lines
so if you build for 32-bit ARM you'd still get things with "depends on AARCH64" in qemu- system-aarch64. You can check that you have
config
SBSA_REF
bool
default y
depends on TCG && AARCH64but on x86-64:
$ qemu-system-aarch64 -M help|grep sbsa sbsa-ref QEMU 'SBSA Reference' ARM Virtual MachineQuoted 3 lines
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.Note that a deprecation *allows* full removal in 2 releases. We have a lot of things that are deprecated but have not been removed. For example
Short-form boolean options (since 6.0)
''''''''''''''''''''''''''''''''''''''Boolean options such as ``share=on``/``share=off`` could be written in short form as ``share`` and ``noshare``. This is now deprecated and will cause a warning.
Quoted 7 lines
Quoted 4 lines
is deprecated to *allow* switching command-line options from the "qemu- options" parser to the "keyval" parser that doesn't support short-form boolean options, but it's unlikely that qemu-options will drop support for short-form boolean options.
In another thread Daniel said deprecated options shall be removed, the only justification for delay being man power, IIRC.
Right, after 2 releases a deprecated thing is open to deletion.
Deleting still requires someone to do the work though, so we end up with things living longer than the 2 release deprecation period until someone with motivation comes along to do the deletion.
If we change our mind & truly don't want to delete something, then the deprecation notice is supposed to be removed, not left around forever.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [PATCH 1/2] vfio: Make vfio-pci available on 64-bit host platforms only
In reply to Paolo BonziniQuoted 29 lines · Paolo Bonzini
Quoted 28 lines · Cédric Le Goater
Quoted 26 lines · BALATON Zoltan
Quoted 18 lines · Cédric Le Goater
VFIO PCI never worked on PPC32 nor ARM, S390x is 64-bit, it might have worked on i386 long ago but we have no plans to further support VFIO on any 32-bit host platforms. Restrict to 64-bit host platforms.
Cc Harsh Prateek Bora <[email protected]>Cc Tony Krowiak <[email protected]>Cc Eric Farman <[email protected]>Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>---
hw/vfio/Kconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/Kconfig +0
-0@@ -7,7 +7,7 @@ config VFIO_PCIQuoted 5 lines
default y
select VFIO
select EDID
- depends on LINUX && PCI
+ depends on LINUX && PCI && (AARCH64 || PPC64 ||X86_64|| S390X)Are these defined for the host or target?
Quoted 3 lines
Quoted 1 line
host.
No, Zoltan is correct. They are defined for the target, so if you build for 32-bit ARM you'd still get things with "depends on AARCH64" in qemu-system-aarch64. You can check that you have
AFAICS, you can't build qemu-system-aarch64 on 32-bit ARM anymore. Can you ?
Thanks,
C.
Quoted 29 lines
config
SBSA_REF
bool
default y
depends on TCG && AARCH64but on x86-64:
$ qemu-system-aarch64 -M help|grep sbsa sbsa-ref QEMU 'SBSA Reference' ARM Virtual MachineQuoted 3 lines
As per commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13"meson: Deprecate 32-bit host support", support will be fully removed in 2 releases and it doesn't need to be addressed by VFIO.Note that a deprecation *allows* full removal in 2 releases. We have a lot of things that are deprecated but have not been removed. For example
Short-form boolean options (since 6.0)
''''''''''''''''''''''''''''''''''''''Boolean options such as ``share=on``/``share=off`` could be written in short form as ``share`` and ``noshare``. This is now deprecated and will cause a warning.
is deprecated to *allow* switching command-line options from the "qemu-options" parser to the "keyval" parser that doesn't support short-form boolean options, but it's unlikely that qemu-options will drop support for short-form boolean options.
Paolo
PATCH 2/2 vfio: Make vfio-platform available on Aarch64 platforms only
In reply to Cédric Le GoaterVFIO Platforms was designed for Aarch64. Restrict availability to 64-bit host platforms.
--- hw/vfio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/Kconfig +1 -1
@@ -19,7 +19,7 @@ config VFIO_PLATFORM bool default y select VFIO - depends on LINUX && PLATFORM_BUS + depends on LINUX && PLATFORM_BUS && AARCH64 config VFIO_XGMAC bool
Signature · 1 line
2.48.1
Re: [PATCH 2/2] vfio: Make vfio-platform available on Aarch64 platforms only
Hi Cédric,
Quoted 5 lines · Cédric Le Goater
VFIO Platforms was designed for Aarch64. Restrict availability to 64-bit host platforms.
Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>
As an outcome from last KVM forum, next step may be to simply remove VFIO_PLATFORM from the qemu tree.
We also need to make a decision wrt linux vfio platform driver. As I can't test it anymore without hacks (my last tegra234 mgbe works are unlikely to land on qemu side and lack traction on kernel side too), either someone who can test it volunteers to take over the kernel maintainership or we remove it from kernel too.
Taking this opportunity to add Will, Marc, Peter in CC
Thanks
Eric
Quoted 17 lines
--- hw/vfio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/vfio/Kconfig +1
-1@@ -19,7 +19,7 @@ config VFIO_PLATFORM bool default y select VFIO - depends on LINUX && PLATFORM_BUS + depends on LINUX && PLATFORM_BUS && AARCH64 config VFIO_XGMAC bool
Re: [PATCH 2/2] vfio: Make vfio-platform available on Aarch64 platforms only
Quoted 10 lines · On Thu, 27 Feb 2025 09:32:46 +0100 Eric Auger <[email protected]> wrote:
Hi Cédric,
Quoted 5 lines · Cédric Le Goater
VFIO Platforms was designed for Aarch64. Restrict availability to 64-bit host platforms.
Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Eric Auger <[email protected]>
Quoted 8 lines
As an outcome from last KVM forum, next step may be to simply remove
VFIO_PLATFORMfrom the qemu tree.We also need to make a decision wrt linux vfio platform driver. As I can't test it anymore without hacks (my last tegra234 mgbe works are unlikely to land on qemu side and lack traction on kernel side too), either someone who can test it volunteers to take over the kernel maintainership or we remove it from kernel too.
I think it's more than just a kernel maintainer stepping up to test, there really needs to be some in-kernel justification for the vfio-platform driver itself. If it's only enabling out of tree use cases and there's nothing in-tree that's actually independently worthwhile, I don't really see why we shouldn't remove it and just let those out of tree use cases provide their own out of tree versions of vfio-platform. Thanks,
Alex
Philippe Mathieu-Daudé
Reviewed-byRe: [PATCH 2/2] vfio: Make vfio-platform available on Aarch64 platforms only
Quoted 5 lines · Alex Williamson
Quoted 2 lines · On Thu, 27 Feb 2025 09:32:46 +0100 Eric Auger <[email protected]> wrote:
Hi Cédric,
Quoted 7 lines
Quoted 7 lines · Cédric Le Goater
Quoted 5 lines
VFIO Platforms was designed for Aarch64. Restrict availability to 64-bit host platforms.
Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Eric Auger <[email protected]>
Quoted 9 lines
Quoted 8 lines
As an outcome from last KVM forum, next step may be to simply remove
VFIO_PLATFORMfrom the qemu tree.We also need to make a decision wrt linux vfio platform driver. As I can't test it anymore without hacks (my last tegra234 mgbe works are unlikely to land on qemu side and lack traction on kernel side too), either someone who can test it volunteers to take over the kernel maintainership or we remove it from kernel too.
Quoted 7 lines
I think it's more than just a kernel maintainer stepping up to test, there really needs to be some in-kernel justification for the vfio-platform driver itself. If it's only enabling out of tree use cases and there's nothing in-tree that's actually independently worthwhile, I don't really see why we shouldn't remove it and just let those out of tree use cases provide their own out of tree versions of vfio-platform. Thanks,
Now (1 week before freeze for release) is a good time to post a patch deprecating it :)
Re: [PATCH 2/2] vfio: Make vfio-platform available on Aarch64 platforms only
Hi,
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Alex Williamson
Quoted 2 lines · On Thu, 27 Feb 2025 09:32:46 +0100 Eric Auger <[email protected]> wrote:
Hi Cédric,
Quoted 7 lines
Quoted 7 lines · Cédric Le Goater
Quoted 5 lines
VFIO Platforms was designed for Aarch64. Restrict availability to 64-bit host platforms.
Cc Eric Auger <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Reviewed-by Eric Auger <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Quoted 9 lines
Quoted 8 lines
As an outcome from last KVM forum, next step may be to simply remove
VFIO_PLATFORMfrom the qemu tree.We also need to make a decision wrt linux vfio platform driver. As I can't test it anymore without hacks (my last tegra234 mgbe works are unlikely to land on qemu side and lack traction on kernel side too), either someone who can test it volunteers to take over the kernel maintainership or we remove it from kernel too.
Quoted 7 lines
I think it's more than just a kernel maintainer stepping up to test, there really needs to be some in-kernel justification for the vfio-platform driver itself. If it's only enabling out of tree use cases and there's nothing in-tree that's actually independently worthwhile, I don't really see why we shouldn't remove it and just let those out of tree use cases provide their own out of tree versions of vfio-platform. Thanks,
Quoted 2 lines
Now (1 week before freeze for release) is a good time to post a patch deprecating it :)
Yes I will do that tomorrow
Eric
Quoted 4 lines · Cédric Le Goater
Hello,
This series avoids compiling VFIO on 32-bit host platforms where it is not needed.
If it was previously enabled on 32-bit and was possible to successfully build & use, then it needs to go through the deprecation process - we can't just rip out features with no prior warning.
In any case this recently merged:
commit 6d701c9bac1d3571e9ad511e01b27df7237f0b13
Author: Richard Henderson <[email protected]>
Date: Mon Jan 27 16:22:24 2025 -0800
meson: Deprecate 32-bit host support
We deprecated i686 system mode support for qemu 8.0. However, to make real cleanups to TCG we need to deprecate all 32-bit hosts.
so 32-bit host support in general is nearing end of life. Given that, I don't think we need to further limit 32-bit host for individual features, just let it die all at once.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Hello
Quoted 9 lines · Daniel P. Berrangé
Quoted 4 lines · Cédric Le Goater
Hello,
This series avoids compiling VFIO on 32-bit host platforms where it is not needed.
If it was previously enabled on 32-bit and was possible to successfully build & use, then it needs to go through the deprecation process - we can't just rip out features with no prior warning.
well, x86 32-bit was the host platform I was not sure about and Alex confirmed it worked. We would need deprecation for it I agree.
Quoted 10 lines
In any case this recently merged:
commit
6d701c9bac1d3571e9ad511e01b27df7237f0b13
Author: Richard Henderson <[email protected]>
Date: Mon Jan 27 16:22:24 2025 -0800meson: Deprecate 32-bit host support
We deprecated i686 system mode support for qemu 8.0. However, to make real cleanups to TCG we need to deprecate all 32-bit hosts.
oh. I missed that. Great, at last !
Quoted 3 lines
so 32-bit host support in general is nearing end of life. Given that, I don't think we need to further limit 32-bit host for individual features, just let it die all at once.
yes. Let's do that.
Now, I have to look more closely at those patches modifying VFIO for 32-bit support.
Thanks,
C.