From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88760C10F14 for ; Thu, 18 Apr 2019 08:02:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6028B214DA for ; Thu, 18 Apr 2019 08:02:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388175AbfDRICJ (ORCPT ); Thu, 18 Apr 2019 04:02:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42362 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfDRICI (ORCPT ); Thu, 18 Apr 2019 04:02:08 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B1385D2EE5; Thu, 18 Apr 2019 08:02:08 +0000 (UTC) Received: from gondolin (dhcp-192-187.str.redhat.com [10.33.192.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id 124085D9CC; Thu, 18 Apr 2019 08:02:04 +0000 (UTC) Date: Thu, 18 Apr 2019 10:02:02 +0200 From: Cornelia Huck To: Eric Farman Cc: Christian Borntraeger , Janosch Frank , David Hildenbrand , Martin Schwidefsky , Heiko Carstens , Paolo Bonzini , linux-s390@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH] KVM: s390: Fix potential spectre warnings Message-ID: <20190418100202.5e3505ed.cohuck@redhat.com> In-Reply-To: <20190417005414.47801-1-farman@linux.ibm.com> References: <20190417005414.47801-1-farman@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 18 Apr 2019 08:02:08 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, 17 Apr 2019 02:54:14 +0200 Eric Farman wrote: > Fix some warnings from smatch: > > arch/s390/kvm/interrupt.c:2310 get_io_adapter() warn: potential spectre issue 'kvm->arch.adapters' [r] (local cap) > arch/s390/kvm/interrupt.c:2341 register_io_adapter() warn: potential spectre issue 'dev->kvm->arch.adapters' [w] > > Signed-off-by: Eric Farman > --- > A recent patch from Paolo [1] acted as a reminder (thanks, Christian!) > that I had one for the s390 KVM code after some code reviews [2]. > Let's clean that up. > > [1] https://patchwork.kernel.org/patch/10895463/ > [2] https://patchwork.kernel.org/patch/10788565/#22484223 > --- > arch/s390/kvm/interrupt.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) Reviewed-by: Cornelia Huck