Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIRTIO-PCI: failed to open /sys/bus/pci/devices/<BDF>/resource0 #34

Open
130B848 opened this issue Sep 24, 2021 · 0 comments
Open

VIRTIO-PCI: failed to open /sys/bus/pci/devices/<BDF>/resource0 #34

130B848 opened this issue Sep 24, 2021 · 0 comments

Comments

@130B848
Copy link

130B848 commented Sep 24, 2021

  1. There is no resource0 but resource in my Ubuntu 20.04 VM
  • So I changed resource0 in virtio.c to resource.
  1. /sys/bus/pci/devices/<BDF>/resource is read-only, so ixy-pktgen failed because permission denied
  • I added write permissions to /sys/bus/pci/devices/<BDF>/resource (I also tried 777)
  1. Then it can open the resource, but failed at device.h:154 write_io8(): pwrite io resource after virtio_legacy_init(): Configuring bar0

Is there something wrong with my usage? Can anyone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant