aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-01 09:20:40 -0500
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:23 -0400
commit106b552b43beac2694df5fbafc8f125a72df5f65 (patch)
tree3d26f1f7148eaa4cb6e6d882418db283d9f2d29f
parent06465c5a3aa9948a7b00af49cd22ed8f235cdb0f (diff)
KVM: Remove the 'emulated' field from the userspace interface
We no longer emulate single instructions in userspace. Instead, we service mmio or pio requests. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/kvm_main.c5
-rw-r--r--include/linux/kvm.h3
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index caec54fbf07f..5d24203afd20 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1588,11 +1588,6 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1588 /* re-sync apic's tpr */ 1588 /* re-sync apic's tpr */
1589 vcpu->cr8 = kvm_run->cr8; 1589 vcpu->cr8 = kvm_run->cr8;
1590 1590
1591 if (kvm_run->emulated) {
1592 kvm_arch_ops->skip_emulated_instruction(vcpu);
1593 kvm_run->emulated = 0;
1594 }
1595
1596 if (kvm_run->io_completed) { 1591 if (kvm_run->io_completed) {
1597 if (vcpu->pio_pending) 1592 if (vcpu->pio_pending)
1598 complete_pio(vcpu); 1593 complete_pio(vcpu);
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 15e23bc06e8b..c6dd4a79b74b 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -51,10 +51,9 @@ enum kvm_exit_reason {
51/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ 51/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */
52struct kvm_run { 52struct kvm_run {
53 /* in */ 53 /* in */
54 __u32 emulated; /* skip current instruction */
55 __u32 io_completed; /* mmio/pio request completed */ 54 __u32 io_completed; /* mmio/pio request completed */
56 __u8 request_interrupt_window; 55 __u8 request_interrupt_window;
57 __u8 padding1[7]; 56 __u8 padding1[3];
58 57
59 /* out */ 58 /* out */
60 __u32 exit_type; 59 __u32 exit_type;