From: Avi Kivity Subject: [PATCH 0/7] Emulator segment checks Date: Sun, 3 Apr 2011 14:23:48 +0300 Message-ID: <1301829835-29029-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28634 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751824Ab1DCLYN (ORCPT ); Sun, 3 Apr 2011 07:24:13 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p33BOCtS017504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 3 Apr 2011 07:24:12 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p33BOBgG027580 for ; Sun, 3 Apr 2011 07:24:12 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patchset implements segment checks for the emulator. These are needed for guests which can both get the emulator to execute an instruction from an unprivilged context, and also rely on segmentation for security. Avi Kivity (7): KVM: x86 emulator: Add helpers for memory access using segmented addresses KVM: x86 emulator: move invlpg emulation into a function KVM: x86 emulator: change address linearization to return an error code KVM: x86 emulator: pass access size and read/write intent to linearize() KVM: x86 emulator: move linearize() downwards KVM: x86 emulator: move desc_limit_scaled() KVM: x86 emulator: implement segment permission checks arch/x86/kvm/emulate.c | 222 ++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 176 insertions(+), 46 deletions(-)