[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 04/24] xen/console: introduce console_{get,put}_domain()
- To: <dmukhin@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Mon, 27 Jan 2025 18:07:13 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ford.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=TirXJZjTRGRvx07tf5vGQzHCNzL4jWXylt3e+EN4K1I=; b=I/TvooH3icUXftP8J24Bm07IaAmZ5+KlYCzR6WdelN/P66vjNhOOoAlDUpDAOQd/neSMhev5o0T8pg0G96I4k4kl5MxaK0rppJRE84p4AEnUA3wlcGNnXcyYLoEKq1mF/RyF8bRRocdXJ0dqg8ZnXvsfK/8qL/aYspw0bAmadvDa4nGoE7Qed8KAgJe80uWb1qhuCQr2y1gpknsGu2dbFS/ykn3yIVit2dvY+lxibSrNG7Owh6bvBxfY36MzdzbereutErFIoOr6V9wGgl07h0+gHT8j3k+jtnDbenqN57geqAIC78MtjPpH7f1hO4lHlcVBz/Lg4NCK7jGIInpqAQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k0QeBbjtED0/qTvjV3EJc9nEcaHLHUOvNAiltikSz3qhwRqpw8Gg1f40Yf4Q8m20ZF6hof+1qg57g8iq71aE2hCYo3CBNojD42zkds0RdhpTxTjR5PO7IZ14lB2zjpijrTHcE4wDVfSLu3oyw2YG2AMvXXm5HUzAJVX9j20tvQMtvLjkki+VmcovH3EDOIVZ4/R+e7YkffUKQGSKu0Wyqem2QrAHwSDsCdVpE9Pdt8nnnNHJFaqUAexYuTvq88hA55L8vRrNUa9Izze4XbgUF2EvbAT0L/3dDcID7OD0+fGVsDPmkyJBm/jeEdZbUj3u6kW2z9IWOGloYzICwRzx7Q==
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 27 Jan 2025 23:42:41 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2025-01-03 20:58, Denis Mukhin via B4 Relay wrote:
From: Denis Mukhin <dmukhin@xxxxxxxx>
console_input_domain() takes an RCU lock to protect domain structure.
That implies call to rcu_unlock_domain() after use.
Introduce a pair of console_get_domain() / console_put_domain() to highlight
the correct use of the call within the code interacting with Xen console
driver.
Also, use new calls in the console driver in __serial_rx(). That prepares
the code for the follow-on console driver cleanup series.
Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
|