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

Re: [PATCH] ioreq_broadcast(): accept partial broadcast success


  • To: Per Bilse <per.bilse@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 28 Nov 2022 09:21:47 +0100
  • 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=hUMt+uhMEJiOxGAdTL1j8fORPcbsuFo+ih4nfw1jzyg=; b=isqp+CY7N+YODy1GCUDUJQ57OCm0H+K98geMwLdSfy5kCAJBnAzPOjEfD6Sy51VnHdYRuf8Z8iR5AAZ7XQ1+3torziTyJBit8a9rxLspOB/9n+bmen19Pqo+0DllbQFLFmHLXmL3p/OJExa9UQft5iTr/GTJoJP+p2Q2TubM8ETsm0nAab0uHmyRe5WFpUCimME9ORk/LhCok3kwg+9wDE4461/pccYey9CjoKchpz0by+ZYoPhwPezWUzQPT2ZzpeW4VJs/S6AXFRSeA5Gw7Efy9CPYYibegMmgAiOhzQiI0p3gIskvF12gkjMUI7GdtPX6igC5CpB5e1e6KHOPtg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d7LCkV+wna0NeuP1mD0eQQBXllPDzL/3ISZwcyZVRMGQI4h8RsTufkhBtgGoBggOSlw0/pivC8+1IJEvsiqafK8yQVoSk3qMHgw3wdC4LNXxre0gvwEdbhHPrlZWeD4QOArY38yRcZ5yr3wm02CCx08mbNowfp2iPp8rXeNFTN94hDZlCvVIPd4/x6w78MSendOD3SUdksEhpULJA4XR3xzdDov/625d0ETZkHK4qvg6HkhaDPSCmU1DZDnV8VhRFITKUx8hRWut3mgnuKRdY5l9F3qI7FnW9I1zMJ8g/FVzZCikCIQUfHuRMVkIAms6JPy53+vqxmixbaKnugtsNQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Paul Durrant <paul@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 28 Nov 2022 08:22:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26.11.2022 23:19, Julien Grall wrote:
> On 25/11/2022 14:15, Per Bilse wrote:
>> A change to XAPI varstored causes
> 
> For those unfamiliar with XAPI (like me), can you explain what was the 
> change made?
> 
>> an unnecessary error message
>> to be logged in hypervisor.log whenever an RTC timeoffset update
>> is broadcast.
>>  In extreme cases this could flood the log file.
> 
> Which should be ratelimited as this is using guest error loglevel. But I 
> think this is irrelevant here. It would be more relevant to explain why 
> it is OK to allow a partial broadcast.
> 
>> This patch modifies ioreq_broadcast() to allow partial success.
> 
> The commit message is quite vague, so it is hard to know what you are 
> trying to solve exactly. AFAIU, there are two reasons for 
> ioreq_broadcast to fails:
>   1) The IOREQ server didn't register the bufioreq
>   2) The IOREQ buffer page is full
> 
> While I would agree that the error message is not necessary for 1) (the 
> IOREQ server doesn't care about the event), I would disagree for 2) 
> because it would indicate something went horribly wrong in the IOREQ 
> server and there is a chance your domain may misbehave afterwards.

In addition I think ignoring failure (and, as said by Julien, only because
of no bufioreq being registered) is (kind of implicitly) valid only for
buffered requests. Hence I'm unconvinced of the need of a new boolean
function parameter. Instead I think we need a new IOREQ_STATUS_... value
representing the "not registered" case. And that could then be used by
ioreq_broadcast() to skip incrementing of "failed".

Jan



 


Rackspace

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