]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pv: add fault recovery control to pmu msr accesses
authorJuergen Gross <jgross@suse.com>
Mon, 26 Sep 2022 06:23:51 +0000 (08:23 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 11 Oct 2022 08:50:51 +0000 (10:50 +0200)
commit58ae6bb9f9d236f3710e02295d404556e0f99297
treeee323125ca1747c841781668e97f3a31c5bd5151
parent6752d505e72d2b30536052173c267c08d1fc0d77
xen/pv: add fault recovery control to pmu msr accesses

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@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/pmu.c