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=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 EDC0CC433DB for ; Mon, 22 Feb 2021 13:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B95DB64E34 for ; Mon, 22 Feb 2021 13:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbhBVNWf (ORCPT ); Mon, 22 Feb 2021 08:22:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42005 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbhBVNUw (ORCPT ); Mon, 22 Feb 2021 08:20:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613999959; 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=Qug2RTu/T1uSQ745n8lC2c0QqoReD0ieGgc66jNB2QI=; b=ZXK2bU/hAI145nE0kSYsrhyWKJqvPrfAC3IP04Sr4UFcUXFqizlFhxJAVZkm55EdU1Nbwg 93bbDFoYR/qHwM2YyruFSnxJjaSa9ekz/7O6MnJdDE4eQU2V+1JbLeAkK8r01nO3L3EO6w aHU4bPcWGAYH3d5jrrVMheo7u6Onkng= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-70-wAiKIOFwNpePZGO0ILkmYA-1; Mon, 22 Feb 2021 08:19:17 -0500 X-MC-Unique: wAiKIOFwNpePZGO0ILkmYA-1 Received: by mail-ej1-f70.google.com with SMTP id mm18so1131293ejb.7 for ; Mon, 22 Feb 2021 05:19:17 -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=Qug2RTu/T1uSQ745n8lC2c0QqoReD0ieGgc66jNB2QI=; b=B8zBKbGfv61xraRANg1euBZTaZOXY/DnMkyOgTcRTDa02kiXTPBYHEn2bBaxgto93r F205FX5xCU90JkDcmZ5e7bKe9yQBjm3yIlvNxJD/3xn/098vm31Br1fjAibmPE7tvF2M YPjzsKVdEkXrx588ci5AEiGv2RkGqiYUnsmkGAvFBqTFgcp4eiNWjzXT5A75sngJQ+e+ M6KVlzmVAaIDybQyojhR5kW3mqDTm1NtMxOa8p454E5nxYTQ4t6hIpsrNqObM9tRN7UW iTfGpaKHDM/7u8yeo3cvI7hvVvj+yz46G4Ra/pSxOfmpODWGLghMREtcM/yWI+ykjWkI pr1g== X-Gm-Message-State: AOAM530zanM412GpZ503HP5sD1emsdpRK6qjEsTMV+0aRMsVYS91EBRk QxgNv6PJrWC5/2E5UaFmr/wpj9CcZvb6IUBK+Ln/QiSTVqknRzYVBgrjxcWEFd+QKC2OB5AF/Sv 5eIvxkbAp0fhz X-Received: by 2002:a17:906:cf8f:: with SMTP id um15mr5937377ejb.455.1613999956674; Mon, 22 Feb 2021 05:19:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvbw/PgfA0F/25nHKxn/HTOW5jX2GdrY67Z+Yez2DT22kLFPNtBmQLRjUdkVjUL1EidwLbmg== X-Received: by 2002:a17:906:cf8f:: with SMTP id um15mr5937362ejb.455.1613999956555; Mon, 22 Feb 2021 05:19:16 -0800 (PST) Received: from [192.168.1.36] (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id kd13sm6734645ejc.106.2021.02.22.05.19.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 05:19:15 -0800 (PST) Subject: Re: [RFC PATCH v2 06/11] hw/ppc: Restrict KVM to various PPC machines To: David Gibson Cc: qemu-devel@nongnu.org, Aurelien Jarno , Peter Maydell , Anthony Perard , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Halil Pasic , Huacai Chen , xen-devel@lists.xenproject.org, Marcel Apfelbaum , qemu-arm@nongnu.org, Stefano Stabellini , Paolo Bonzini , kvm@vger.kernel.org, BALATON Zoltan , Leif Lindholm , Richard Henderson , Radoslaw Biernacki , Alistair Francis , Paul Durrant , Eduardo Habkost , "Michael S. Tsirkin" , Thomas Huth , Jiaxun Yang , =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Greg Kurz , Christian Borntraeger , Cornelia Huck , "Edgar E. Iglesias" , David Hildenbrand , Mark Cave-Ayland , Aleksandar Rikalo , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= References: <20210219173847.2054123-1-philmd@redhat.com> <20210219173847.2054123-7-philmd@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Mon, 22 Feb 2021 14:19:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2/22/21 6:59 AM, David Gibson wrote: > On Fri, Feb 19, 2021 at 06:38:42PM +0100, Philippe Mathieu-Daudé wrote: >> Restrit KVM to the following PPC machines: >> - 40p >> - bamboo >> - g3beige >> - mac99 >> - mpc8544ds >> - ppce500 >> - pseries >> - sam460ex >> - virtex-ml507 > > Hrm. > > The reason this list is kind of surprising is because there are 3 > different "flavours" of KVM on ppc: KVM HV ("pseries" only), KVM PR > (almost any combination, theoretically, but kind of buggy in > practice), and the Book E specific KVM (Book-E systems with HV > extensions only). > > But basically, qemu explicitly managing what accelerators are > available for each machine seems the wrong way around to me. The > approach we've generally taken is that qemu requests the specific > features it needs of KVM, and KVM tells us whether it can supply those > or not (which may involve selecting between one of the several > flavours). > > That way we can extend KVM to cover more situations without needing > corresponding changes in qemu every time. OK thanks for the information. I'll wait the other patches get reviewed (in particular the most important ones, 2 and 10) before respining including this information. Regards, Phil.