From: Gleb Natapov Subject: [PATCH 0/8] Miscellaneous x86 emulator fixes Date: Tue, 9 Feb 2010 16:13:56 +0200 Message-ID: <1265724844-11112-1-git-send-email-gleb@redhat.com> Cc: kvm@vger.kernel.org To: avi@redhat.com, mtosatti@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:10856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325Ab0BIOOF (ORCPT ); Tue, 9 Feb 2010 09:14:05 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o19EE5tE024949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Feb 2010 09:14:05 -0500 Sender: kvm-owner@vger.kernel.org List-ID: X86 emulator fails to do permission/correctness checking like real CPU does for some instruction. This patch series fixes some of those discrepancies. Gleb Natapov (8): KVM: Add group8 instruction decoding. KVM: Add group9 instruction decoding. KVM: Add Virtual-8086 mode of emulation. KVM: fix memory access during x86 emulation. KVM: Check IOPL level during io instruction emulation. KVM: Fix popf emulation. KVM: Check CPL level during privilege instruction emulation. KVM: Add LOCK prefix validity checking. arch/x86/include/asm/kvm_emulate.h | 15 ++- arch/x86/include/asm/kvm_host.h | 8 +- arch/x86/kvm/emulate.c | 215 +++++++++++++++++++++++++----------- arch/x86/kvm/mmu.c | 17 +-- arch/x86/kvm/mmu.h | 6 + arch/x86/kvm/paging_tmpl.h | 11 ++- arch/x86/kvm/x86.c | 195 ++++++++++++++++++++++++++------ 7 files changed, 351 insertions(+), 116 deletions(-)