search for: vfiovmdquirk

Displaying 2 results from an estimated 2 matches for "vfiovmdquirk".

2020 May 11
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...at offset 0x2000 in MEMBAR2 (BAR 4). The shadow registers are valid > + * if bit 1 is set in the VMD VMLOCK config register 0x70. VMD devices without > + * this native assistance can have these registers safely emulated as these > + * registers are reserved. > + */ > +typedef struct VFIOVMDQuirk { > + VFIOPCIDevice *vdev; > + uint64_t membar_phys[2]; > +} VFIOVMDQuirk; > + > +static uint64_t vfio_vmd_quirk_read(void *opaque, hwaddr addr, unsigned size) > +{ > + VFIOVMDQuirk *data = opaque; > + uint64_t val = 0; > + > + memcpy(&val, (void *)d...
2020 May 13
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...egisters are valid > > > + * if bit 1 is set in the VMD VMLOCK config register 0x70. VMD devices without > > > + * this native assistance can have these registers safely emulated as these > > > + * registers are reserved. > > > + */ > > > +typedef struct VFIOVMDQuirk { > > > + VFIOPCIDevice *vdev; > > > + uint64_t membar_phys[2]; > > > +} VFIOVMDQuirk; > > > + > > > +static uint64_t vfio_vmd_quirk_read(void *opaque, hwaddr addr, unsigned size) > > > +{ > > > + VFIOVMDQuirk *data = opaque; &...