Hello everyone,
I'm trying to provide QEMU simulated PCI devices to a non-root Linux
environment. However, I haven't found any JAILHOUSE_PCI_TYPE_DEVICE type of
PCI devices to reference in the arm64 config. Instead, I only found virtual
devices of type JAILHOUSE_PCI_TYPE_IVSHMEM. These devices are mounted on a
simple bus created by Jailhouse, unlike the devices I added using "-device
xyfdev-pci,id=t0,addr=0x18" on QEMU, which are in two separate domains.
I attempted to add the content of JAILHOUSE_PCI_TYPE_DEVICE to the cell
config:
{
.type = JAILHOUSE_PCI_TYPE_DEVICE,
.domain = 0,
.bdf = 0x18,
.bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX,
.shmem_regions_start = 14,
.shmem_dev_id = 1,
.shmem_peers = 2,
.shmem_protocol = JAILHOUSE_SHMEM_PROTO_UNDEFINED,
}
But I'm unsure how to modify the device tree file to expose this device to
non-root. If I don't modify the device tree, non-root Linux will report the
following error during startup:
FATAL: Unhandled HYP exception: synchronous abort from EL2
pc: 0000ffffc020b27c lr: 0000ffffc020bc84 spsr: 800003c9 EL2
sp: 0000ff0000010e30 esr: 25 1 1800005
x0: 0000000000000000 x1: 0000ff0000010eb8 x2: 0000000000018000
x3: 0000ffffc020b260 x4: 0000ffffc020b27c x5: 0000000000000003
x6: 0000000000000018 x7: 0000000000000000 x8: 0000ffffc02b32b0
x9: 0000ff0000010e6c x10: 0000ffffc02b02fc x11: 0000000000000000
x12: 0000000000000000 x13: 0000000000000028 x14: 0000ff0000010eb8
x15: ffff00003482691c x16: 0000ffffc020bbd8 x17: 00000000af5879f2
x18: ffffffffffffffff x19: 0000ff0000010eb8 x20: 0000000000000018
x21: 0000000000000000 x22: 0000000000000002 x23: 0000000000000004
x24: 0000000000000000 x25: 0000000000000018 x26: ffff8000112c0530
x27: 0000000000000000 x28: 0000000000000000 x29: 0000ff0000010e30
I'd like to know how I can allocate QEMU simulated PCI devices to non-root
Linux. I'm working based on qemu-arm64.c and qemu-arm64-linux-demo.c.
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/0034e1a2-a439-45de-8c25-e090cdf199b5n%40googlegroups.com.