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=-3.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 2E876C433DF for ; Thu, 25 Jun 2020 06:57:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEF18206FA for ; Thu, 25 Jun 2020 06:57:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mUAPzUbH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEF18206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1joLpC-0003JY-IR; Thu, 25 Jun 2020 06:57:30 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1joLpB-0003JS-PT for xen-devel@lists.xenproject.org; Thu, 25 Jun 2020 06:57:29 +0000 X-Inumbo-ID: 222badd8-b6b1-11ea-bb8b-bc764e2007e4 Received: from mail-wr1-x442.google.com (unknown [2a00:1450:4864:20::442]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 222badd8-b6b1-11ea-bb8b-bc764e2007e4; Thu, 25 Jun 2020 06:57:29 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id k6so4645118wrn.3 for ; Wed, 24 Jun 2020 23:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=szCiaWbBc/QLQKscU+Ab67r+h00I2UsP7dR/oAh2Bsc=; b=mUAPzUbHpsUaO3D1zWtKMa0040E0TSkEnaUDosIRai6z7sIS49QJsbbwPRAGG3qzWK e0VeLHFKq7TQwLCblBp96hpy/6i1IMvrPUy7aDplB01sJl4NzERHEo7qzlqDX+qpdn70 rRtdCMXq0/t3md6Ib6bw1wusek7laLT4yFH22NHHJ68mYalRQrdZQxdk6J48TN6dbBDL eAc41kUrQu36LRLUgPJvSH1BCFWXNuNlmmW+hcNTk4ED5tqbzFBG+8069fG5BAmhPkgH +gN6LXf6PA5JPshOiWKdvuDj7H9Fm89O+r2IxECNnDywOD+Ub67yYPj3gvLuqdFySFT+ 7R6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-transfer-encoding :content-language:thread-index; bh=szCiaWbBc/QLQKscU+Ab67r+h00I2UsP7dR/oAh2Bsc=; b=anP+I5m+PFmpdgDcPwavTS8VXpvR2whYYOVvWF7rMSJDQ1htLYw2LJVfVFTe+uqls7 a12Z+raHLEpB00gkY0GS01thVW/mo80U0TVtZ+srtf+4cHhdp2Mfrg9z/zDIBK0E9UNg 6l0sUOqMin6VEELLI5TycBnK6epQrsT0/Gd9YQSByh4ke3sl2vI687d4zRCdA+KLNmCr MEB6OXiiRln0Vs/tGrf1VNREW2tbH+iL1wyPxEYylwow1TMroCks7SczYjHQS+oggAIE GhacjXZNz93ImnQKkvV7Lyf0vyrUqjQ5BLzmmzFS3AWJtEEEdrxTt7Jn/UOIEbMxxozh D0CA== X-Gm-Message-State: AOAM531GZAInt0g1k3tVUYef2xsILBhXHOF8hWRqtGcKi2C/weo8WDE2 2as3nBHFKT9z/lhtn2314nE= X-Google-Smtp-Source: ABdhPJyEWIqLdTLRBO9eswaBz0H1p+Qzd3rhtUZ/THAzBr0kjvhEe1LR/i4ZkzI4IWxcb25h5DZWog== X-Received: by 2002:adf:e749:: with SMTP id c9mr37860167wrn.25.1593068248354; Wed, 24 Jun 2020 23:57:28 -0700 (PDT) Received: from CBGR90WXYV0 (54-240-197-239.amazon.com. [54.240.197.239]) by smtp.gmail.com with ESMTPSA id c20sm27289994wrb.65.2020.06.24.23.57.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2020 23:57:27 -0700 (PDT) From: Paul Durrant X-Google-Original-From: "Paul Durrant" To: "'Jan Beulich'" References: <41177396-9944-0bbd-66d2-8b4f2bd063f0@suse.com> In-Reply-To: Subject: RE: Ping: [PATCH] x86/CPUID: fill all fields in x86_cpuid_policy_fill_native() Date: Thu, 25 Jun 2020 07:57:27 +0100 Message-ID: <000101d64abd$e376b3d0$aa641b70$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQFLSWsOaDQxr3vkX7lc5kkKH9cReQClPCHVAeSkPHCp6pnN4A== X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: paul@xen.org Cc: 'Andrew Cooper' , =?utf-8?Q?'Roger_Pau_Monn=C3=A9'?= , 'Wei Liu' , xen-devel@lists.xenproject.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" > -----Original Message----- > From: Jan Beulich > Sent: 24 June 2020 16:36 > To: Paul Durrant > Cc: Andrew Cooper ; = xen-devel@lists.xenproject.org; Wei Liu ; > Roger Pau Monn=C3=A9 > Subject: Ping: [PATCH] x86/CPUID: fill all fields in = x86_cpuid_policy_fill_native() >=20 > (sorry, re-sending with To and Cc corrected) >=20 > On 22.06.2020 14:39, Andrew Cooper wrote: > > On 22/06/2020 13:09, Jan Beulich wrote: > >> Coverity validly complains that the new call from > >> tools/tests/cpu-policy/test-cpu-policy.c:test_cpuid_current() = leaves > >> two fields uninitialized, yet they get then consumed by > >> x86_cpuid_copy_to_buffer(). (All other present callers of the = function > >> pass a pointer to a static - and hence initialized - buffer.) > >> > >> Coverity-ID: 1464809 > >> Fixes: c22ced93e167 ("tests/cpu-policy: Confirm that CPUID = serialisation is sorted") > >> Signed-off-by: Jan Beulich > >> > >> --- a/xen/lib/x86/cpuid.c > >> +++ b/xen/lib/x86/cpuid.c > >> @@ -176,6 +176,10 @@ void x86_cpuid_policy_fill_native(struct > >> ARRAY_SIZE(p->extd.raw) - 1); ++i ) > >> cpuid_leaf(0x80000000 + i, &p->extd.raw[i]); > >> > >> + /* Don't report leaves from possible lower level hypervisor. = */ > > > > ", for now." > > > > This will change in the future. > > > > With this, Reviewed-by: Andrew Cooper >=20 > Paul? Release-acked-by: Paul Durrant >=20 > Thanks, Jan