From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109Ab2FLCrj (ORCPT ); Mon, 11 Jun 2012 22:47:39 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:34599 "EHLO e23smtp05.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768Ab2FLCrh (ORCPT ); Mon, 11 Jun 2012 22:47:37 -0400 Message-ID: <4FD6ADC2.2030402@linux.vnet.ibm.com> Date: Tue, 12 Jun 2012 10:47:30 +0800 From: Xiao Guangrong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Xiao Guangrong CC: Avi Kivity , Marcelo Tosatti , LKML , KVM Subject: [PATCH v3 2/6] KVM: hide KVM_MEMSLOT_INVALID from userspace References: <4FD6ADA6.40008@linux.vnet.ibm.com> In-Reply-To: <4FD6ADA6.40008@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit x-cbid: 12061116-1396-0000-0000-0000016074E4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quote Avi's comment: | KVM_MEMSLOT_INVALID is actually an internal symbol, not used by | userspace. Please move it to kvm_host.h. Also, move KVM_MEMSLOT_INVALID to the highest bit Signed-off-by: Xiao Guangrong --- include/linux/kvm.h | 1 - include/linux/kvm_host.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 2ce09aa..dc3aa2a 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -103,7 +103,6 @@ struct kvm_userspace_memory_region { /* for kvm_memory_region::flags */ #define KVM_MEM_LOG_DIRTY_PAGES 1UL -#define KVM_MEMSLOT_INVALID (1UL << 1) /* for KVM_IRQ_LINE */ struct kvm_irq_level { diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 27ac8a4..cf6bb58 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -34,6 +34,8 @@ #define KVM_MMIO_SIZE 8 #endif +#define KVM_MEMSLOT_INVALID (1UL << 31) + /* * If we support unaligned MMIO, at most one fragment will be split into two: */ -- 1.7.7.6