Skip to contentSkip to conversation

kvm: remove KVM_MMIO_SIZE

PATCH In review Tiejun Chen 2 participants 2 messages Feb 5, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: remove KVM_MMIO_SIZE

After f78146b0f923, "KVM: Fix page-crossing MMIO", and 87da7e66a405, "KVM: x86: fix vcpu->mmio_fragments overflow", actually KVM_MMIO_SIZE is gone.

---
 arch/x86/include/asm/kvm_host.h | 2 --
 include/linux/kvm_host.h        | 4 ----
 2 files changed, 6 deletions(-)
arch/x86/include/asm/kvm_host.h +0 -2
index cb19d05..b0c10fb 100644
@@ -38,8 +38,6 @@
 #define KVM_PRIVATE_MEM_SLOTS 3
 #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS)
 
-#define KVM_MMIO_SIZE 16
-
 #define KVM_PIO_PAGE_OFFSET 1
 #define KVM_COALESCED_MMIO_PAGE_OFFSET 2
 
include/linux/kvm_host.h +0 -4
index 26f1060..cdbe5cc 100644
@@ -33,10 +33,6 @@
 
 #include <asm/kvm_host.h>
 
-#ifndef KVM_MMIO_SIZE
-#define KVM_MMIO_SIZE 8
-#endif
-
 /*
  * The bit 16 ~ bit 31 of kvm_memory_region::flags are internally used
  * in kvm, other bits are visible for userspace which are defined in
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 29 lines · Tiejun Chen

After f78146b0f923, "KVM: Fix page-crossing MMIO", and 87da7e66a405, "KVM: x86: fix vcpu->mmio_fragments overflow", actually KVM_MMIO_SIZE is gone.

---
 arch/x86/include/asm/kvm_host.h | 2 --
 include/linux/kvm_host.h        | 4 ----
 2 files changed, 6 deletions(-)
arch/x86/include/asm/kvm_host.h +0 -2
index cb19d05..b0c10fb 100644
@@ -38,8 +38,6 @@
 #define KVM_PRIVATE_MEM_SLOTS 3
 #define KVM_MEM_SLOTS_NUM (KVM_USER_MEM_SLOTS + KVM_PRIVATE_MEM_SLOTS)
 
-#define KVM_MMIO_SIZE 16
-
 #define KVM_PIO_PAGE_OFFSET 1
 #define KVM_COALESCED_MMIO_PAGE_OFFSET 2
 
include/linux/kvm_host.h +0 -0
index 26f1060..cdbe5cc 100644

include/linux/kvm_host.h line 38

Quoted 10 lines
include/linux/kvm_host.h +0 -4
@@ -33,10 +33,6 @@
 
 #include <asm/kvm_host.h>
 
-#ifndef KVM_MMIO_SIZE
-#define KVM_MMIO_SIZE 8
-#endif
-
 /*
  * The bit 16 ~ bit 31 of kvm_memory_region::flags are internally used
  * in kvm, other bits are visible for userspace which are defined in

Nice, thanks.

Paolo