From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: VMX: Check cpl before emulating debug register access Date: Tue, 1 Sep 2009 13:44:04 -0300 Message-ID: <20090901164404.GA24107@amt.cnet> References: <1251795805-11643-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]:34600 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbZIAQzm (ORCPT ); Tue, 1 Sep 2009 12:55:42 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n81GtigM022329 for ; Tue, 1 Sep 2009 12:55:44 -0400 Content-Disposition: inline In-Reply-To: <1251795805-11643-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Sep 01, 2009 at 12:03:25PM +0300, Avi Kivity wrote: > Debug registers may only be accessed from cpl 0. Unfortunately, vmx will > code to emulate the instruction even though it was issued from guest > userspace, possibly leading to an unexpected trap later. > > Cc: stable@kernel.org > Signed-off-by: Avi Kivity Applied, thanks.