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=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 33646C3E8C5 for ; Fri, 27 Nov 2020 17:51:15 +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 01DBC221EB for ; Fri, 27 Nov 2020 17:51:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="IzISu6TZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01DBC221EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kihto-0003Pg-3B for qemu-devel@archiver.kernel.org; Fri, 27 Nov 2020 12:51:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kihrP-0001oR-A9 for qemu-devel@nongnu.org; Fri, 27 Nov 2020 12:48:43 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:48616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kihrN-0006v3-7Y for qemu-devel@nongnu.org; Fri, 27 Nov 2020 12:48:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606499320; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FrUHxBdR6Ox1T/ChkcEIyNYihhGFZ9TLF2XdomcgI9Q=; b=IzISu6TZBkUwIXhZo409M9xb+ndjPbM/y5jYlHaX9g8IeRlf7W3f8tKUP09J8v2FPbXF7u 6i0WkaHAWrvoY85Pm+ZqHLRFFPYNLfUQq+NutxqR0cWRpXLzdQxhX4GL/Z/0s3Bu++5dpl RNwHago9Gte2TXCgFLoDutkrevNr+Pk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-Q7Ycc9AxNmWofgKIH8Jzrg-1; Fri, 27 Nov 2020 12:48:38 -0500 X-MC-Unique: Q7Ycc9AxNmWofgKIH8Jzrg-1 Received: by mail-wr1-f70.google.com with SMTP id n1so3785305wro.22 for ; Fri, 27 Nov 2020 09:48:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FrUHxBdR6Ox1T/ChkcEIyNYihhGFZ9TLF2XdomcgI9Q=; b=tWjTN3n3eVUV/uGlVBl3H/+dnBUPhUUZ7N9MdY9bZWv3DfI9FdEqvhRySUZt5CyYfB dTVIjHEB/FG4JsQDvsiJKsOvlBRC3O+x4arWXSqiFktMXGEMyDDsUH+sTkJWYsI+6vSO 2Fzz0MXeVxODWD/fZr25ln4skdrTQq2BGq19FiovsorQ817ld6e1M5c2tO5T5h5mM1lM Rh5VHKXqBnTThYRwpdevrAVNIgg8wmiG/WtzbKTacHeUeIXi7bEEu/mP4koWsqnf6dad K/s9GrtwisUUhtNrak4JeLf0xoATc9ISNM6VamKHiAe4ZO46K4FMHzLatf+nxzkie67P j39A== X-Gm-Message-State: AOAM530+bLgmRmFlwkIQXE+IbPupFf91Cl9HhCFQBSFB5DGrtUz2xMYY wUSeUVcpGrTHXMse5TAybH5ojaWWMTjJNf4b62+6eTRBBkLq7S5bIRrNmoXXHY1ygnLSkPnrN08 ICfzU8c7sPj4YLKw= X-Received: by 2002:a05:600c:2886:: with SMTP id g6mr10503287wmd.110.1606499317553; Fri, 27 Nov 2020 09:48:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyd/4bkUcYSNFcGQIRPCo7jYj4UrUke+CXhEuSp3bweo8Rd1mQwkk+SrIqPBsUdb/SaUOduQA== X-Received: by 2002:a05:600c:2886:: with SMTP id g6mr10503263wmd.110.1606499317354; Fri, 27 Nov 2020 09:48:37 -0800 (PST) Received: from [192.168.1.36] (111.red-88-21-205.staticip.rima-tde.net. [88.21.205.111]) by smtp.gmail.com with ESMTPSA id a15sm16287289wrn.75.2020.11.27.09.48.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Nov 2020 09:48:36 -0800 (PST) Subject: Re: [PATCH 0/8] hvf: Implement Apple Silicon Support To: Eduardo Habkost , Alexander Graf , Claudio Fontana References: <20201126215017.41156-1-agraf@csgraf.de> <20201126221049.GS2271382@habkost.net> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Fri, 27 Nov 2020 18:48:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201126221049.GS2271382@habkost.net> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Peter Maydell , Richard Henderson , qemu-devel@nongnu.org, Cameron Esfahani , Roman Bolshakov , qemu-arm@nongnu.org, Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 11/26/20 11:10 PM, Eduardo Habkost wrote: > On Thu, Nov 26, 2020 at 10:50:09PM +0100, Alexander Graf wrote: >> Now that Apple Silicon is widely available, people are obviously excited >> to try and run virtualized workloads on them, such as Linux and Windows. >> >> This patch set implements a rudimentary, first version to get the ball >> going on that. With this applied, I can successfully run both Linux and >> Windows as guests, albeit with a few caveats: >> >> * no WFI emulation, a vCPU always uses 100% >> * vtimer handling is a bit hacky >> * we handle most sysregs flying blindly, just returning 0 >> * XHCI breaks in OVMF, works in Linux+Windows >> >> Despite those drawbacks, it's still an exciting place to start playing >> with the power of Apple Silicon. >> >> Enjoy! >> >> Alex >> >> Alexander Graf (8): >> hvf: Add hypervisor entitlement to output binaries >> hvf: Move common code out >> arm: Set PSCI to 0.2 for HVF >> arm: Synchronize CPU on PSCI on >> hvf: Add Apple Silicon support >> hvf: Use OS provided vcpu kick function >> arm: Add Hypervisor.framework build target >> hw/arm/virt: Disable highmem when on hypervisor.framework >> >> MAINTAINERS | 14 +- >> accel/hvf/entitlements.plist | 8 + >> accel/hvf/hvf-all.c | 56 ++++ >> accel/hvf/hvf-cpus.c | 484 +++++++++++++++++++++++++++++++++++ >> accel/hvf/meson.build | 7 + >> accel/meson.build | 1 + > > This seems to conflict with the accel cleanup work being done by > Claudio[1]. Maybe Claudio could cherry-pick some of the code > movement patches from this series, or this series could be > rebased on top of his. It seems easier for Claudio to cherry-pick patch 2/8 of this series ("hvf: Move common code out") and rebase on top. Claudio's series is still tagged RFC, but if you were planing to queue it, you could take patch 2/8 out of this series, as it is generic, and let the HVF/AA64 specific bits still being discussed. > > [1] https://lore.kernel.org/qemu-devel/20201124162210.8796-1-cfontana@suse.de