From patchwork Wed Mar 3 18:22:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 12114993 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=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 907DCC433E0 for ; Thu, 4 Mar 2021 00:30:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7240D64E62 for ; Thu, 4 Mar 2021 00:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357340AbhCDAaR (ORCPT ); Wed, 3 Mar 2021 19:30:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45427 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377748AbhCCS2g (ORCPT ); Wed, 3 Mar 2021 13:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614796023; 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=d+d/MBqh7nLsyh5fOlU8/TcU9o+BUbPZsFEks8VNenw=; b=NErkYgPfzczbcuE1y7XjkI87fYTT44juaOZgSKTiXtyNz9diADv5SBliOSVsVvLt3SeDUC VlArwAYxBl8vxOIOsKNVt3+clSBXgp87WNcu+FzLPxIgxDA6wX6LqJqSAvEbn4ewUjeJfR Pp1Qvfo12bwC1kC9yX/1ly5KLtwlpjs= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-437-NqsJ4t1RPk6bqDVuM0RadA-1; Wed, 03 Mar 2021 13:23:08 -0500 X-MC-Unique: NqsJ4t1RPk6bqDVuM0RadA-1 Received: by mail-wr1-f69.google.com with SMTP id n17so994080wrq.5 for ; Wed, 03 Mar 2021 10:23:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d+d/MBqh7nLsyh5fOlU8/TcU9o+BUbPZsFEks8VNenw=; b=B1u+n1qoVg1KYj2k0/hHGw8NlI4KVRneQ+JLw7Nv4EccAQDb5L151U6afJ3oi2W7ej J726CTHkHh0I/ELRTLjk0fl7W8LghqrN2wNaq4w5SFb7oCmt6CFU6O8A42acmMnn5Mtj gZpMBdpZmzbjP+0uBkNx1JFiU/DK8M+MBlRFFuyTwrBG2TULdOhLUBmLQuL+sTg9FKrS LKEQ6P0YO0IG1o5ABYJVmMWJGo4zu6d8r4HB9nk9NKfDPunPcce+Z8XfMBgVvJOHnu0a agOorwUS60rqy2kzRWJIt2MRj/Y1n2z4i4mGA+Tw9vORLTjFdoVfIsfRUAMKlg+Y3gFC RXjQ== X-Gm-Message-State: AOAM532t96WAuz/29ft8v1kYLVtz5xuA3NGFMIWGh3qeF+t6i5wtOY9h X++/yD3mrKiPXCtBAoGhLA4DfDsUvwuvZpDqPZn2/ZO2ZIuGJOdKn/rpnFxIPMpxong05LviKLa z/OOYC83hjLLB X-Received: by 2002:adf:a2cf:: with SMTP id t15mr14834wra.250.1614795786884; Wed, 03 Mar 2021 10:23:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6ujFjRNPggv7/ipzC5oDJujEI5QYZFdlngvKsuonznRYeYLKD8t2BL7D3qvATAQ4rzlY2SQ== X-Received: by 2002:adf:a2cf:: with SMTP id t15mr14791wra.250.1614795786594; Wed, 03 Mar 2021 10:23:06 -0800 (PST) Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id a3sm33245959wrt.68.2021.03.03.10.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:23:06 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Cornelia Huck , Richard Henderson , Sunil Muthuswamy , Marcelo Tosatti , David Gibson , Marcel Apfelbaum , kvm@vger.kernel.org, Wenchao Wang , Thomas Huth , Cameron Esfahani , Paolo Bonzini , David Hildenbrand , Roman Bolshakov , Peter Maydell , Greg Kurz , qemu-arm@nongnu.org, Halil Pasic , Colin Xu , Claudio Fontana , qemu-ppc@nongnu.org, Christian Borntraeger , qemu-s390x@nongnu.org, haxm-team@intel.com, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [RFC PATCH 07/19] accel/whpx: Rename struct whpx_vcpu -> AccelvCPUState Date: Wed, 3 Mar 2021 19:22:07 +0100 Message-Id: <20210303182219.1631042-8-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303182219.1631042-1-philmd@redhat.com> References: <20210303182219.1631042-1-philmd@redhat.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The current 'struct whpx_vcpu' contains the vCPU fields specific to the WHPX accelerator. Rename it as AccelvCPUState. We keep the 'whpx_vcpu' typedef to reduce the amount of code changed. Signed-off-by: Philippe Mathieu-Daudé --- target/i386/whpx/whpx-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index 6469e388b6d..f0b3266114d 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -148,9 +148,9 @@ struct whpx_register_set { WHV_REGISTER_VALUE values[RTL_NUMBER_OF(whpx_register_names)]; }; -typedef struct whpx_vcpu whpx_vcpu; +typedef struct AccelvCPUState whpx_vcpu; -struct whpx_vcpu { +struct AccelvCPUState { WHV_EMULATOR_HANDLE emulator; bool window_registered; bool interruptable;