ixy
ixy copied to clipboard
VIRTIO-PCI: failed to open /sys/bus/pci/devices/<BDF>/resource0
- There is no
resource0
butresource
in my Ubuntu 20.04 VM
- So I changed
resource0
invirtio.c
toresource
.
-
/sys/bus/pci/devices/<BDF>/resource
is read-only, soixy-pktgen
failed becausepermission denied
- I added write permissions to
/sys/bus/pci/devices/<BDF>/resource
(I also tried 777)
- Then it can open the
resource
, but failed atdevice.h:154 write_io8(): pwrite io resource
aftervirtio_legacy_init(): Configuring bar0
Is there something wrong with my usage? Can anyone help?