From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY950-0007l2-7v for qemu-devel@nongnu.org; Fri, 03 May 2013 02:02:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UY94x-0003Nn-Jr for qemu-devel@nongnu.org; Fri, 03 May 2013 02:02:50 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:35589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UY94x-0003Jj-23 for qemu-devel@nongnu.org; Fri, 03 May 2013 02:02:47 -0400 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 3 May 2013 16:00:13 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 1A837357804A for ; Fri, 3 May 2013 16:02:31 +1000 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r435mjNj21102656 for ; Fri, 3 May 2013 15:48:45 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r4362ULq001584 for ; Fri, 3 May 2013 16:02:30 +1000 Message-ID: <518352F4.8020800@linux.vnet.ibm.com> Date: Fri, 03 May 2013 14:02:28 +0800 From: Xiao Guangrong MIME-Version: 1.0 References: <1367137941-4310-1-git-send-email-jordan.l.justen@intel.com> <1367137941-4310-3-git-send-email-jordan.l.justen@intel.com> In-Reply-To: <1367137941-4310-3-git-send-email-jordan.l.justen@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/6] kvm: support using KVM_MEM_READONLY flag for readonly regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jordan Justen Cc: qemu-devel@nongnu.org On 04/28/2013 04:32 PM, Jordan Justen wrote: > A slot that uses KVM_MEM_READONLY can be read from and code > can execute from the region, but writes will trap. > > For regions that are readonly and also not writeable, we > force the slot to be removed so reads or writes to the region > will trap. (A memory region in this state is not executable > within kvm.) > Reviewed-by: Xiao Guangrong