Skip to content

Commit

Permalink
Fix virtio-net-pci* "vectors" compat
Browse files Browse the repository at this point in the history
hw_compat_5_2 has an issue: it affects only "virtio-net-pci"
but not "virtio-net-pci-transitional" and
"virtio-net-pci-non-transitional".  The solution is to use the
"virtio-net-pci-base" type in compat_props.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1999141

Signed-off-by: Eduardo Habkost <[email protected]>
Signed-off-by: Jean-Louis Dupond <[email protected]>
Acked-by: Jason Wang <[email protected]>
Acked-by: Jean-Louis Dupond <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
ehabkost authored and jasowang committed Nov 5, 2021
1 parent 25ddb94 commit 3fd641a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/core/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ GlobalProperty hw_compat_5_2[] = {
{ "ICH9-LPC", "smm-compat", "on"},
{ "PIIX4_PM", "smm-compat", "on"},
{ "virtio-blk-device", "report-discard-granularity", "off" },
{ "virtio-net-pci", "vectors", "3"},
{ "virtio-net-pci-base", "vectors", "3"},
};
const size_t hw_compat_5_2_len = G_N_ELEMENTS(hw_compat_5_2);

Expand Down

0 comments on commit 3fd641a

Please sign in to comment.