File tree Expand file tree Collapse file tree 7 files changed +1
-52
lines changed Expand file tree Collapse file tree 7 files changed +1
-52
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ struct xen_dm_op_buf;
88
88
* there aren't more than 5 arguments...)
89
89
*/
90
90
91
- extern struct { char _entry [32 ]; } hypercall_page [];
92
-
93
91
void xen_hypercall_func (void );
94
92
DECLARE_STATIC_CALL (xen_hypercall , xen_hypercall_func );
95
93
Original file line number Diff line number Diff line change @@ -142,11 +142,6 @@ static bool skip_addr(void *dest)
142
142
if (dest >= (void * )relocate_kernel &&
143
143
dest < (void * )relocate_kernel + KEXEC_CONTROL_CODE_MAX_SIZE )
144
144
return true;
145
- #endif
146
- #ifdef CONFIG_XEN
147
- if (dest >= (void * )hypercall_page &&
148
- dest < (void * )hypercall_page + PAGE_SIZE )
149
- return true;
150
145
#endif
151
146
return false;
152
147
}
Original file line number Diff line number Diff line change @@ -519,14 +519,10 @@ INIT_PER_CPU(irq_stack_backing_store);
519
519
* linker will never mark as relocatable. (Using just ABSOLUTE() is not
520
520
* sufficient for that).
521
521
*/
522
- #ifdef CONFIG_XEN
523
522
#ifdef CONFIG_XEN_PV
524
523
xen_elfnote_entry_value =
525
524
ABSOLUTE(xen_elfnote_entry) + ABSOLUTE(startup_xen);
526
525
#endif
527
- xen_elfnote_hypercall_page_value =
528
- ABSOLUTE(xen_elfnote_hypercall_page) + ABSOLUTE(hypercall_page);
529
- #endif
530
526
#ifdef CONFIG_PVH
531
527
xen_elfnote_phys32_entry_value =
532
528
ABSOLUTE(xen_elfnote_phys32_entry) + ABSOLUTE(pvh_start_xen - LOAD_OFFSET);
Original file line number Diff line number Diff line change 22
22
23
23
#include "xen-ops.h"
24
24
25
- EXPORT_SYMBOL_GPL (hypercall_page );
26
-
27
25
DEFINE_STATIC_CALL (xen_hypercall , xen_hypercall_hvm );
28
26
EXPORT_STATIC_CALL_TRAMP (xen_hypercall );
29
27
Original file line number Diff line number Diff line change @@ -106,15 +106,8 @@ static void __init init_hvm_pv_info(void)
106
106
/* PVH set up hypercall page in xen_prepare_pvh(). */
107
107
if (xen_pvh_domain ())
108
108
pv_info .name = "Xen PVH" ;
109
- else {
110
- u64 pfn ;
111
- uint32_t msr ;
112
-
109
+ else
113
110
pv_info .name = "Xen HVM" ;
114
- msr = cpuid_ebx (base + 2 );
115
- pfn = __pa (hypercall_page );
116
- wrmsr_safe (msr , (u32 )pfn , (u32 )(pfn >> 32 ));
117
- }
118
111
119
112
xen_setup_features ();
120
113
Original file line number Diff line number Diff line change @@ -129,17 +129,10 @@ static void __init pvh_arch_setup(void)
129
129
130
130
void __init xen_pvh_init (struct boot_params * boot_params )
131
131
{
132
- u32 msr ;
133
- u64 pfn ;
134
-
135
132
xen_pvh = 1 ;
136
133
xen_domain_type = XEN_HVM_DOMAIN ;
137
134
xen_start_flags = pvh_start_info .flags ;
138
135
139
- msr = cpuid_ebx (xen_cpuid_base () + 2 );
140
- pfn = __pa (hypercall_page );
141
- wrmsr_safe (msr , (u32 )pfn , (u32 )(pfn >> 32 ));
142
-
143
136
x86_init .oem .arch_setup = pvh_arch_setup ;
144
137
x86_init .oem .banner = xen_banner ;
145
138
Original file line number Diff line number Diff line change 22
22
#include <xen/interface/xen-mca.h>
23
23
#include <asm/xen/interface.h>
24
24
25
- .pushsection .noinstr.text, "ax"
26
- .balign PAGE_SIZE
27
- SYM_CODE_START(hypercall_page)
28
- .rept (PAGE_SIZE / 32 )
29
- UNWIND_HINT_FUNC
30
- ANNOTATE_NOENDBR
31
- ANNOTATE_UNRET_SAFE
32
- ret
33
- /*
34
- * Xen will write the hypercall page, and sort out ENDBR.
35
- */
36
- .skip 31 , 0xcc
37
- .endr
38
-
39
- #define HYPERCALL(n) \
40
- .equ xen_hypercall_##n, hypercall_page + __HYPERVISOR_##n * 32; \
41
- .type xen_hypercall_##n, @function; .size xen_hypercall_##n, 32
42
- #include <asm/xen-hypercalls.h>
43
- #undef HYPERCALL
44
- SYM_CODE_END(hypercall_page)
45
- .popsection
46
-
47
25
#ifdef CONFIG_XEN_PV
48
26
__INIT
49
27
SYM_CODE_START(startup_xen)
@@ -199,8 +177,6 @@ SYM_FUNC_END(xen_hypercall_intel)
199
177
#else
200
178
# define FEATURES_DOM0 0
201
179
#endif
202
- ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .globl xen_elfnote_hypercall_page;
203
- xen_elfnote_hypercall_page: _ASM_PTR xen_elfnote_hypercall_page_value - .)
204
180
ELFNOTE(Xen, XEN_ELFNOTE_SUPPORTED_FEATURES,
205
181
.long FEATURES_PV | FEATURES_PVH | FEATURES_DOM0)
206
182
ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic" )
You can’t perform that action at this time.
0 commit comments