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

Re: [PATCH v8 3/4] xen/arm: account IO handler for emulated PCI host bridge


  • To: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
  • From: Rahul Singh <Rahul.Singh@xxxxxxx>
  • Date: Thu, 9 Dec 2021 10:19:09 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=+Fx0DkfBS/XCOBZLLXfq5BqjRt8vzRSZdNNmdlW2A5c=; b=LcwkZEJmAVxZcXa6hBIt7Nka1Ck6ujxuhZPj3CM9f2a3BNeRbPxd5/lOAZzLaPJ+9sqfrNNLHyhv6Iuyv7hcl7is9ie4E5ahbZkC+F2mslFqXouqfIh/PtqbSZeOgxLr75k8yQVjwj/Owd5qgvaub1w68p6BN4upNXPFyj+Rth+x6xZVmBlvWWvCOerXTDTo1a4+4L9sPfVrAFPake20txP0QqydstaJPlkLeFh9WjLQoQ+lecRwNP+2zVt77BSIs8rHPlhUGGHYMtNHH93SvuuHT/9gO3607nFeLtZdD7xD8GURNwgW5yPDhu4yEgOZJdW2Wed4O+mdeCcpDZ6kFQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FC/eBq00Ss7CSM6f3IjhOHAkxqGcdDy1xrHkkv3deG3N49B5sEqwYRV2HGFiqXkisHlunMmI1HDW1ITb+Gt4hORg/azf2aGiOqhfN7a6I4dp++pV9v01NaNV+/f2KDbgYxpYA8Kf9WbFa8Eq85EqKxaM6ppyPnEjyCU1W8JTB6avi/+R+VgRtlchDXAVjwLdC8y7FCkv5l6I//uJmNpAz/Ist2uwJFGw7pKFfetEAcZ0bPp2Ya6woNSgL8uBzr72uFXxBDFgTd7y22PXveO6V4fQ+5/qe8cLNmLZVvfZDwFu+zE+cwV2p4knUP96A4w6SbKqhgwrYerA48AIRHgNEQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "oleksandr_tyshchenko@xxxxxxxx" <oleksandr_tyshchenko@xxxxxxxx>, "volodymyr_babchuk@xxxxxxxx" <volodymyr_babchuk@xxxxxxxx>, "artem_mygaiev@xxxxxxxx" <artem_mygaiev@xxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>
  • Delivery-date: Thu, 09 Dec 2021 10:19:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHX7M6ZJ84IjlvR+0ihD3B1W/9MVKwp8sqA
  • Thread-topic: [PATCH v8 3/4] xen/arm: account IO handler for emulated PCI host bridge

Hi Oleksandr,

> On 9 Dec 2021, at 7:29 am, Oleksandr Andrushchenko <andr2000@xxxxxxxxx> wrote:
> 
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> 
> At the moment, we always allocate an extra 16 slots for IO handlers
> (see MAX_IO_HANDLER). So while adding an IO trap handler for the emulated
> PCI host bridge we are not breaking anything, but we have a latent bug
> as the maximum number of IOs may be exceeded.
> Fix this by explicitly telling that we have an additional IO handler, so it is
> accounted.
> 
> Fixes: d59168dc05a5 ("xen/arm: Enable the existing x86 virtual PCI support 
> for ARM")
> 
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> Acked-by: Julien Grall <jgrall@xxxxxxxxxx>

Reviewed-by: Rahul Singh <rahul.singh@xxxxxxx>
Tested-by: Rahul Singh <rahul.singh@xxxxxxx>

Regards,
Rahul



 


Rackspace

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