From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:6d5:0:0:0:0:0 with SMTP id 204csp6318339lfg; Thu, 4 Mar 2021 07:11:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxQ3VHaaK6N/TEitK61uYmufD+hfNtLXMrvKkwwFNDXfxBm9SwH7BOEKfeTx4mfE8LI2un X-Received: by 2002:a05:6e02:19c5:: with SMTP id r5mr4092563ill.171.1614870669656; Thu, 04 Mar 2021 07:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614870669; cv=none; d=google.com; s=arc-20160816; b=QwBoP/SrZyKO4TWckYxPDNGJYbiDm3ajogTseH/Btq0AD/eacmG2NdoIM/PQW1yJqF OBtmQzcw4Gx/E5zXumScpWD8S+fiGYilnbZlAXmdxt9XXRlo+n59T7DbyV+sUpqf/81N 75FKe4zmeq+MWk1M7fgm2B7eYGbI8y0vAiRyLSRF8AVk9kErBzdbdfsMZtFPat1SsCLE mYW10iGkkwEEiaAexry/zazubG2KPloBTl7d2hrKGVT55/tqAVyZMxPHjL3BZ+HcT5Zl SRXpDSoKRb6avJ8k81QTByo8YbiPdJn5vyxK4eyVbuty3TAeJ90NaLDAbJ62Vo9vxaCH H1ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=xr+0xjbR8wujVaSiREj96vjfeZy56B32moH25XWztBo=; b=LunhuyVqYR9j/JF3huqZ56xhgFR87B0iftYEAOumCsen8K8+tDkg6Gl7UMf8bntGzb CBMQguO0Osm+NSMVDHXdGh95SfMCqtGT2t/XUiPDQatJlIS31Qv1ALw7ZgvCvTP8lXQS HMoFZwLmN7iNQQ6AQbnt9SYgGaAw3uS70Wadwo5p9ZBEXCiYgL2gjeXPylFkY/9Cle3t 5lCdyIbmboidow6bd2Ddscs5yUn9N4sFXtvgi40A6GitrsxV9bAlG+59VwIMt62QmONG 8rbrQGXZ49YV30JtedTDVsyBxprwWAFkSDHcX6C9oyUw3MQUSj6WpqXoUdb7crJVZDaX riWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=XUtReQOe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x10si23798441ilv.2.2021.03.04.07.11.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Mar 2021 07:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=XUtReQOe; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:56304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHpd6-0008B6-Uj for alex.bennee@linaro.org; Thu, 04 Mar 2021 10:11:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHpND-0000YZ-E8 for qemu-devel@nongnu.org; Thu, 04 Mar 2021 09:54:43 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lHpNB-0001zy-96 for qemu-devel@nongnu.org; Thu, 04 Mar 2021 09:54:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614869679; 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=xr+0xjbR8wujVaSiREj96vjfeZy56B32moH25XWztBo=; b=XUtReQOez1dg2/qOnmFKNmV7Sn0Mx3dKJ+RD2dj35/e8ujN9UtPkEUjIsI3YgvGIKykTs1 stbOjRBU/ch4oxefbz+JYbqahJQZ4fu+zstVB0yPpE5AL62fOrAyjxdEDfmJtNOmCGsNKm e8HbD/lzlcWlNlvpijx1CALOhq/oMm8= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-PmF1_cihPTSM2XOsxaoj-A-1; Thu, 04 Mar 2021 09:54:38 -0500 X-MC-Unique: PmF1_cihPTSM2XOsxaoj-A-1 Received: by mail-wm1-f69.google.com with SMTP id a65so2746205wmh.1 for ; Thu, 04 Mar 2021 06:54:37 -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=xr+0xjbR8wujVaSiREj96vjfeZy56B32moH25XWztBo=; b=J5j/KIj/x+yWmFfrN5+61h96Mu4b5+qc/tpxX43qskxlfG18F+dIE0H8mLg0FJkp0a f/z+0y0qNTU8MLc2LsfIs28pL/lzvyeywGnlHMCNJzy2K4InLdkM+wjCDPOUerD+canN kc/Ww0F4YCXuC/E0fIzHYlm0/f9Cp4imdO/JZ+hWISCI8tV8r00xoCQofb39JznikXL4 /ePD++q5wibYTC9hyIxS1snsF4u2nF0RNjtelnbtxI1SITnIT2KvC61gQONxTjuUYwk9 4F96ntjufbX771QKl3i3wSdrL+7xnUrN7hqIs0tnzvuolC58YJaXJWnRPMLHeKXZ3agu FhVA== X-Gm-Message-State: AOAM533DrW+uEXxnygjW3ZIpHQLJPQvnrQ5mp8/rgiMwHL+XE6t2FRRb DCk6JDCm/N3Kv/srJAMx6SYBmpB2+EEsBXvyG7zhRiRBIW/DsA5hm5rMo+Dy01ygrfncdsgjj1u SJnU5N7u18VIZzgo= X-Received: by 2002:a1c:1f04:: with SMTP id f4mr4480705wmf.12.1614869676947; Thu, 04 Mar 2021 06:54:36 -0800 (PST) X-Received: by 2002:a1c:1f04:: with SMTP id f4mr4480671wmf.12.1614869676729; Thu, 04 Mar 2021 06:54:36 -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 w6sm16059433wrl.49.2021.03.04.06.54.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Mar 2021 06:54:36 -0800 (PST) Subject: Re: [RFC PATCH 00/19] accel: Introduce AccelvCPUState opaque structure To: Paolo Bonzini , qemu-devel@nongnu.org References: <20210303182219.1631042-1-philmd@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <1eda0f3a-1b11-a90e-8502-cf86ef91f77e@redhat.com> Date: Thu, 4 Mar 2021 15:54:34 +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: 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: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=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 , Cornelia Huck , kvm@vger.kernel.org, David Hildenbrand , haxm-team@intel.com, Colin Xu , Halil Pasic , Christian Borntraeger , Claudio Fontana , Thomas Huth , Eduardo Habkost , Richard Henderson , Greg Kurz , Cameron Esfahani , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Sunil Muthuswamy , David Gibson , Marcelo Tosatti , Roman Bolshakov , qemu-ppc@nongnu.org, Wenchao Wang Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: MsEg+iaFEkgo On 3/4/21 2:56 PM, Paolo Bonzini wrote: > On 03/03/21 19:22, Philippe Mathieu-Daudé wrote: >> Series is organized as: >> - preliminary trivial cleanups >> - introduce AccelvCPUState >> - move WHPX fields (build-tested) >> - move HAX fields (not tested) >> - move KVM fields (build-tested) >> - move HVF fields (not tested) > > This approach prevents adding a TCG state.  Have you thought of using a > union instead, or even a void pointer? Why does it prevent it? We can only have one accelerator per vCPU. TCG state has to be declared as another AccelvCPUState implementation. Am I missing something? Preventing building different accelerator-specific code in the same unit file is on purpose. Regards, Phil.