From: Marcelo Tosatti Subject: Re: [PATCH 0/2] Fix GDT limit corruption on Intel Date: Tue, 27 Jul 2010 21:25:49 -0300 Message-ID: <20100728002549.GB7327@amt.cnet> References: <1280158359-26593-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:41679 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755294Ab0G1PFh (ORCPT ); Wed, 28 Jul 2010 11:05:37 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6SF5b2v030087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 28 Jul 2010 11:05:37 -0400 Content-Disposition: inline In-Reply-To: <1280158359-26593-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Jul 26, 2010 at 06:32:37PM +0300, Avi Kivity wrote: > Intel vmx does not restore GDT.LIMIT; this allows host userspace to look at > some host kernel bits by loading a segment register and looking whether a > trap happened or not. > > Fix that by reloading GDT on heavyweight exits. > > Avi Kivity (2): > KVM: VMX: Fix host GDT.LIMIT corruption > KVM: VMX: Use host_gdt variable wherever we need the host gdt > > arch/x86/kvm/vmx.c | 19 ++++++++++--------- > 1 files changed, 10 insertions(+), 9 deletions(-) Applied, thanks.