diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2015-11-23 05:36:12 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-12-21 09:40:55 -0500 |
commit | cfafae940381207d48b11a73a211142dba5947d3 (patch) | |
tree | ced7aa811e7013fcbc08fa9b2880a1e204425402 | |
parent | 34e38523d586ae1e838241d44c8a2e9a1c9e0b43 (diff) |
xen: rename dom0_op to platform_op
The dom0_op hypercall has been renamed to platform_op since Xen 3.2,
which is ancient, and modern upstream Linux kernels cannot run as dom0
and it anymore anyway.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-rw-r--r-- | arch/x86/include/asm/xen/hypercall.h | 6 | ||||
-rw-r--r-- | arch/x86/xen/apic.c | 2 | ||||
-rw-r--r-- | arch/x86/xen/enlighten.c | 8 | ||||
-rw-r--r-- | arch/x86/xen/time.c | 2 | ||||
-rw-r--r-- | drivers/xen/acpi.c | 2 | ||||
-rw-r--r-- | drivers/xen/efi.c | 30 | ||||
-rw-r--r-- | drivers/xen/pcpu.c | 8 | ||||
-rw-r--r-- | drivers/xen/xen-acpi-cpuhotplug.c | 2 | ||||
-rw-r--r-- | drivers/xen/xen-acpi-pad.c | 4 | ||||
-rw-r--r-- | drivers/xen/xen-acpi-processor.c | 8 | ||||
-rw-r--r-- | drivers/xen/xenfs/xensyms.c | 4 | ||||
-rw-r--r-- | include/xen/interface/xen.h | 2 |
12 files changed, 39 insertions, 39 deletions
diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index 4c20dd333412..3bcdcc84259d 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h | |||
@@ -310,10 +310,10 @@ HYPERVISOR_mca(struct xen_mc *mc_op) | |||
310 | } | 310 | } |
311 | 311 | ||
312 | static inline int | 312 | static inline int |
313 | HYPERVISOR_dom0_op(struct xen_platform_op *platform_op) | 313 | HYPERVISOR_platform_op(struct xen_platform_op *op) |
314 | { | 314 | { |
315 | platform_op->interface_version = XENPF_INTERFACE_VERSION; | 315 | op->interface_version = XENPF_INTERFACE_VERSION; |
316 | return _hypercall1(int, dom0_op, platform_op); | 316 | return _hypercall1(int, platform_op, op); |
317 | } | 317 | } |
318 | 318 | ||
319 | static inline int | 319 | static inline int |
diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index acda713ab5be..abf4901c917b 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c | |||
@@ -64,7 +64,7 @@ static u32 xen_apic_read(u32 reg) | |||
64 | if (reg != APIC_ID) | 64 | if (reg != APIC_ID) |
65 | return 0; | 65 | return 0; |
66 | 66 | ||
67 | ret = HYPERVISOR_dom0_op(&op); | 67 | ret = HYPERVISOR_platform_op(&op); |
68 | if (ret) | 68 | if (ret) |
69 | return 0; | 69 | return 0; |
70 | 70 | ||
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 5774800ff583..f963c40fae01 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -415,7 +415,7 @@ static bool __init xen_check_mwait(void) | |||
415 | 415 | ||
416 | set_xen_guest_handle(op.u.set_pminfo.pdc, buf); | 416 | set_xen_guest_handle(op.u.set_pminfo.pdc, buf); |
417 | 417 | ||
418 | if ((HYPERVISOR_dom0_op(&op) == 0) && | 418 | if ((HYPERVISOR_platform_op(&op) == 0) && |
419 | (buf[2] & (ACPI_PDC_C_C1_FFH | ACPI_PDC_C_C2C3_FFH))) { | 419 | (buf[2] & (ACPI_PDC_C_C1_FFH | ACPI_PDC_C_C2C3_FFH))) { |
420 | cpuid_leaf5_ecx_val = cx; | 420 | cpuid_leaf5_ecx_val = cx; |
421 | cpuid_leaf5_edx_val = dx; | 421 | cpuid_leaf5_edx_val = dx; |
@@ -1374,7 +1374,7 @@ static void __init xen_boot_params_init_edd(void) | |||
1374 | info->params.length = sizeof(info->params); | 1374 | info->params.length = sizeof(info->params); |
1375 | set_xen_guest_handle(op.u.firmware_info.u.disk_info.edd_params, | 1375 | set_xen_guest_handle(op.u.firmware_info.u.disk_info.edd_params, |
1376 | &info->params); | 1376 | &info->params); |
1377 | ret = HYPERVISOR_dom0_op(&op); | 1377 | ret = HYPERVISOR_platform_op(&op); |
1378 | if (ret) | 1378 | if (ret) |
1379 | break; | 1379 | break; |
1380 | 1380 | ||
@@ -1392,7 +1392,7 @@ static void __init xen_boot_params_init_edd(void) | |||
1392 | op.u.firmware_info.type = XEN_FW_DISK_MBR_SIGNATURE; | 1392 | op.u.firmware_info.type = XEN_FW_DISK_MBR_SIGNATURE; |
1393 | for (nr = 0; nr < EDD_MBR_SIG_MAX; nr++) { | 1393 | for (nr = 0; nr < EDD_MBR_SIG_MAX; nr++) { |
1394 | op.u.firmware_info.index = nr; | 1394 | op.u.firmware_info.index = nr; |
1395 | ret = HYPERVISOR_dom0_op(&op); | 1395 | ret = HYPERVISOR_platform_op(&op); |
1396 | if (ret) | 1396 | if (ret) |
1397 | break; | 1397 | break; |
1398 | mbr_signature[nr] = op.u.firmware_info.u.disk_mbr_signature.mbr_signature; | 1398 | mbr_signature[nr] = op.u.firmware_info.u.disk_mbr_signature.mbr_signature; |
@@ -1698,7 +1698,7 @@ asmlinkage __visible void __init xen_start_kernel(void) | |||
1698 | xen_start_info->console.domU.mfn = 0; | 1698 | xen_start_info->console.domU.mfn = 0; |
1699 | xen_start_info->console.domU.evtchn = 0; | 1699 | xen_start_info->console.domU.evtchn = 0; |
1700 | 1700 | ||
1701 | if (HYPERVISOR_dom0_op(&op) == 0) | 1701 | if (HYPERVISOR_platform_op(&op) == 0) |
1702 | boot_params.kbd_status = op.u.firmware_info.u.kbd_shift_flags; | 1702 | boot_params.kbd_status = op.u.firmware_info.u.kbd_shift_flags; |
1703 | 1703 | ||
1704 | /* Make sure ACS will be enabled */ | 1704 | /* Make sure ACS will be enabled */ |
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 041d4cda3939..663c2ea449c7 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
@@ -139,7 +139,7 @@ static int xen_pvclock_gtod_notify(struct notifier_block *nb, | |||
139 | op.u.settime.nsecs = now.tv_nsec; | 139 | op.u.settime.nsecs = now.tv_nsec; |
140 | op.u.settime.system_time = xen_clocksource_read(); | 140 | op.u.settime.system_time = xen_clocksource_read(); |
141 | 141 | ||
142 | (void)HYPERVISOR_dom0_op(&op); | 142 | (void)HYPERVISOR_platform_op(&op); |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * Move the next drift compensation time 11 minutes | 145 | * Move the next drift compensation time 11 minutes |
diff --git a/drivers/xen/acpi.c b/drivers/xen/acpi.c index 90307c0b630c..6893c79fd2a1 100644 --- a/drivers/xen/acpi.c +++ b/drivers/xen/acpi.c | |||
@@ -58,7 +58,7 @@ static int xen_acpi_notify_hypervisor_state(u8 sleep_state, | |||
58 | bits, val_a, val_b)) | 58 | bits, val_a, val_b)) |
59 | return -1; | 59 | return -1; |
60 | 60 | ||
61 | HYPERVISOR_dom0_op(&op); | 61 | HYPERVISOR_platform_op(&op); |
62 | return 1; | 62 | return 1; |
63 | } | 63 | } |
64 | 64 | ||
diff --git a/drivers/xen/efi.c b/drivers/xen/efi.c index f745db270171..be7e56a338e8 100644 --- a/drivers/xen/efi.c +++ b/drivers/xen/efi.c | |||
@@ -42,7 +42,7 @@ static efi_status_t xen_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) | |||
42 | { | 42 | { |
43 | struct xen_platform_op op = INIT_EFI_OP(get_time); | 43 | struct xen_platform_op op = INIT_EFI_OP(get_time); |
44 | 44 | ||
45 | if (HYPERVISOR_dom0_op(&op) < 0) | 45 | if (HYPERVISOR_platform_op(&op) < 0) |
46 | return EFI_UNSUPPORTED; | 46 | return EFI_UNSUPPORTED; |
47 | 47 | ||
48 | if (tm) { | 48 | if (tm) { |
@@ -67,7 +67,7 @@ static efi_status_t xen_efi_set_time(efi_time_t *tm) | |||
67 | BUILD_BUG_ON(sizeof(*tm) != sizeof(efi_data(op).u.set_time)); | 67 | BUILD_BUG_ON(sizeof(*tm) != sizeof(efi_data(op).u.set_time)); |
68 | memcpy(&efi_data(op).u.set_time, tm, sizeof(*tm)); | 68 | memcpy(&efi_data(op).u.set_time, tm, sizeof(*tm)); |
69 | 69 | ||
70 | if (HYPERVISOR_dom0_op(&op) < 0) | 70 | if (HYPERVISOR_platform_op(&op) < 0) |
71 | return EFI_UNSUPPORTED; | 71 | return EFI_UNSUPPORTED; |
72 | 72 | ||
73 | return efi_data(op).status; | 73 | return efi_data(op).status; |
@@ -79,7 +79,7 @@ static efi_status_t xen_efi_get_wakeup_time(efi_bool_t *enabled, | |||
79 | { | 79 | { |
80 | struct xen_platform_op op = INIT_EFI_OP(get_wakeup_time); | 80 | struct xen_platform_op op = INIT_EFI_OP(get_wakeup_time); |
81 | 81 | ||
82 | if (HYPERVISOR_dom0_op(&op) < 0) | 82 | if (HYPERVISOR_platform_op(&op) < 0) |
83 | return EFI_UNSUPPORTED; | 83 | return EFI_UNSUPPORTED; |
84 | 84 | ||
85 | if (tm) { | 85 | if (tm) { |
@@ -108,7 +108,7 @@ static efi_status_t xen_efi_set_wakeup_time(efi_bool_t enabled, efi_time_t *tm) | |||
108 | else | 108 | else |
109 | efi_data(op).misc |= XEN_EFI_SET_WAKEUP_TIME_ENABLE_ONLY; | 109 | efi_data(op).misc |= XEN_EFI_SET_WAKEUP_TIME_ENABLE_ONLY; |
110 | 110 | ||
111 | if (HYPERVISOR_dom0_op(&op) < 0) | 111 | if (HYPERVISOR_platform_op(&op) < 0) |
112 | return EFI_UNSUPPORTED; | 112 | return EFI_UNSUPPORTED; |
113 | 113 | ||
114 | return efi_data(op).status; | 114 | return efi_data(op).status; |
@@ -129,7 +129,7 @@ static efi_status_t xen_efi_get_variable(efi_char16_t *name, | |||
129 | efi_data(op).u.get_variable.size = *data_size; | 129 | efi_data(op).u.get_variable.size = *data_size; |
130 | set_xen_guest_handle(efi_data(op).u.get_variable.data, data); | 130 | set_xen_guest_handle(efi_data(op).u.get_variable.data, data); |
131 | 131 | ||
132 | if (HYPERVISOR_dom0_op(&op) < 0) | 132 | if (HYPERVISOR_platform_op(&op) < 0) |
133 | return EFI_UNSUPPORTED; | 133 | return EFI_UNSUPPORTED; |
134 | 134 | ||
135 | *data_size = efi_data(op).u.get_variable.size; | 135 | *data_size = efi_data(op).u.get_variable.size; |
@@ -152,7 +152,7 @@ static efi_status_t xen_efi_get_next_variable(unsigned long *name_size, | |||
152 | memcpy(&efi_data(op).u.get_next_variable_name.vendor_guid, vendor, | 152 | memcpy(&efi_data(op).u.get_next_variable_name.vendor_guid, vendor, |
153 | sizeof(*vendor)); | 153 | sizeof(*vendor)); |
154 | 154 | ||
155 | if (HYPERVISOR_dom0_op(&op) < 0) | 155 | if (HYPERVISOR_platform_op(&op) < 0) |
156 | return EFI_UNSUPPORTED; | 156 | return EFI_UNSUPPORTED; |
157 | 157 | ||
158 | *name_size = efi_data(op).u.get_next_variable_name.size; | 158 | *name_size = efi_data(op).u.get_next_variable_name.size; |
@@ -178,7 +178,7 @@ static efi_status_t xen_efi_set_variable(efi_char16_t *name, | |||
178 | efi_data(op).u.set_variable.size = data_size; | 178 | efi_data(op).u.set_variable.size = data_size; |
179 | set_xen_guest_handle(efi_data(op).u.set_variable.data, data); | 179 | set_xen_guest_handle(efi_data(op).u.set_variable.data, data); |
180 | 180 | ||
181 | if (HYPERVISOR_dom0_op(&op) < 0) | 181 | if (HYPERVISOR_platform_op(&op) < 0) |
182 | return EFI_UNSUPPORTED; | 182 | return EFI_UNSUPPORTED; |
183 | 183 | ||
184 | return efi_data(op).status; | 184 | return efi_data(op).status; |
@@ -196,7 +196,7 @@ static efi_status_t xen_efi_query_variable_info(u32 attr, | |||
196 | 196 | ||
197 | efi_data(op).u.query_variable_info.attr = attr; | 197 | efi_data(op).u.query_variable_info.attr = attr; |
198 | 198 | ||
199 | if (HYPERVISOR_dom0_op(&op) < 0) | 199 | if (HYPERVISOR_platform_op(&op) < 0) |
200 | return EFI_UNSUPPORTED; | 200 | return EFI_UNSUPPORTED; |
201 | 201 | ||
202 | *storage_space = efi_data(op).u.query_variable_info.max_store_size; | 202 | *storage_space = efi_data(op).u.query_variable_info.max_store_size; |
@@ -210,7 +210,7 @@ static efi_status_t xen_efi_get_next_high_mono_count(u32 *count) | |||
210 | { | 210 | { |
211 | struct xen_platform_op op = INIT_EFI_OP(get_next_high_monotonic_count); | 211 | struct xen_platform_op op = INIT_EFI_OP(get_next_high_monotonic_count); |
212 | 212 | ||
213 | if (HYPERVISOR_dom0_op(&op) < 0) | 213 | if (HYPERVISOR_platform_op(&op) < 0) |
214 | return EFI_UNSUPPORTED; | 214 | return EFI_UNSUPPORTED; |
215 | 215 | ||
216 | *count = efi_data(op).misc; | 216 | *count = efi_data(op).misc; |
@@ -232,7 +232,7 @@ static efi_status_t xen_efi_update_capsule(efi_capsule_header_t **capsules, | |||
232 | efi_data(op).u.update_capsule.capsule_count = count; | 232 | efi_data(op).u.update_capsule.capsule_count = count; |
233 | efi_data(op).u.update_capsule.sg_list = sg_list; | 233 | efi_data(op).u.update_capsule.sg_list = sg_list; |
234 | 234 | ||
235 | if (HYPERVISOR_dom0_op(&op) < 0) | 235 | if (HYPERVISOR_platform_op(&op) < 0) |
236 | return EFI_UNSUPPORTED; | 236 | return EFI_UNSUPPORTED; |
237 | 237 | ||
238 | return efi_data(op).status; | 238 | return efi_data(op).status; |
@@ -252,7 +252,7 @@ static efi_status_t xen_efi_query_capsule_caps(efi_capsule_header_t **capsules, | |||
252 | capsules); | 252 | capsules); |
253 | efi_data(op).u.query_capsule_capabilities.capsule_count = count; | 253 | efi_data(op).u.query_capsule_capabilities.capsule_count = count; |
254 | 254 | ||
255 | if (HYPERVISOR_dom0_op(&op) < 0) | 255 | if (HYPERVISOR_platform_op(&op) < 0) |
256 | return EFI_UNSUPPORTED; | 256 | return EFI_UNSUPPORTED; |
257 | 257 | ||
258 | *max_size = efi_data(op).u.query_capsule_capabilities.max_capsule_size; | 258 | *max_size = efi_data(op).u.query_capsule_capabilities.max_capsule_size; |
@@ -331,7 +331,7 @@ efi_system_table_t __init *xen_efi_probe(void) | |||
331 | }; | 331 | }; |
332 | union xenpf_efi_info *info = &op.u.firmware_info.u.efi_info; | 332 | union xenpf_efi_info *info = &op.u.firmware_info.u.efi_info; |
333 | 333 | ||
334 | if (!xen_initial_domain() || HYPERVISOR_dom0_op(&op) < 0) | 334 | if (!xen_initial_domain() || HYPERVISOR_platform_op(&op) < 0) |
335 | return NULL; | 335 | return NULL; |
336 | 336 | ||
337 | /* Here we know that Xen runs on EFI platform. */ | 337 | /* Here we know that Xen runs on EFI platform. */ |
@@ -347,7 +347,7 @@ efi_system_table_t __init *xen_efi_probe(void) | |||
347 | info->vendor.bufsz = sizeof(vendor); | 347 | info->vendor.bufsz = sizeof(vendor); |
348 | set_xen_guest_handle(info->vendor.name, vendor); | 348 | set_xen_guest_handle(info->vendor.name, vendor); |
349 | 349 | ||
350 | if (HYPERVISOR_dom0_op(&op) == 0) { | 350 | if (HYPERVISOR_platform_op(&op) == 0) { |
351 | efi_systab_xen.fw_vendor = __pa_symbol(vendor); | 351 | efi_systab_xen.fw_vendor = __pa_symbol(vendor); |
352 | efi_systab_xen.fw_revision = info->vendor.revision; | 352 | efi_systab_xen.fw_revision = info->vendor.revision; |
353 | } else | 353 | } else |
@@ -357,14 +357,14 @@ efi_system_table_t __init *xen_efi_probe(void) | |||
357 | op.u.firmware_info.type = XEN_FW_EFI_INFO; | 357 | op.u.firmware_info.type = XEN_FW_EFI_INFO; |
358 | op.u.firmware_info.index = XEN_FW_EFI_VERSION; | 358 | op.u.firmware_info.index = XEN_FW_EFI_VERSION; |
359 | 359 | ||
360 | if (HYPERVISOR_dom0_op(&op) == 0) | 360 | if (HYPERVISOR_platform_op(&op) == 0) |
361 | efi_systab_xen.hdr.revision = info->version; | 361 | efi_systab_xen.hdr.revision = info->version; |
362 | 362 | ||
363 | op.cmd = XENPF_firmware_info; | 363 | op.cmd = XENPF_firmware_info; |
364 | op.u.firmware_info.type = XEN_FW_EFI_INFO; | 364 | op.u.firmware_info.type = XEN_FW_EFI_INFO; |
365 | op.u.firmware_info.index = XEN_FW_EFI_RT_VERSION; | 365 | op.u.firmware_info.index = XEN_FW_EFI_RT_VERSION; |
366 | 366 | ||
367 | if (HYPERVISOR_dom0_op(&op) == 0) | 367 | if (HYPERVISOR_platform_op(&op) == 0) |
368 | efi.runtime_version = info->version; | 368 | efi.runtime_version = info->version; |
369 | 369 | ||
370 | return &efi_systab_xen; | 370 | return &efi_systab_xen; |
diff --git a/drivers/xen/pcpu.c b/drivers/xen/pcpu.c index 49e88f2ce7a1..cdc6daa7a9f6 100644 --- a/drivers/xen/pcpu.c +++ b/drivers/xen/pcpu.c | |||
@@ -78,7 +78,7 @@ static int xen_pcpu_down(uint32_t cpu_id) | |||
78 | .u.cpu_ol.cpuid = cpu_id, | 78 | .u.cpu_ol.cpuid = cpu_id, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | return HYPERVISOR_dom0_op(&op); | 81 | return HYPERVISOR_platform_op(&op); |
82 | } | 82 | } |
83 | 83 | ||
84 | static int xen_pcpu_up(uint32_t cpu_id) | 84 | static int xen_pcpu_up(uint32_t cpu_id) |
@@ -89,7 +89,7 @@ static int xen_pcpu_up(uint32_t cpu_id) | |||
89 | .u.cpu_ol.cpuid = cpu_id, | 89 | .u.cpu_ol.cpuid = cpu_id, |
90 | }; | 90 | }; |
91 | 91 | ||
92 | return HYPERVISOR_dom0_op(&op); | 92 | return HYPERVISOR_platform_op(&op); |
93 | } | 93 | } |
94 | 94 | ||
95 | static ssize_t show_online(struct device *dev, | 95 | static ssize_t show_online(struct device *dev, |
@@ -277,7 +277,7 @@ static int sync_pcpu(uint32_t cpu, uint32_t *max_cpu) | |||
277 | .u.pcpu_info.xen_cpuid = cpu, | 277 | .u.pcpu_info.xen_cpuid = cpu, |
278 | }; | 278 | }; |
279 | 279 | ||
280 | ret = HYPERVISOR_dom0_op(&op); | 280 | ret = HYPERVISOR_platform_op(&op); |
281 | if (ret) | 281 | if (ret) |
282 | return ret; | 282 | return ret; |
283 | 283 | ||
@@ -364,7 +364,7 @@ int xen_pcpu_id(uint32_t acpi_id) | |||
364 | op.cmd = XENPF_get_cpuinfo; | 364 | op.cmd = XENPF_get_cpuinfo; |
365 | while (cpu_id <= max_id) { | 365 | while (cpu_id <= max_id) { |
366 | op.u.pcpu_info.xen_cpuid = cpu_id; | 366 | op.u.pcpu_info.xen_cpuid = cpu_id; |
367 | if (HYPERVISOR_dom0_op(&op)) { | 367 | if (HYPERVISOR_platform_op(&op)) { |
368 | cpu_id++; | 368 | cpu_id++; |
369 | continue; | 369 | continue; |
370 | } | 370 | } |
diff --git a/drivers/xen/xen-acpi-cpuhotplug.c b/drivers/xen/xen-acpi-cpuhotplug.c index f4a369429553..fdc9e67b842d 100644 --- a/drivers/xen/xen-acpi-cpuhotplug.c +++ b/drivers/xen/xen-acpi-cpuhotplug.c | |||
@@ -206,7 +206,7 @@ static int xen_hotadd_cpu(struct acpi_processor *pr) | |||
206 | op.u.cpu_add.acpi_id = pr->acpi_id; | 206 | op.u.cpu_add.acpi_id = pr->acpi_id; |
207 | op.u.cpu_add.pxm = pxm; | 207 | op.u.cpu_add.pxm = pxm; |
208 | 208 | ||
209 | cpu_id = HYPERVISOR_dom0_op(&op); | 209 | cpu_id = HYPERVISOR_platform_op(&op); |
210 | if (cpu_id < 0) | 210 | if (cpu_id < 0) |
211 | pr_err(PREFIX "Failed to hotadd CPU for acpi_id %d\n", | 211 | pr_err(PREFIX "Failed to hotadd CPU for acpi_id %d\n", |
212 | pr->acpi_id); | 212 | pr->acpi_id); |
diff --git a/drivers/xen/xen-acpi-pad.c b/drivers/xen/xen-acpi-pad.c index f83b754505f8..23d1808fe027 100644 --- a/drivers/xen/xen-acpi-pad.c +++ b/drivers/xen/xen-acpi-pad.c | |||
@@ -36,7 +36,7 @@ static int xen_acpi_pad_idle_cpus(unsigned int idle_nums) | |||
36 | op.u.core_parking.type = XEN_CORE_PARKING_SET; | 36 | op.u.core_parking.type = XEN_CORE_PARKING_SET; |
37 | op.u.core_parking.idle_nums = idle_nums; | 37 | op.u.core_parking.idle_nums = idle_nums; |
38 | 38 | ||
39 | return HYPERVISOR_dom0_op(&op); | 39 | return HYPERVISOR_platform_op(&op); |
40 | } | 40 | } |
41 | 41 | ||
42 | static int xen_acpi_pad_idle_cpus_num(void) | 42 | static int xen_acpi_pad_idle_cpus_num(void) |
@@ -46,7 +46,7 @@ static int xen_acpi_pad_idle_cpus_num(void) | |||
46 | op.cmd = XENPF_core_parking; | 46 | op.cmd = XENPF_core_parking; |
47 | op.u.core_parking.type = XEN_CORE_PARKING_GET; | 47 | op.u.core_parking.type = XEN_CORE_PARKING_GET; |
48 | 48 | ||
49 | return HYPERVISOR_dom0_op(&op) | 49 | return HYPERVISOR_platform_op(&op) |
50 | ?: op.u.core_parking.idle_nums; | 50 | ?: op.u.core_parking.idle_nums; |
51 | } | 51 | } |
52 | 52 | ||
diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c index 70fa438000af..076970a54f89 100644 --- a/drivers/xen/xen-acpi-processor.c +++ b/drivers/xen/xen-acpi-processor.c | |||
@@ -116,7 +116,7 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr) | |||
116 | set_xen_guest_handle(op.u.set_pminfo.power.states, dst_cx_states); | 116 | set_xen_guest_handle(op.u.set_pminfo.power.states, dst_cx_states); |
117 | 117 | ||
118 | if (!no_hypercall) | 118 | if (!no_hypercall) |
119 | ret = HYPERVISOR_dom0_op(&op); | 119 | ret = HYPERVISOR_platform_op(&op); |
120 | 120 | ||
121 | if (!ret) { | 121 | if (!ret) { |
122 | pr_debug("ACPI CPU%u - C-states uploaded.\n", _pr->acpi_id); | 122 | pr_debug("ACPI CPU%u - C-states uploaded.\n", _pr->acpi_id); |
@@ -244,7 +244,7 @@ static int push_pxx_to_hypervisor(struct acpi_processor *_pr) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | if (!no_hypercall) | 246 | if (!no_hypercall) |
247 | ret = HYPERVISOR_dom0_op(&op); | 247 | ret = HYPERVISOR_platform_op(&op); |
248 | 248 | ||
249 | if (!ret) { | 249 | if (!ret) { |
250 | struct acpi_processor_performance *perf; | 250 | struct acpi_processor_performance *perf; |
@@ -302,7 +302,7 @@ static unsigned int __init get_max_acpi_id(void) | |||
302 | info = &op.u.pcpu_info; | 302 | info = &op.u.pcpu_info; |
303 | info->xen_cpuid = 0; | 303 | info->xen_cpuid = 0; |
304 | 304 | ||
305 | ret = HYPERVISOR_dom0_op(&op); | 305 | ret = HYPERVISOR_platform_op(&op); |
306 | if (ret) | 306 | if (ret) |
307 | return NR_CPUS; | 307 | return NR_CPUS; |
308 | 308 | ||
@@ -310,7 +310,7 @@ static unsigned int __init get_max_acpi_id(void) | |||
310 | last_cpu = op.u.pcpu_info.max_present; | 310 | last_cpu = op.u.pcpu_info.max_present; |
311 | for (i = 0; i <= last_cpu; i++) { | 311 | for (i = 0; i <= last_cpu; i++) { |
312 | info->xen_cpuid = i; | 312 | info->xen_cpuid = i; |
313 | ret = HYPERVISOR_dom0_op(&op); | 313 | ret = HYPERVISOR_platform_op(&op); |
314 | if (ret) | 314 | if (ret) |
315 | continue; | 315 | continue; |
316 | max_acpi_id = max(info->acpi_id, max_acpi_id); | 316 | max_acpi_id = max(info->acpi_id, max_acpi_id); |
diff --git a/drivers/xen/xenfs/xensyms.c b/drivers/xen/xenfs/xensyms.c index f8b12856753f..a03f261b12d8 100644 --- a/drivers/xen/xenfs/xensyms.c +++ b/drivers/xen/xenfs/xensyms.c | |||
@@ -31,7 +31,7 @@ static int xensyms_next_sym(struct xensyms *xs) | |||
31 | 31 | ||
32 | symnum = symdata->symnum; | 32 | symnum = symdata->symnum; |
33 | 33 | ||
34 | ret = HYPERVISOR_dom0_op(&xs->op); | 34 | ret = HYPERVISOR_platform_op(&xs->op); |
35 | if (ret < 0) | 35 | if (ret < 0) |
36 | return ret; | 36 | return ret; |
37 | 37 | ||
@@ -50,7 +50,7 @@ static int xensyms_next_sym(struct xensyms *xs) | |||
50 | set_xen_guest_handle(symdata->name, xs->name); | 50 | set_xen_guest_handle(symdata->name, xs->name); |
51 | symdata->symnum--; /* Rewind */ | 51 | symdata->symnum--; /* Rewind */ |
52 | 52 | ||
53 | ret = HYPERVISOR_dom0_op(&xs->op); | 53 | ret = HYPERVISOR_platform_op(&xs->op); |
54 | if (ret < 0) | 54 | if (ret < 0) |
55 | return ret; | 55 | return ret; |
56 | } | 56 | } |
diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index 167071c290b3..d1331121c0bd 100644 --- a/include/xen/interface/xen.h +++ b/include/xen/interface/xen.h | |||
@@ -48,7 +48,7 @@ | |||
48 | #define __HYPERVISOR_set_callbacks 4 | 48 | #define __HYPERVISOR_set_callbacks 4 |
49 | #define __HYPERVISOR_fpu_taskswitch 5 | 49 | #define __HYPERVISOR_fpu_taskswitch 5 |
50 | #define __HYPERVISOR_sched_op_compat 6 | 50 | #define __HYPERVISOR_sched_op_compat 6 |
51 | #define __HYPERVISOR_dom0_op 7 | 51 | #define __HYPERVISOR_platform_op 7 |
52 | #define __HYPERVISOR_set_debugreg 8 | 52 | #define __HYPERVISOR_set_debugreg 8 |
53 | #define __HYPERVISOR_get_debugreg 9 | 53 | #define __HYPERVISOR_get_debugreg 9 |
54 | #define __HYPERVISOR_update_descriptor 10 | 54 | #define __HYPERVISOR_update_descriptor 10 |