diff options
author | Avi Kivity <avi@qumranet.com> | 2007-04-29 08:02:17 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:32 -0400 |
commit | 02c83209726270ddf9597deabc45e08f6fc3942c (patch) | |
tree | 570c2d96c1daba96ae2891e63b1e55b3959e9aba /include/linux/kvm.h | |
parent | e7df56e4a00358b6975fae3b70dc9df1282d427a (diff) |
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>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 07bf353eeb6f..738c2f50c774 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <asm/types.h> | 11 | #include <asm/types.h> |
12 | #include <linux/ioctl.h> | 12 | #include <linux/ioctl.h> |
13 | 13 | ||
14 | #define KVM_API_VERSION 10 | 14 | #define KVM_API_VERSION 11 |
15 | 15 | ||
16 | /* | 16 | /* |
17 | * Architectural interrupt line count, and the size of the bitmap needed | 17 | * Architectural interrupt line count, and the size of the bitmap needed |
@@ -58,9 +58,8 @@ enum kvm_exit_reason { | |||
58 | /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ | 58 | /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ |
59 | struct kvm_run { | 59 | struct kvm_run { |
60 | /* in */ | 60 | /* in */ |
61 | __u32 io_completed; /* mmio/pio request completed */ | ||
62 | __u8 request_interrupt_window; | 61 | __u8 request_interrupt_window; |
63 | __u8 padding1[3]; | 62 | __u8 padding1[7]; |
64 | 63 | ||
65 | /* out */ | 64 | /* out */ |
66 | __u32 exit_reason; | 65 | __u32 exit_reason; |