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 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73EBBC433FE for ; Mon, 10 Oct 2022 12:22:05 +0000 (UTC) Received: from localhost ([::1]:33678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohrnI-0003NX-3z for qemu-devel@archiver.kernel.org; Mon, 10 Oct 2022 08:22:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohrln-0002VS-7R for qemu-devel@nongnu.org; Mon, 10 Oct 2022 08:20:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:58071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohrlj-0000hW-QO for qemu-devel@nongnu.org; Mon, 10 Oct 2022 08:20:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665404425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9s5o6SdS8P0CfqhmvZD+bK03/Hb+EKcKUZ78+emLMaY=; b=bWBUVwYPtfNSI4Jp6m8177McPZKchga+bHoqUcAVYhLq3xNAWAkIwKr89RRArS+TIahvPZ fS5duPsQQIpnItuIA1lB9WB3xl9/AH0a4KE6C/+bF7OSW+RBztQo4hpLVxY/jPZ2PvcWxk TJeIq0KYLonKZW8okfXwf3f65ZxA7ds= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-473-in94mBAVOtyavCUM4Jip9g-1; Mon, 10 Oct 2022 08:20:19 -0400 X-MC-Unique: in94mBAVOtyavCUM4Jip9g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D5D98811E81; Mon, 10 Oct 2022 12:20:18 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.195.183]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74061B2798; Mon, 10 Oct 2022 12:20:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 368161800605; Mon, 10 Oct 2022 09:30:20 +0200 (CEST) Date: Mon, 10 Oct 2022 09:30:20 +0200 From: Gerd Hoffmann To: "Michael S. Tsirkin" Cc: Paolo Bonzini , Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= , qemu-devel , Sergio Lopez , Eduardo Habkost , Marcel Apfelbaum , Richard Henderson , kvm , Marcelo Tosatti Subject: Re: [PATCH v4] x86: add etc/phys-bits fw_cfg file Message-ID: <20221010073020.d3bfkm6xi55a7dqd@sirius.home.kraxel.org> References: <20220922101454.1069462-1-kraxel@redhat.com> <20220922122058.vesh352623uaon6e@sirius.home.kraxel.org> <20220922203345.3r7jteg7l75vcysv@sirius.home.kraxel.org> <20220923062312.sibqhfhfznnc22km@sirius.home.kraxel.org> <20221007094427-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221007094427-mutt-send-email-mst@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Received-SPF: pass client-ip=170.10.129.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, > > > > Given newer processors have more than 40 and for older ones we know > > > > the possible values for the two relevant x86 vendors we could do > > > > something along the lines of: > > > > > > > > phys-bits >= 41 -> valid > > > > phys-bits == 40 + AuthenticAMD -> valid > > > > phys-bits == 36,39 + GenuineIntel -> valid > > > > everything else -> invalid > I dropped the patch for now. You can drop it forever. For the mail archives and anyone interested: The approach outlined above appears to work well, patches just landed in edk2 master branch. Next edk2 stable tag (2022-11) will have it. take care, Gerd