mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
KVM: Don't require explicit indication of completion of mmio or pio
It is illegal not to return from a pio or mmio request without completing it, as mmio or pio is an atomic operation. Therefore, we can simplify the userspace interface by avoiding the completion indication. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
e7df56e4a0
commit
02c8320972
2 changed files with 24 additions and 25 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <asm/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#define KVM_API_VERSION 10
|
||||
#define KVM_API_VERSION 11
|
||||
|
||||
/*
|
||||
* Architectural interrupt line count, and the size of the bitmap needed
|
||||
|
@ -58,9 +58,8 @@ enum kvm_exit_reason {
|
|||
/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */
|
||||
struct kvm_run {
|
||||
/* in */
|
||||
__u32 io_completed; /* mmio/pio request completed */
|
||||
__u8 request_interrupt_window;
|
||||
__u8 padding1[3];
|
||||
__u8 padding1[7];
|
||||
|
||||
/* out */
|
||||
__u32 exit_reason;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue