Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 26 Jul 2018 08:15:52 -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 1fibR8-0002yr-LF for speck@linutronix.de; Thu, 26 Jul 2018 10:15:51 +0200 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 733587D84D for ; Thu, 26 Jul 2018 08:15:44 +0000 (UTC) Received: from [10.36.117.116] (ovpn-117-116.ams2.redhat.com [10.36.117.116]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A60022026D74 for ; Thu, 26 Jul 2018 08:15:43 +0000 (UTC) Subject: [MODERATED] Re: [PATCH v2 1/4] L1TF KVM ARCH_CAPABILITIES #1 References: <20180725143100.16309-1-pbonzini@redhat.com> <20180725143100.16309-2-pbonzini@redhat.com> <0d41452e-4b21-866d-87f0-f4295c410b48@citrix.com> From: Paolo Bonzini Message-ID: Date: Thu, 26 Jul 2018 10:15:42 +0200 MIME-Version: 1.0 In-Reply-To: <0d41452e-4b21-866d-87f0-f4295c410b48@citrix.com> Content-Type: multipart/mixed; boundary="eerqBAFa7DptBPk0TqkuEKyoXQ8rM4wHD"; protected-headers="v1" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --eerqBAFa7DptBPk0TqkuEKyoXQ8rM4wHD Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 25/07/2018 21:43, speck for Andrew Cooper wrote: >> case MSR_IA32_UCODE_REV: >> - rdmsrl(msr->index, msr->data); > > You'll be wanting a break in here. >=20 >> + case MSR_IA32_ARCH_CAPABILITIES: >> + rdmsrl_safe(msr->index, &msr->data); >> break; No, this is a fallthrough. This patch is unrelated to L1TF, and I'm including it just because the branch is based on 4.18-rc1. See the patch #4 for the actual patch that introduces L1TF handling, and indeed it doesn't rely on fallthrough anymore. The code there becomes: case MSR_IA32_ARCH_CAPABILITIES: msr->data =3D kvm_get_arch_capabilities(); break; case MSR_IA32_UCODE_REV: rdmsrl_safe(msr->index, &msr->data); break; but not yet. Thanks, Paolo --eerqBAFa7DptBPk0TqkuEKyoXQ8rM4wHD--