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

Re: [PATCH v7 1/2] xen/vpci: header: status register handler


  • To: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 14 Sep 2023 13:12:34 +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=GHuH5OyN4Ow6kFPPU+5y34ZC4gb8zK8Prrvnxk2EAzM=; b=CoEGzf0yprdNWo446jXllhKHrOLR5AyArlt+vCUKnwximGn3+iFZlRSEzEZDny3uNbAt3GsZKcqv+vx1o5kWzEur8XUKvYFJSHv5JwsnqtyFn2bYHg3fgr33TLsHIRpUzaUtF6JSxV12BPGTbHw+nl+SnFcDzf17J3jqZXQ7rURk+BI6VJSdSbP7Zh4fAS/iNy3Ebqn5u6vdqAKblJo7EJqnmJqELONgpRkHpjKagdfgYmu37HdOdT/ijKfv/T85PjmkblXVLGGW8AZkVAmE6HN6AOzl2dWgLN+BPFi3O7oKN4ioOp5jNikqHtrsfDENmHqzECJjCH/7ylOMv67PqQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LEMKAoi5cd3EsHrJMR1msuo2nVywkgeV9D4yFDuD9v9okisZKhCGFgvBV05i2tWAy+hpScmV1b9ap5+7dwgJin8Ms/hVcP/kNYvyeM+DQ+7zHab0mRps/NQml2nKXbKlaCvgCBLGPfW9MhFalbXoQys9+uzNMnzG8lbq7rYmjsQqFfsfwbKSe51AYgo1LlWo88H/utYcVEz8M37T4ifUhoYNLw2Fy4Vfo3FJdvbkRHiGhSX2M1SpP/X+AzE14H7T7OcDMqjEk0i9VRNC6mgSFhmIxpiCbmKRDqxC6k6+eXDrWm/0Mevzy1YoTL/BVw65zaroywR5ArbzXJ6QgTQT/w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 14 Sep 2023 11:12:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13.09.2023 16:35, Stewart Hildebrand wrote:
> Introduce a handler for the PCI status register, with ability to mask the
> capabilities bit. The status register contains RsvdZ bits, read-only bits, and
> write-1-to-clear bits, so introduce bitmasks to handle these in vPCI. If a bit
> in the bitmask is set, then the special meaning applies:
> 
>   rsvdz_mask: read as zero, guest write ignore (write zero to hardware)
>   ro_mask: read normal, guest write ignore (preserve on write to hardware)
>   rw1c_mask: read normal, write 1 to clear
> 
> The RsvdZ naming was borrowed from the PCI Express Base 4.0 specification.
> 
> Xen preserves the value of read-only bits on write to hardware, discarding the
> guests write value.
> 
> The mask_cap_list flag will be set in a follow-on patch.
> 
> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

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