History

vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls

Realize VFIO_DEVICE_GET_IRQ_INFO ioctl to retrieve VFIO_CCW_IO_IRQ information. Realize VFIO_DEVICE_SET_IRQS ioctl to set an eventfd fd for VFIO_CCW_IO_IRQ. Once a write operation to the ccw_io_region was performed, trigger a signal on this fd.

Dong Jia Shi committed 9 years ago

Commit 120e2141 parent 83d11933 files · +134 −3Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/vfio.h+8−2
@@ -449,8 +449,9 @@ enum { · 448 unmodified lines
449};449};
450 450
451/*451/*
452 * The vfio-ccw bus driver makes use of the following fixed region.452 * The vfio-ccw bus driver makes use of the following fixed region and
453 * Unimplemented regions return a size of zero.453 * IRQ index mapping. Unimplemented regions return a size of zero.
454 * Unimplemented IRQ types return a count of zero.
454 */455 */
455 456
456enum {457enum {
@@ -458,6 +459,11 @@ enum { · 1 unmodified line
458 VFIO_CCW_NUM_REGIONS459 VFIO_CCW_NUM_REGIONS
459};460};
460 461
462enum {
463 VFIO_CCW_IO_IRQ_INDEX,
464 VFIO_CCW_NUM_IRQS
465};
466
461/**467/**
462 * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12,468 * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO - _IORW(VFIO_TYPE, VFIO_BASE + 12,
463 * struct vfio_pci_hot_reset_info)469 * struct vfio_pci_hot_reset_info)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t