mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 03:50:12 +00:00
PCIe passthrough: fixup: avoid addr conflict and cleanup a bit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d7d698f60c
commit
e2b0d85dda
@ -193,11 +193,11 @@ sub get_pcie_addr_map {
|
||||
hostpci8bus0 => { bus => "pcie.0", addr => 13 },
|
||||
hostpci9bus0 => { bus => "pcie.0", addr => 14 },
|
||||
hostpci10bus0 => { bus => "pcie.0", addr => 15 },
|
||||
hostpci11bus0 => { bus => "pcie.0", addr => 20 },
|
||||
hostpci12bus0 => { bus => "pcie.0", addr => 21 },
|
||||
hostpci13bus0 => { bus => "pcie.0", addr => 22 },
|
||||
hostpci14bus0 => { bus => "pcie.0", addr => 23 },
|
||||
hostpci15bus0 => { bus => "pcie.0", addr => 24 },
|
||||
hostpci11bus0 => { bus => "pcie.0", addr => 21 },
|
||||
hostpci12bus0 => { bus => "pcie.0", addr => 22 },
|
||||
hostpci13bus0 => { bus => "pcie.0", addr => 23 },
|
||||
hostpci14bus0 => { bus => "pcie.0", addr => 24 },
|
||||
hostpci15bus0 => { bus => "pcie.0", addr => 25 },
|
||||
} if !defined($pcie_addr_map);
|
||||
|
||||
return $pcie_addr_map;
|
||||
@ -222,8 +222,6 @@ sub print_pcie_root_port {
|
||||
my ($i) = @_;
|
||||
my $res = '';
|
||||
|
||||
my $id = $i + 1;
|
||||
|
||||
my $root_port_addresses = {
|
||||
4 => "10.0",
|
||||
5 => "10.1",
|
||||
@ -240,6 +238,7 @@ sub print_pcie_root_port {
|
||||
};
|
||||
|
||||
if (defined($root_port_addresses->{$i})) {
|
||||
my $id = $i + 1;
|
||||
$res = "pcie-root-port,id=ich9-pcie-port-${id}";
|
||||
$res .= ",addr=$root_port_addresses->{$i}";
|
||||
$res .= ",x-speed=16,x-width=32,multifunction=on,bus=pcie.0";
|
||||
|
Loading…
Reference in New Issue
Block a user