From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5oE2-0006IO-SC for qemu-devel@nongnu.org; Mon, 09 Jun 2008 16:44:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5oE2-0006IB-3Z for qemu-devel@nongnu.org; Mon, 09 Jun 2008 16:44:22 -0400 Received: from [199.232.76.173] (port=40841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5oE1-0006I8-VC for qemu-devel@nongnu.org; Mon, 09 Jun 2008 16:44:22 -0400 Received: from savannah.gnu.org ([199.232.41.3]:50793 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K5oE1-0002OW-Q5 for qemu-devel@nongnu.org; Mon, 09 Jun 2008 16:44:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K5oE0-00045f-KB for qemu-devel@nongnu.org; Mon, 09 Jun 2008 20:44:20 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K5oE0-00045b-7A for qemu-devel@nongnu.org; Mon, 09 Jun 2008 20:44:20 +0000 MIME-Version: 1.0 Errors-To: bellard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fabrice Bellard Message-Id: Date: Mon, 09 Jun 2008 20:44:20 +0000 Subject: [Qemu-devel] [4716] SVM: Fix segment attribute clobbering (Alexander Graf) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4716 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4716 Author: bellard Date: 2008-06-09 20:44:19 +0000 (Mon, 09 Jun 2008) Log Message: ----------- SVM: Fix segment attribute clobbering (Alexander Graf) Modified Paths: -------------- trunk/target-i386/op_helper.c Modified: trunk/target-i386/op_helper.c =================================================================== --- trunk/target-i386/op_helper.c 2008-06-09 19:57:36 UTC (rev 4715) +++ trunk/target-i386/op_helper.c 2008-06-09 20:44:19 UTC (rev 4716) @@ -4767,7 +4767,7 @@ stl_phys(addr + offsetof(struct vmcb_seg, limit), sc->limit); stw_phys(addr + offsetof(struct vmcb_seg, attrib), - (sc->flags >> 8) | ((sc->flags >> 12) & 0x0f00)); + ((sc->flags >> 8) & 0xff) | ((sc->flags >> 12) & 0x0f00)); } static inline void svm_load_seg(target_phys_addr_t addr, SegmentCache *sc)