Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 17 Jul 2018 11:22:26 -0000 Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ffO3l-0006Dy-65 for speck@linutronix.de; Tue, 17 Jul 2018 13:22:25 +0200 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B74077885 for ; Tue, 17 Jul 2018 11:22:19 +0000 (UTC) Received: from [10.36.116.189] (ovpn-116-189.ams2.redhat.com [10.36.116.189]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 99C032156893 for ; Tue, 17 Jul 2018 11:22:18 +0000 (UTC) Subject: [MODERATED] Re: [PATCH] L1TF KVM ARCH_CAPABILITIES #0 References: <20180715135716.1874-1-pbonzini@redhat.com> <20180716204418.GA17294@char.US.ORACLE.com> From: Paolo Bonzini Message-ID: <7f673221-b4f4-54a1-15b2-efe5aa0c3a29@redhat.com> Date: Tue, 17 Jul 2018 13:22:17 +0200 MIME-Version: 1.0 In-Reply-To: <20180716204418.GA17294@char.US.ORACLE.com> Content-Type: multipart/mixed; boundary="7vnCJteNQDi7V2rYXzTJPJkDEGaqjXVWZ"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --7vnCJteNQDi7V2rYXzTJPJkDEGaqjXVWZ Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 16/07/2018 22:44, speck for Konrad Rzeszutek Wilk wrote: > I am thinking I am missing something here. I was expecting if I do > rdmsr 0x10a inside the guest I would get '8' but instead I got '0'? >=20 > The guest does see CPUID.7.EDX. Bit 29 so the guest does expose 'arch_c= apability' > in the /proc/cpuinfo flags. >=20 > And the data |=3D ARCH_CAP_SKIP.. is certainly run (added a printk ther= e just > in case). >=20 > Thoughts? I tested a similar patch and it worked, so I'll try yours and let you kno= w. Paolo --7vnCJteNQDi7V2rYXzTJPJkDEGaqjXVWZ--