-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3489 from kwu83tw/pci_passII
Add mocked disk device to test pci passthrough
- Loading branch information
Showing
8 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
scripts/lib/libvirt/templates/cpu-intel-pcipassthrough.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<features> | ||
<acpi/> | ||
<apic/> | ||
<pae/> | ||
<ioapic driver='qemu'/> | ||
</features> | ||
<cpu mode='custom' match='exact'> | ||
<model fallback='allow'>Haswell-noTSX</model> | ||
<feature policy='require' name='vmx'/> | ||
<feature policy='disable' name='monitor'/> | ||
</cpu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<iommu model='intel'> | ||
<driver intremap='on' caching_mode='on'/> | ||
</iommu> |
14 changes: 14 additions & 0 deletions
14
scripts/lib/libvirt/templates/pcie-root-bridge-default.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<controller type='pci' index='0' model='pcie-root'> | ||
<alias name='pcie.0'/> | ||
</controller> | ||
<controller type='pci' index='1' model='dmi-to-pci-bridge'> | ||
<model name='i82801b11-bridge'/> | ||
<alias name='pci.1'/> | ||
<address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/> | ||
</controller> | ||
<controller type='pci' index='2' model='pci-bridge'> | ||
<model name='pci-bridge'/> | ||
<target chassisNr='2'/> | ||
<alias name='pci.2'/> | ||
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> | ||
</controller> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters