[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/3] x86/hvm: Allow writes to registers on the same page as MSI-X table


  • To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 3 Apr 2023 13:09:29 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lh3DidjN6ele/jYXeFN/8iuMc38l5BJIsPtFgZxHUNk=; b=SWmsI1ck1hdMvxKjKoxdQvC5X6Tg9ZVpzgqkep0bCW0vvgmSdVDWRFoRlMpvfSBg3/z5euJVsH4YvwTF9jQshlMQS+8Z3Y0/DAJLTXcskgZh7ye/nHO9vZR9Y/kxqP/1ZE4tjdamL/z1NBlCbyJSn0N31Vg1GnRlYP/v1xJTKFZqSm7SDoEI0r8aO1pmaKth3b2cbeSc5Dx0UF2SEPJd1RIEI2dNKzgufEMnmTmwT86vFWIA3tWRpUDVjjLL7eQ4MVJknG6f0AchakX5wuY1c+Qkl+C72gOMkn50KTvgIEOrYEa7D7QrGAYmNFwlXdkeB649kzUsq4s3vFydtAvgVg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ljSShnzZ3IkJ0ax+6+k560RKBq9aS5R/zl1756FzVn67gASBQETSN3J7r2e+zFBxCd+wxnYkIglWd2OThtXynLq7UYnrV1rY8775syZYQ+aS/i8hzLBXJNNWp95rIg39vrO8JPaEUAdRryHapFka8YFabs1rPeA0cpxlnYLW/9jyE7AxI8vMjnAhYBqYeoTG/mATEovuAX+IUclidYAdcLq/ANU3OpQd3JRqWruugAY8TVGd7HUoaFkEom3hd0MvtPIGnx/SYxidbig5ZPxilZobIaExKKEG4ItF629K+xbIHNSSDs1HCo6CQaFe9lSt0Q9k0xaKmpUt8tpgLEf8Wg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Jason Andryuk <jandryuk@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 03 Apr 2023 11:09:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03.04.2023 06:21, Marek Marczykowski-Górecki wrote:
> On Tue, Mar 28, 2023 at 03:03:17PM +0200, Jan Beulich wrote:
>> On 28.03.2023 14:52, Marek Marczykowski-Górecki wrote:
>>> I mean, technically I can probably merge those two handlers together,
>>> but I don't think it will result in nicer code. Especially since the
>>> general direction is to abandon split of MSI-X table access handling
>>> between Xen and QEMU and go with just QEMU doing it, hopefully at some
>>> point not needing msixtbl_mmio_ops anymore (but still needing the one
>>> for adjacent accesses).
>>
>> Hmm, at this point I'm not convinced of this plan. Instead I was hoping
>> that once vPCI properly supports PVH DomU-s, we may also be able to make
>> use of it for HVM, delegating less to qemu rather than more.
> 
> In that case, this code won't be needed anymore, which will also make
> this handler unnecessary.
> 
> Anyway, I tried to merge this handling into existing handlers and the
> resulting patch is slightly bigger, so it doesn't seem to avoid any
> duplication. The only benefit I can think of is avoiding iterating
> msixtbl_list twice (for respective accept callbacks) on each access. Is
> it worth a bit more complicated handlers?

Well, limiting duplication (if possible) is only one aspect. Again
referring to Roger's functionally similar vPCI work, an important (from
my pov) aspect is to avoid consuming another handler slot (via a new
call to hvm_next_io_handler()).

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.