[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KVM: GPU passthrough



Hello

I have two GPUs.My other video card has arrived. The current error has changed.
what could be the problem ?


error:
Error starting domain: internal error: qemu unexpectedly closed the
monitor: 2021-04-27T11:26:00.638521Z qemu-system-x86_64:
-device vfio-pci,host=0000:06:00.0,id=hostdev0,bus=pci.0,addr=0xa:
vfio 0000:06:00.0: failed to setup container for group
18: Failed to set iommu for container: Operation not permitted


-% modules:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

-% log:
dmesg | grep -E "DMAR|IOMMU"
[    0.020358] ACPI: DMAR 0x00000000BFE880C0 000090 (v01 AMI
OEMDMAR  00000001 MSFT 00000097)
[    0.052689] DMAR: IOMMU enabled
[    0.124828] DMAR: Host address width 36
[    0.124829] DMAR: DRHD base: 0x000000fed90000 flags: 0x1
[    0.124834] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap
c90780106f0462 ecap f020e3
[    0.124835] DMAR: RMRR base: 0x000000000e4000 end: 0x000000000e7fff
[    0.124836] DMAR: RMRR base: 0x000000bfeec000 end: 0x000000bfefffff
[    0.564105] DMAR: No ATSR found
[    0.564226] DMAR: dmar0: Using Queued invalidation
[    0.569521] DMAR: Intel(R) Virtualization Technology for Directed I/O

-% gpus:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218
[GeForce 210] [10de:0a65] (rev a2)
01:00.1 Audio device [0403]: NVIDIA Corporation High Definition Audio
Controller [10de:0be3] (rev a1)

nvidia_uvm             36864  0
nvidia              10592256  77 nvidia_uvm
drm                   552960  11 drm_kms_helper,nvidia,radeon,ttm

-% gpus:
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] [1002:6779]
06:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI]
Caicos HDMI Audio [Radeon HD 6450 / 7450/8450/8490 OEM / R5
230/235/235X OEM] [1002:a..

radeon               1466368  2
ttm                   102400  1 radeon
drm_kms_helper        217088  1 radeon
i2c_algo_bit           16384  1 radeon
drm                   552960  11 drm_kms_helper,nvidia,radeon,ttm

On Thu, Apr 15, 2021 at 4:22 PM Gokan Atmaca <linux.gokan@gmail.com> wrote:
>
> Hello
>
> > Just to confirm: you have at least two graphics cards? One for
> > the host to boot with, one for your guest to take over?
>
> I saw it working in my trials. But of course, since there is only one
> graphics card, the image of the host system is gone. :) I am looking
> for a motherboard where I can install two graphics cards.
>
> On Fri, Apr 9, 2021 at 2:51 AM Dan Ritter <dsr@randomstring.org> wrote:
> >
> > Gokan Atmaca wrote:
> > > Hello
> > >
> > > I want to use the graphics card directly in the virtual machine. IOMMU
> > > seems to be running, but unfortunately it doesn't work when I want to
> > > start the virtual machine.
> > >
> > >
> > > error:
> > > pci,host=0000:01:00.0,id=hostdev0,bus=pci.0,addr=0x9: vfio
> > > 0000:01:00.0: group 1 is not viable
> > > Please ensure all devices within the iommu_group are bound to their
> > > vfio bus driver.
> >
> > Just to confirm: you have at least two graphics cards? One for
> > the host to boot with, one for your guest to take over?
> >
> > And you loaded the vfio mod and configured it with the PCI ids
> > for your second card? There could be several.
> >
> > -dsr-


Reply to: