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

Re: [PATCH v3 1/4] xen/pv: add fault recovery control to pmu msr accesses


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 5 Oct 2022 13:58:41 +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=92gEudYViPSoFHFVbUAJYNnmR360+JuOA2pl7iiDTfo=; b=X7As866p+RvaX8SEvJudBqHVnjaIBSNIz94mhLx6h6yxi4ppkmcvy0vzHWCqDsoGBOidDjvpQ90nGMTBzstjkWokSCZywSGDk94vOmj2oSAGzkPfOs0jmyjoKNi4fhK+thNRcT1X6tzZWCDHGedhAJgRXnJp2uodo7jpOwxv/OXUizncEM1FnYkaEF2Ewafnngrt2EShtptgMOluaSQZfzgX1VnW745u7t/HJDX3TAhOQERkSoKuCtzf1iWjKcQtQTyrfqyqG/7lGe+0xLrLAQ/xZHXetVI7LI4CWRL8QYkhrbsSkFkTAsgIzU9nUrSK6RM/V0FZiGEJxG45+uNLUw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+MlmnGiF2wcyDAhfrw9RZgLhkIpz3NX7GxyAi4VKtKcj+N0BzU8BlugqPtUjlCW4OUZMad7O12+xYxyFURAaAjyTXQoygIvdu8k4Svw9+rQ3q7ELbBdi9ah9NeQlwo5sWR9WorGNMYdyHEsTrR4fJhWJDWJM5jjYgZSohOXLm8pXBYs4BvAQtvjQUOSmBMHOUHyxWdE2xh9JUJXCqqVk60g7W91R9ekiEN/KTAgQZtGyobtZ9gLht1OASbnwrDk+h+wQJmup8Nva4MU0CuaHaSFmKXwul9AxckT1lw3U8KEWEf0NN7jpFkyZ+2o9nM/3/Pa0Cdc42ZdNJ6pLHO51Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
  • Delivery-date: Wed, 05 Oct 2022 11:58:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05.10.2022 13:02, Juergen Gross wrote:
> Today pmu_msr_read() and pmu_msr_write() fall back to the safe variants
> of read/write MSR in case the MSR access isn't emulated via Xen. Allow
> the caller to select that faults should not be recovered from by passing
> NULL for the error pointer.
> 
> Restructure the code to make it more readable.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

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®.