forked from umo208/LookingGlass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[c-host] take just the ivshmem headers and omit the kvm-guest submodule
- Loading branch information
Showing
6 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "vendor/kvm-guest-drivers-windows"] | ||
path = vendor/kvm-guest-drivers-windows | ||
url = https://github.com/virtio-win/kvm-guest-drivers-windows.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
B1-rc3-7-g7d26027752+1 | ||
B1-rc3-8-g373d4ac932+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#include <initguid.h> | ||
|
||
DEFINE_GUID (GUID_DEVINTERFACE_IVSHMEM, | ||
0xdf576976,0x569d,0x4672,0x95,0xa0,0xf5,0x7e,0x4e,0xa0,0xb2,0x10); | ||
// {df576976-569d-4672-95a0-f57e4ea0b210} | ||
|
||
typedef UINT16 IVSHMEM_PEERID; | ||
typedef UINT64 IVSHMEM_SIZE; | ||
|
||
/* | ||
This structure is for use with the IOCTL_IVSHMEM_REQUEST_MMAP IOCTL | ||
*/ | ||
typedef struct IVSHMEM_MMAP | ||
{ | ||
IVSHMEM_PEERID peerID; // our peer id | ||
IVSHMEM_SIZE size; // the size of the memory region | ||
PVOID ptr; // pointer to the memory region | ||
UINT16 vectors; // the number of vectors available | ||
} | ||
IVSHMEM_MMAP, *PIVSHMEM_MMAP; | ||
|
||
/* | ||
This structure is for use with the IOCTL_IVSHMEM_RING_DOORBELL IOCTL | ||
*/ | ||
typedef struct IVSHMEM_RING | ||
{ | ||
IVSHMEM_PEERID peerID; // the id of the peer to ring | ||
UINT16 vector; // the doorbell to ring | ||
} | ||
IVSHMEM_RING, *PIVSHMEM_RING; | ||
|
||
/* | ||
This structure is for use with the IOCTL_IVSHMEM_REGISTER_EVENT IOCTL | ||
Please Note: | ||
- The IVSHMEM driver has a hard limit of 32 events. | ||
- Events that are singleShot are released after they have been set. | ||
- At this time repeating events are only released when the driver device | ||
handle is closed, closing the event handle doesn't release it from the | ||
drivers list. While this won't cause a problem in the driver, it will | ||
cause you to run out of event slots. | ||
*/ | ||
typedef struct IVSHMEM_EVENT | ||
{ | ||
UINT16 vector; // the vector that triggers the event | ||
HANDLE event; // the event to trigger | ||
BOOLEAN singleShot; // set to TRUE if you want the driver to only trigger this event once | ||
} | ||
IVSHMEM_EVENT, *PIVSHMEM_EVENT; | ||
|
||
#define IOCTL_IVSHMEM_REQUEST_PEERID CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define IOCTL_IVSHMEM_REQUEST_SIZE CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define IOCTL_IVSHMEM_REQUEST_MMAP CTL_CODE(FILE_DEVICE_UNKNOWN, 0x802, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define IOCTL_IVSHMEM_RELEASE_MMAP CTL_CODE(FILE_DEVICE_UNKNOWN, 0x803, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define IOCTL_IVSHMEM_RING_DOORBELL CTL_CODE(FILE_DEVICE_UNKNOWN, 0x804, METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define IOCTL_IVSHMEM_REGISTER_EVENT CTL_CODE(FILE_DEVICE_UNKNOWN, 0x805, METHOD_BUFFERED, FILE_ANY_ACCESS) |
Submodule kvm-guest-drivers-windows
deleted from
8c0975