From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9tu8-0000o9-Q0 for qemu-devel@nongnu.org; Fri, 07 Sep 2012 04:27:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9tu3-0006Iz-2W for qemu-devel@nongnu.org; Fri, 07 Sep 2012 04:27:08 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:52704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9tu2-0006Fn-DN for qemu-devel@nongnu.org; Fri, 07 Sep 2012 04:27:02 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Sep 2012 13:56:37 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q878QXqd35782790 for ; Fri, 7 Sep 2012 13:56:33 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q878QWKr014739 for ; Fri, 7 Sep 2012 18:26:32 +1000 From: Liu Sheng Date: Fri, 7 Sep 2012 16:26:26 +0800 Message-Id: <1347006389-543-1-git-send-email-liusheng@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/3] support kvm readonly memory slot in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org Cc: aliguori@us.ibm.com, mtosatti@redhat.com, qemu-devel@nongnu.org, xiaoguangrong@linux.vnet.ibm.com, avi@redhat.com, Liu Sheng This patch set make the readonly memory in qemu really readonly, using readonly memory slots feature in kvm, to make qemu-kvm safer. Memory regions with readonly property would be plug into kvm as readonly memory slots. This patch set depends on the last patch "Introduce write_readonly_mem in mmio-exit-info to indicate this exit is caused by write access on readonly memslot" http://marc.info/?l=linux-kernel&m=134563967500539&w=2 of readonly memory slots in kvm", which has not been accepted yet. Liu Sheng (3): set the readonly property of rom memory region in pc update kvm related the head file from kernel support readonly memory feature in qemu hw/pc.c | 1 + hw/pci.c | 1 + kvm-all.c | 47 ++++++++++++++++++++++++++++++++---------- linux-headers/asm-x86/kvm.h | 1 + linux-headers/linux/kvm.h | 16 +++++++++++-- 5 files changed, 52 insertions(+), 14 deletions(-) -- 1.7.7.6