Maybe the virtio need to be revised?

On Wed, May 6, 2020 at 10:51 AM xuan <1877015@bugs.launchpad.net> wrote:
Public bug reported:

Issue discription:
When QEMU starts with "-device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=false,mrg_rxbuf=on,rx_queue_size=1025,tx_queue_size=1025,mq=on,vectors=15,packed=on"

It raises error: Invalid rx_queue_size (= 1025), must be a power of 2
between 256 and 1024

Analysis:
According to virtio1.1 spec, the packed queue size value does not have to be a power of 2.

** Affects: qemu
     Importance: Undecided
         Status: New

--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1877015

Title:
  virtio only support packed ring size power of 2 between 256 and 1024

Status in QEMU:
  New

Bug description:
  Issue discription:
  When QEMU starts with "-device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=false,mrg_rxbuf=on,rx_queue_size=1025,tx_queue_size=1025,mq=on,vectors=15,packed=on"

  It raises error: Invalid rx_queue_size (= 1025), must be a power of 2
  between 256 and 1024

  Analysis:
  According to virtio1.1 spec, the packed queue size value does not have to be a power of 2.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1877015/+subscriptions



--
         此致

罗勇刚
Yours
    sincerely,
Yonggang Luo