diff options
| author | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2012-04-06 21:48:59 -0400 |
| commit | eeaab2d8af2cf1d36d7086f22e9de42d6dd2995c (patch) | |
| tree | 369b9c91a6d808944f07d2290fec6f9fe2731904 /include/xen/interface | |
| parent | ee01e663373343c63e0e3d364d09f6155378dbcc (diff) | |
| parent | aaef292acf3a78d9c0bb6fb72226077d286b45d7 (diff) | |
Merge branches 'idle-fix' and 'misc' into release
Diffstat (limited to 'include/xen/interface')
| -rw-r--r-- | include/xen/interface/hvm/params.h | 6 | ||||
| -rw-r--r-- | include/xen/interface/physdev.h | 28 | ||||
| -rw-r--r-- | include/xen/interface/platform.h | 20 |
3 files changed, 52 insertions, 2 deletions
diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/params.h index 1888d8c157e6..1b4f923d7086 100644 --- a/include/xen/interface/hvm/params.h +++ b/include/xen/interface/hvm/params.h | |||
| @@ -90,6 +90,10 @@ | |||
| 90 | /* Boolean: Enable aligning all periodic vpts to reduce interrupts */ | 90 | /* Boolean: Enable aligning all periodic vpts to reduce interrupts */ |
| 91 | #define HVM_PARAM_VPT_ALIGN 16 | 91 | #define HVM_PARAM_VPT_ALIGN 16 |
| 92 | 92 | ||
| 93 | #define HVM_NR_PARAMS 17 | 93 | /* Console debug shared memory ring and event channel */ |
| 94 | #define HVM_PARAM_CONSOLE_PFN 17 | ||
| 95 | #define HVM_PARAM_CONSOLE_EVTCHN 18 | ||
| 96 | |||
| 97 | #define HVM_NR_PARAMS 19 | ||
| 94 | 98 | ||
| 95 | #endif /* __XEN_PUBLIC_HVM_PARAMS_H__ */ | 99 | #endif /* __XEN_PUBLIC_HVM_PARAMS_H__ */ |
diff --git a/include/xen/interface/physdev.h b/include/xen/interface/physdev.h index c1080d9c705d..9ce788d8cf49 100644 --- a/include/xen/interface/physdev.h +++ b/include/xen/interface/physdev.h | |||
| @@ -39,6 +39,27 @@ struct physdev_eoi { | |||
| 39 | }; | 39 | }; |
| 40 | 40 | ||
| 41 | /* | 41 | /* |
| 42 | * Register a shared page for the hypervisor to indicate whether the guest | ||
| 43 | * must issue PHYSDEVOP_eoi. The semantics of PHYSDEVOP_eoi change slightly | ||
| 44 | * once the guest used this function in that the associated event channel | ||
| 45 | * will automatically get unmasked. The page registered is used as a bit | ||
| 46 | * array indexed by Xen's PIRQ value. | ||
| 47 | */ | ||
| 48 | #define PHYSDEVOP_pirq_eoi_gmfn_v1 17 | ||
| 49 | /* | ||
| 50 | * Register a shared page for the hypervisor to indicate whether the | ||
| 51 | * guest must issue PHYSDEVOP_eoi. This hypercall is very similar to | ||
| 52 | * PHYSDEVOP_pirq_eoi_gmfn_v1 but it doesn't change the semantics of | ||
| 53 | * PHYSDEVOP_eoi. The page registered is used as a bit array indexed by | ||
| 54 | * Xen's PIRQ value. | ||
| 55 | */ | ||
| 56 | #define PHYSDEVOP_pirq_eoi_gmfn_v2 28 | ||
| 57 | struct physdev_pirq_eoi_gmfn { | ||
| 58 | /* IN */ | ||
| 59 | unsigned long gmfn; | ||
| 60 | }; | ||
| 61 | |||
| 62 | /* | ||
| 42 | * Query the status of an IRQ line. | 63 | * Query the status of an IRQ line. |
| 43 | * @arg == pointer to physdev_irq_status_query structure. | 64 | * @arg == pointer to physdev_irq_status_query structure. |
| 44 | */ | 65 | */ |
| @@ -145,6 +166,13 @@ struct physdev_manage_pci { | |||
| 145 | uint8_t devfn; | 166 | uint8_t devfn; |
| 146 | }; | 167 | }; |
| 147 | 168 | ||
| 169 | #define PHYSDEVOP_restore_msi 19 | ||
| 170 | struct physdev_restore_msi { | ||
| 171 | /* IN */ | ||
| 172 | uint8_t bus; | ||
| 173 | uint8_t devfn; | ||
| 174 | }; | ||
| 175 | |||
| 148 | #define PHYSDEVOP_manage_pci_add_ext 20 | 176 | #define PHYSDEVOP_manage_pci_add_ext 20 |
| 149 | struct physdev_manage_pci_ext { | 177 | struct physdev_manage_pci_ext { |
| 150 | /* IN */ | 178 | /* IN */ |
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index c1684680431b..486653f0dd8f 100644 --- a/include/xen/interface/platform.h +++ b/include/xen/interface/platform.h | |||
| @@ -200,7 +200,7 @@ DEFINE_GUEST_HANDLE_STRUCT(xenpf_getidletime_t); | |||
| 200 | #define XEN_PM_CX 0 | 200 | #define XEN_PM_CX 0 |
| 201 | #define XEN_PM_PX 1 | 201 | #define XEN_PM_PX 1 |
| 202 | #define XEN_PM_TX 2 | 202 | #define XEN_PM_TX 2 |
| 203 | 203 | #define XEN_PM_PDC 3 | |
| 204 | /* Px sub info type */ | 204 | /* Px sub info type */ |
| 205 | #define XEN_PX_PCT 1 | 205 | #define XEN_PX_PCT 1 |
| 206 | #define XEN_PX_PSS 2 | 206 | #define XEN_PX_PSS 2 |
| @@ -293,10 +293,27 @@ struct xenpf_set_processor_pminfo { | |||
| 293 | union { | 293 | union { |
| 294 | struct xen_processor_power power;/* Cx: _CST/_CSD */ | 294 | struct xen_processor_power power;/* Cx: _CST/_CSD */ |
| 295 | struct xen_processor_performance perf; /* Px: _PPC/_PCT/_PSS/_PSD */ | 295 | struct xen_processor_performance perf; /* Px: _PPC/_PCT/_PSS/_PSD */ |
| 296 | GUEST_HANDLE(uint32_t) pdc; | ||
| 296 | }; | 297 | }; |
| 297 | }; | 298 | }; |
| 298 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_set_processor_pminfo); | 299 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_set_processor_pminfo); |
| 299 | 300 | ||
| 301 | #define XENPF_get_cpuinfo 55 | ||
| 302 | struct xenpf_pcpuinfo { | ||
| 303 | /* IN */ | ||
| 304 | uint32_t xen_cpuid; | ||
| 305 | /* OUT */ | ||
| 306 | /* The maxium cpu_id that is present */ | ||
| 307 | uint32_t max_present; | ||
| 308 | #define XEN_PCPU_FLAGS_ONLINE 1 | ||
| 309 | /* Correponding xen_cpuid is not present*/ | ||
| 310 | #define XEN_PCPU_FLAGS_INVALID 2 | ||
| 311 | uint32_t flags; | ||
| 312 | uint32_t apic_id; | ||
| 313 | uint32_t acpi_id; | ||
| 314 | }; | ||
| 315 | DEFINE_GUEST_HANDLE_STRUCT(xenpf_pcpuinfo); | ||
| 316 | |||
| 300 | struct xen_platform_op { | 317 | struct xen_platform_op { |
| 301 | uint32_t cmd; | 318 | uint32_t cmd; |
| 302 | uint32_t interface_version; /* XENPF_INTERFACE_VERSION */ | 319 | uint32_t interface_version; /* XENPF_INTERFACE_VERSION */ |
| @@ -312,6 +329,7 @@ struct xen_platform_op { | |||
| 312 | struct xenpf_change_freq change_freq; | 329 | struct xenpf_change_freq change_freq; |
| 313 | struct xenpf_getidletime getidletime; | 330 | struct xenpf_getidletime getidletime; |
| 314 | struct xenpf_set_processor_pminfo set_pminfo; | 331 | struct xenpf_set_processor_pminfo set_pminfo; |
| 332 | struct xenpf_pcpuinfo pcpu_info; | ||
| 315 | uint8_t pad[128]; | 333 | uint8_t pad[128]; |
| 316 | } u; | 334 | } u; |
| 317 | }; | 335 | }; |
