From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 0/3] Fix cr0.wp=0 emulation Date: Thu, 27 May 2010 14:50:03 +0300 Message-ID: <1274961006-19413-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Xiao Guangrong , Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38298 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933928Ab0E0LuM (ORCPT ); Thu, 27 May 2010 07:50:12 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Xiao didn't find the nice cr0.wp=0 trick because it wasn't there, removed accidentally by b70ccb0b3fd. Restore the trick and document it. Avi Kivity (3): KVM: MMU: Allow spte.w=1 for gpte.w=0 and cr0.wp=0 only in shadow mode KVM: MMU: Remove user access when allowing kernel access to gpte.w=0 page KVM: MMU: Document cr0.wp emulation Documentation/kvm/mmu.txt | 18 ++++++++++++++++++ arch/x86/kvm/mmu.c | 6 +++++- 2 files changed, 23 insertions(+), 1 deletions(-)