search for: vmd_vmlock

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

2020 May 11
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...nt64_t val = 0; > + > + memcpy(&val, (void *)data->membar_phys + addr, size); > + return val; > +} > + > +static const MemoryRegionOps vfio_vmd_quirk = { > + .read = vfio_vmd_quirk_read, > + .endianness = DEVICE_LITTLE_ENDIAN, > +}; > + > +#define VMD_VMLOCK 0x70 > +#define VMD_SHADOW 0x2000 > +#define VMD_MEMBAR2 4 > + > +static int vfio_vmd_emulate_shadow_registers(VFIOPCIDevice *vdev) > +{ > + VFIOQuirk *quirk; > + VFIOVMDQuirk *data; > + PCIDevice *pdev = &vdev->pdev; > + int ret; > + > + dat...
2020 May 13
0
[PATCH for QEMU v2] hw/vfio: Add VMD Passthrough Quirk
...e); > > > + return val; > > > +} > > > + > > > +static const MemoryRegionOps vfio_vmd_quirk = { > > > + .read = vfio_vmd_quirk_read, > > > + .endianness = DEVICE_LITTLE_ENDIAN, > > > +}; > > > + > > > +#define VMD_VMLOCK 0x70 > > > +#define VMD_SHADOW 0x2000 > > > +#define VMD_MEMBAR2 4 > > > + > > > +static int vfio_vmd_emulate_shadow_registers(VFIOPCIDevice *vdev) > > > +{ > > > + VFIOQuirk *quirk; > > > + VFIOVMDQuirk *data; > > > +...