From patchwork Mon Aug 2 13:33:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 116505 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o72DVpst018078 for ; Mon, 2 Aug 2010 13:31:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751739Ab0HBNbr (ORCPT ); Mon, 2 Aug 2010 09:31:47 -0400 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16]:31325 "EHLO VA3EHSOBE006.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452Ab0HBNbq (ORCPT ); Mon, 2 Aug 2010 09:31:46 -0400 Received: from mail34-va3-R.bigfish.com (10.7.14.243) by VA3EHSOBE006.bigfish.com (10.7.40.26) with Microsoft SMTP Server id 8.1.340.0; Mon, 2 Aug 2010 13:31:46 +0000 Received: from mail34-va3 (localhost.localdomain [127.0.0.1]) by mail34-va3-R.bigfish.com (Postfix) with ESMTP id E024E480249; Mon, 2 Aug 2010 13:31:45 +0000 (UTC) X-SpamScore: 1 X-BigFish: VS1(zzzz1202hzzz32i87h2a8h43h61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail Received: from mail34-va3 (localhost.localdomain [127.0.0.1]) by mail34-va3 (MessageSwitch) id 1280755893842103_3180; Mon, 2 Aug 2010 13:31:33 +0000 (UTC) Received: from VA3EHSMHS036.bigfish.com (unknown [10.7.14.239]) by mail34-va3.bigfish.com (Postfix) with ESMTP id 3EC0DB8087; Mon, 2 Aug 2010 13:30:41 +0000 (UTC) Received: from ausb3extmailp01.amd.com (163.181.251.8) by VA3EHSMHS036.bigfish.com (10.7.99.46) with Microsoft SMTP Server (TLS) id 14.0.482.44; Mon, 2 Aug 2010 13:30:40 +0000 Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with SMTP id o72DV30X006286; Mon, 2 Aug 2010 08:31:06 -0500 X-WSS-ID: 0L6J1IV-02-3KM-02 X-M-MSG: Received: from sausexhtp02.amd.com (sausexhtp02.amd.com [163.181.3.152]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ausb3twp02.amd.com (Tumbleweed MailGate 3.7.2) with ESMTP id 2F893C84D7; Mon, 2 Aug 2010 08:30:30 -0500 (CDT) Received: from storexhtp01.amd.com (172.24.4.3) by sausexhtp02.amd.com (163.181.3.152) with Microsoft SMTP Server (TLS) id 8.2.254.0; Mon, 2 Aug 2010 08:30:34 -0500 Received: from gwo.osrc.amd.com (165.204.16.204) by storexhtp01.amd.com (172.24.4.3) with Microsoft SMTP Server id 8.2.254.0; Mon, 2 Aug 2010 09:30:34 -0400 Received: from lemmy.osrc.amd.com (lemmy.osrc.amd.com [165.204.15.93]) by gwo.osrc.amd.com (Postfix) with ESMTP id 47BAB49C1DD; Mon, 2 Aug 2010 14:30:33 +0100 (BST) Received: by lemmy.osrc.amd.com (Postfix, from userid 1000) id 74A829FC01; Mon, 2 Aug 2010 15:33:39 +0200 (CEST) From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: , Joerg Roedel Subject: [PATCH 1/4] test: Run tests with asid 1 Date: Mon, 2 Aug 2010 15:33:33 +0200 Message-ID: <1280756016-11330-2-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1280756016-11330-1-git-send-email-joerg.roedel@amd.com> References: <1280756016-11330-1-git-send-email-joerg.roedel@amd.com> MIME-Version: 1.0 X-Reverse-DNS: unknown Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 02 Aug 2010 13:31:51 +0000 (UTC) diff --git a/kvm/test/x86/svm.c b/kvm/test/x86/svm.c index 628f3aa..dd4a8da 100644 --- a/kvm/test/x86/svm.c +++ b/kvm/test/x86/svm.c @@ -43,6 +43,7 @@ static void vmcb_ident(struct vmcb *vmcb) vmcb_set_seg(&save->gdtr, 0, desc_table_ptr.base, desc_table_ptr.limit, 0); sidt(&desc_table_ptr); vmcb_set_seg(&save->idtr, 0, desc_table_ptr.base, desc_table_ptr.limit, 0); + ctrl->asid = 1; save->cpl = 0; save->efer = rdmsr(MSR_EFER); save->cr4 = read_cr4();