VGAPassthrough: success in host F19,guest Windows7/KVM GPU直通

VGAPassthrough: success in host F19, guest Windows7
GPUPassthrough: success in Fedora-Rawhide

HOST:
CPU: Core i5 3470
GPU: ATI HD Radeon 7850
OS: Fedora-Rawhide
QEMU: qemu-1.5.1
kvm-vgapassthrough
So, here’s the steps

0. Enable the mainboard VxT, iommu and alter the video device to Intel HD

1. See what we have got now.

We have output below

You can see the pci bus and vendor.

2. Modify the kernel parameter, morprobe.d and libvirt.conf

Add follow parameters to grub.conf

NOTE: If you have got an AMD cpu, please replace “interl_iommu=on” with “iommu=pt iommu=1”
Add modprobe.conf to /etc/modprobe.d/ with this content:

change the following options in /etc/libvirt/qemu.conf:

Reboot.

3. Using scripts below

Version 1: VFIO-Passthrough

File: vfio-bind

Bind the device

Start VM

Version 2: PCI-Passthrough

Bind device

Start VM