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=-8.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 61F9FC55ABD for ; Tue, 10 Nov 2020 20:59:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 EFD43207D3 for ; Tue, 10 Nov 2020 20:59:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iMpcgfzu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFD43207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.23961.50971 (Exim 4.92) (envelope-from ) id 1kcajz-0007wo-Bw; Tue, 10 Nov 2020 20:59:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 23961.50971; Tue, 10 Nov 2020 20:59:47 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kcajz-0007wh-8p; Tue, 10 Nov 2020 20:59:47 +0000 Received: by outflank-mailman (input) for mailman id 23961; Tue, 10 Nov 2020 20:59:46 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kcajy-0007wc-9A for xen-devel@lists.xenproject.org; Tue, 10 Nov 2020 20:59:46 +0000 Received: from mail-lj1-x241.google.com (unknown [2a00:1450:4864:20::241]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 68fa3c18-1121-4a52-9232-4f59f4fd4986; Tue, 10 Nov 2020 20:59:45 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id 11so16376779ljf.2 for ; Tue, 10 Nov 2020 12:59:45 -0800 (PST) Received: from [192.168.1.7] ([212.22.223.21]) by smtp.gmail.com with ESMTPSA id w10sm2708051ljo.130.2020.11.10.12.59.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2020 12:59:43 -0800 (PST) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kcajy-0007wc-9A for xen-devel@lists.xenproject.org; Tue, 10 Nov 2020 20:59:46 +0000 X-Inumbo-ID: 68fa3c18-1121-4a52-9232-4f59f4fd4986 Received: from mail-lj1-x241.google.com (unknown [2a00:1450:4864:20::241]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 68fa3c18-1121-4a52-9232-4f59f4fd4986; Tue, 10 Nov 2020 20:59:45 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id 11so16376779ljf.2 for ; Tue, 10 Nov 2020 12:59:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=WCEMbK6VpTWfnhbVRjPF5UIFvs6FkjhGHnAeW326f3g=; b=iMpcgfzuICrq0q3iPYKyyIXfq5f3majc74oak7l+oqjHYFf17I3Ozia8LBmmHbN1/r w2qNdUJexnEdGwpFBvSbBW7lu4ZVPJ5I/Kl9Qv4YNKXPAYZ8LEYASJbBbV6l0ISkHzHZ nmqH56DC9asEKFNyl/mitq/QP8cxo6PhpBRvTrwDUcCpGfuqOLNoaskPZBazaHaHV6B4 C6/8d3QV4YzDbCB6rLYuN6/6AFv5KQAqM1uvKsi8ACspb+oABuubO/V4Qv+wcDUiCkg6 F1Zgx7Fh3aL+lOfY0IHZSusJpI0fUqrXWV4EdcpRzUQC1T6063rYNOYZGoGhKJJERlKj qkSw== 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-transfer-encoding :content-language; bh=WCEMbK6VpTWfnhbVRjPF5UIFvs6FkjhGHnAeW326f3g=; b=kZ6LNBmpOLvt3u6hK5FRI5Tzo9GS5ilUgu0kdcVC2hw/cLsLAWrUEB74Kp7jcE+BsN gKWQ7Zx0ry5aimahxdZdVd1te0oJ+sJV7JBFqVaCIy0Bcbv7o+5qYfC/DGAOEhsKoev6 JSeHKHnBl+ZVZ+U5gWq1n96ILXN7Zil2vKw4H4AjhNCQV1mhjKu7QnhjJU2svm96ECjv HcNnntQa+m8B8dghK9Kh4+1iVW8aW4hsfSvGTpYs75q0atBD6kjTzVFfOKq02+2hbO2r nt49pBNt9tSGc1sk0R1aLjlaUrXgZVCQevRhXd15AB6EbwZZ0PtWlO+MdoiDsv7gJUj9 tyrg== X-Gm-Message-State: AOAM530mG76vM9G9fyQKsXWuHTnNwNwRmxQ6pqhLbrybfcf5903aRQ4c 6F2I1ggDToxFO1btbAkS7vE= X-Google-Smtp-Source: ABdhPJx0FoQ+N0R4gfe08ybC6gVKP0QNYk6QszL75pnmu1zu1JpGal/VPT307fMrZF3epemW2PT3kQ== X-Received: by 2002:a2e:93cf:: with SMTP id p15mr9850563ljh.141.1605041984083; Tue, 10 Nov 2020 12:59:44 -0800 (PST) Received: from [192.168.1.7] ([212.22.223.21]) by smtp.gmail.com with ESMTPSA id w10sm2708051ljo.130.2020.11.10.12.59.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2020 12:59:43 -0800 (PST) Subject: Re: [PATCH V2 11/23] xen/ioreq: Move x86's io_completion/io_req fields to struct vcpu To: paul@xen.org, xen-devel@lists.xenproject.org Cc: 'Oleksandr Tyshchenko' , 'Jan Beulich' , 'Andrew Cooper' , =?UTF-8?B?J1JvZ2VyIFBhdSBNb25uw6kn?= , 'Wei Liu' , 'George Dunlap' , 'Ian Jackson' , 'Julien Grall' , 'Stefano Stabellini' , 'Jun Nakajima' , 'Kevin Tian' , 'Julien Grall' References: <1602780274-29141-1-git-send-email-olekstysh@gmail.com> <1602780274-29141-12-git-send-email-olekstysh@gmail.com> <004f01d6a6cf$79d0daa0$6d728fe0$@xen.org> From: Oleksandr Message-ID: <51b7fe12-46a2-bd0e-da10-f753ecb0453c@gmail.com> Date: Tue, 10 Nov 2020 22:59:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <004f01d6a6cf$79d0daa0$6d728fe0$@xen.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 20.10.20 13:55, Paul Durrant wrote: Hi Paul. Sorry for the late response. >> -----Original Message----- >> From: Oleksandr Tyshchenko >> Sent: 15 October 2020 17:44 >> To: xen-devel@lists.xenproject.org >> Cc: Oleksandr Tyshchenko ; Paul Durrant ; Jan Beulich >> ; Andrew Cooper ; Roger Pau Monné >> ; Wei Liu ; George Dunlap ; Ian Jackson >> ; Julien Grall ; Stefano Stabellini ; Jun >> Nakajima ; Kevin Tian ; Julien Grall >> >> Subject: [PATCH V2 11/23] xen/ioreq: Move x86's io_completion/io_req fields to struct vcpu >> >> From: Oleksandr Tyshchenko >> >> The IOREQ is a common feature now and these fields will be used >> on Arm as is. Move them to common struct vcpu as a part of new >> struct vcpu_io. Also move enum hvm_io_completion to xen/sched.h >> and remove "hvm" prefixes. >> >> This patch completely removes layering violation in the common code. >> >> Signed-off-by: Oleksandr Tyshchenko >> CC: Julien Grall >> >> --- >> Please note, this is a split/cleanup/hardening of Julien's PoC: >> "Add support for Guest IO forwarding to a device emulator" >> >> *** >> I was thinking that it may be better to place these two fields >> into struct vcpu directly (without intermediate "io" struct). >> I think, this way the code which operates with these fields >> would become cleaner. Another possible option would be either >> to rename "io" struct (I failed to think of a better name) or >> to drop(replace?) duplicating "io" prefixes from these fields. > Just drop the 'io_' prefix from the field names. Will drop. This would look like indeed better. Thank you. -- Regards, Oleksandr Tyshchenko