summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-08-23 17:52:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-23 17:52:23 -0400
commitd40acad1f1979194ecda83f77468751244b4b098 (patch)
tree268c6a59738b7f65fd94f595f193234b7e896f29 /drivers/xen
parent0c4b0f815f20304156f66d47d0c2a6e148f6ffaa (diff)
parent75f2d3a0cef5cd8cd41772c9f8ada37dee9c9369 (diff)
Merge tag 'for-linus-4.19b-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes and cleanups from Juergen Gross: "Some cleanups, some minor fixes and a fix for a bug introduced in this merge window hitting 32-bit PV guests" * tag 'for-linus-4.19b-rc1b-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: x86/xen: enable early use of set_fixmap in 32-bit Xen PV guest xen: remove unused hypercall functions x86/xen: remove unused function xen_auto_xlated_memory_setup() xen/ACPI: don't upload Px/Cx data for disabled processors x86/Xen: further refine add_preferred_console() invocations xen/mcelog: eliminate redundant setting of interface version x86/Xen: mark xen_setup_gdt() __init
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/mcelog.c2
-rw-r--r--drivers/xen/xen-acpi-processor.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/xen/mcelog.c b/drivers/xen/mcelog.c
index 262835ace35d..b8bf61abb65b 100644
--- a/drivers/xen/mcelog.c
+++ b/drivers/xen/mcelog.c
@@ -288,7 +288,6 @@ static int mc_queue_handle(uint32_t flags)
288 int ret = 0; 288 int ret = 0;
289 289
290 mc_op.cmd = XEN_MC_fetch; 290 mc_op.cmd = XEN_MC_fetch;
291 mc_op.interface_version = XEN_MCA_INTERFACE_VERSION;
292 set_xen_guest_handle(mc_op.u.mc_fetch.data, &g_mi); 291 set_xen_guest_handle(mc_op.u.mc_fetch.data, &g_mi);
293 do { 292 do {
294 mc_op.u.mc_fetch.flags = flags; 293 mc_op.u.mc_fetch.flags = flags;
@@ -358,7 +357,6 @@ static int bind_virq_for_mce(void)
358 357
359 /* Fetch physical CPU Numbers */ 358 /* Fetch physical CPU Numbers */
360 mc_op.cmd = XEN_MC_physcpuinfo; 359 mc_op.cmd = XEN_MC_physcpuinfo;
361 mc_op.interface_version = XEN_MCA_INTERFACE_VERSION;
362 set_xen_guest_handle(mc_op.u.mc_physcpuinfo.info, g_physinfo); 360 set_xen_guest_handle(mc_op.u.mc_physcpuinfo.info, g_physinfo);
363 ret = HYPERVISOR_mca(&mc_op); 361 ret = HYPERVISOR_mca(&mc_op);
364 if (ret) { 362 if (ret) {
diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c
index b29f4e40851f..fbb9137c7d02 100644
--- a/drivers/xen/xen-acpi-processor.c
+++ b/drivers/xen/xen-acpi-processor.c
@@ -362,6 +362,12 @@ read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv)
362 default: 362 default:
363 return AE_OK; 363 return AE_OK;
364 } 364 }
365 if (invalid_phys_cpuid(acpi_get_phys_id(handle,
366 acpi_type == ACPI_TYPE_DEVICE,
367 acpi_id))) {
368 pr_debug("CPU with ACPI ID %u is unavailable\n", acpi_id);
369 return AE_OK;
370 }
365 /* There are more ACPI Processor objects than in x2APIC or MADT. 371 /* There are more ACPI Processor objects than in x2APIC or MADT.
366 * This can happen with incorrect ACPI SSDT declerations. */ 372 * This can happen with incorrect ACPI SSDT declerations. */
367 if (acpi_id >= nr_acpi_bits) { 373 if (acpi_id >= nr_acpi_bits) {