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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,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 745FEC433F5 for ; Thu, 16 Sep 2021 12:26:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1E62A60EE0 for ; Thu, 16 Sep 2021 12:26:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E62A60EE0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:51568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQqTS-0007pF-4n for qemu-devel@archiver.kernel.org; Thu, 16 Sep 2021 08:26:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQqSC-0006U1-3R for qemu-devel@nongnu.org; Thu, 16 Sep 2021 08:25:25 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:44594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQqSA-0004tQ-0H for qemu-devel@nongnu.org; Thu, 16 Sep 2021 08:25:23 -0400 Received: by mail-wm1-x332.google.com with SMTP id l7-20020a1c2507000000b002e6be5d86b3so4341817wml.3 for ; Thu, 16 Sep 2021 05:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=71AUUp+YrqYzna7fzXwAiwy0Kwn6P++MR152fVslebw=; b=zvem2x5wkL9u41qQP2kjAm3R3uMZ48xNc9BVEqDLxKkKQXNvCQKwJ5XyOuxyJWGoQA 9K/osQqSIF1De9eISoiAVCipYmCCON2ZlS7x5FbeUebAzJ5RgJga8lOANFgPsYG5YgaB u29bGJZBb0by6CAKcnm88GpT5z39nR1JJ082CJMgKIvgTHH4GB1wXLretU3bgmM8ke3x V52SiB5wcu2ohWCLakU7gf3pDoK3uiE9EP22uMCBwZmPZMGo0OP9YvoPl/jfD10EliJD bE0wqjVKD2VIyJ72q/exXE7kQBUSqV8Kza0ypCRMxE7fqLNfchwHVEHlSiX+XpZOVV8T o8vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=71AUUp+YrqYzna7fzXwAiwy0Kwn6P++MR152fVslebw=; b=CxiuOJoKB4rbjeA8bamPofi+Vn5shmmUUAhcoCNXkvIuuSjVsnCIrFjnMM2H4TdWJq SneptQuzJrg7WxFho88jIkNWudqpJw6Rn8vq4m8/ioiDy0jRIkjFKKYGtyN5NFbfD6GU WXwMbezVv83m/6sj69b7pmMlQKOUT9Iu0MEDgz6yUy8A5a8YVxUXN8vTpUQViBsJUSGt M9p1jcGZw8+Cry4SklbrCjorQSwf55mzGZxNX/oyyub2l/R4i7lY6bB+7gf57JoUeRb5 Qy/UwF+A1OXRHM6I2I4u4LpzPDIDJwC4SLlmWaaL14fmqza8j2kkVbbvdRRD/6wGea56 KEmg== X-Gm-Message-State: AOAM530okD+fxZHrhDrP0nPzmed8Mt3thWqD1c99LEFVlv743Zgy6Fbn maMoy0nTClaAeAYx1D9W3uopGLzxlrZptjIrOAbfHA== X-Google-Smtp-Source: ABdhPJyXxcl4ikmX42HwfCz3G+/S/vFGefYj469OjKmLkIAK5pV4YdnEaiw/f1Se9goiOcKZfmVieeMWMPjRBAvLwpE= X-Received: by 2002:a7b:c194:: with SMTP id y20mr801054wmi.37.1631795119786; Thu, 16 Sep 2021 05:25:19 -0700 (PDT) MIME-Version: 1.0 References: <20210915181049.27597-1-agraf@csgraf.de> <20210915181049.27597-7-agraf@csgraf.de> In-Reply-To: <20210915181049.27597-7-agraf@csgraf.de> From: Peter Maydell Date: Thu, 16 Sep 2021 13:24:28 +0100 Message-ID: Subject: Re: [PATCH v11 06/10] hvf: arm: Implement -cpu host To: Alexander Graf Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Sergio Lopez , Peter Collingbourne , Richard Henderson , QEMU Developers , Cameron Esfahani , Roman Bolshakov , qemu-arm , Frank Yang , Paolo Bonzini , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Wed, 15 Sept 2021 at 19:10, Alexander Graf wrote: > > Now that we have working system register sync, we push more target CPU > properties into the virtual machine. That might be useful in some > situations, but is not the typical case that users want. > > So let's add a -cpu host option that allows them to explicitly pass all > CPU capabilities of their host CPU into the guest. > > Signed-off-by: Alexander Graf > Acked-by: Roman Bolshakov > Reviewed-by: Sergio Lopez > > + /* > + * A scratch vCPU returns SCTLR 0, so let's fill our default with the M1 > + * boot SCTLR from https://github.com/AsahiLinux/m1n1/issues/97 > + */ > + ahcf->reset_sctlr = 0x30100180; > + /* OVMF chokes on boot if SPAN is not set, so default it to on */ > + ahcf->reset_sctlr |= 0x00800000; Isn't that just an OVMF bug ? If you want this then you need to convince me why this isn't just a workaround for a buggy guest. Otherwise Reviewed-by: Peter Maydell thanks -- PMM