From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] kvm: remove KVM_MMIO_SIZE Date: Thu, 05 Feb 2015 12:09:34 +0100 Message-ID: <54D34F6E.8040109@redhat.com> References: <1423128146-10357-1-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Tiejun Chen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:33619 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbbBELJj (ORCPT ); Thu, 5 Feb 2015 06:09:39 -0500 In-Reply-To: <1423128146-10357-1-git-send-email-tiejun.chen@intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On 05/02/2015 10:22, Tiejun Chen wrote: > After f78146b0f923, "KVM: Fix page-crossing MMIO", and > 87da7e66a405, "KVM: x86: fix vcpu->mmio_fragments overflow", > actually KVM_MMIO_SIZE is gone. > > Signed-off-by: Tiejun Chen > --- > arch/x86/include/asm/kvm_host.h | 2 -- > include/linux/kvm_host.h | 4 ---- > 2 files changed, 6 deletions(-) > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index cb19d05..b0c10fb 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -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 > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index 26f1060..cdbe5cc 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -33,10 +33,6 @@ > > #include > > -#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