File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ void __init hyperv_init(void)
382
382
PAGE_SIZE ,
383
383
GFP_KERNEL );
384
384
if (hv_vp_early_input_arg ) {
385
- ret = set_memory_decrypted (hv_vp_early_input_arg ,
385
+ ret = set_memory_decrypted (( u64 ) hv_vp_early_input_arg ,
386
386
num_possible_cpus ());
387
387
if (ret ) {
388
388
kfree (hv_vp_early_input_arg );
@@ -568,7 +568,7 @@ void __init hyperv_init(void)
568
568
kfree (hv_vp_assist_page );
569
569
hv_vp_assist_page = NULL ;
570
570
free_vp_early_input_arg :
571
- set_memory_encrypted (hv_vp_early_input_arg , num_possible_cpus ());
571
+ set_memory_encrypted (( u64 ) hv_vp_early_input_arg , num_possible_cpus ());
572
572
kfree (hv_vp_early_input_arg );
573
573
hv_vp_early_input_arg = NULL ;
574
574
common_free :
Original file line number Diff line number Diff line change @@ -65,13 +65,6 @@ union hv_ghcb {
65
65
/* Only used in an SNP VM with the paravisor */
66
66
static u16 hv_ghcb_version __ro_after_init ;
67
67
68
- /*
69
- * Use static page to set Secure AVIC backing page.
70
- * The operation happens before allocating input arg
71
- * page when start AP.
72
- */
73
- static u8 inputbuf [PAGE_SIZE ] __bss_decrypted __aligned (PAGE_SIZE );
74
-
75
68
/* Functions only used in an SNP VM with the paravisor go here. */
76
69
u64 hv_ghcb_hypercall (u64 control , void * input , void * output , u32 input_size )
77
70
{
Original file line number Diff line number Diff line change 20
20
#include <linux/interrupt.h>
21
21
#include <clocksource/hyperv_timer.h>
22
22
#include <asm/mshyperv.h>
23
+ #ifdef CONFIG_SEV_GUEST
23
24
#include <asm/apic.h>
25
+ #endif
24
26
#include <linux/set_memory.h>
25
27
#include "hyperv_vmbus.h"
26
28
@@ -313,8 +315,9 @@ void hv_synic_enable_regs(unsigned int cpu)
313
315
if (vmbus_irq != -1 )
314
316
enable_percpu_irq (vmbus_irq , 0 );
315
317
shared_sint .as_uint64 = hv_get_msr (HV_MSR_SINT0 + VMBUS_MESSAGE_SINT );
318
+ #ifdef CONFIG_SEV_GUEST
316
319
x2apic_savic_update_vector (smp_processor_id (), vmbus_interrupt , true);
317
-
320
+ #endif
318
321
shared_sint .vector = vmbus_interrupt ;
319
322
shared_sint .masked = false;
320
323
You can’t perform that action at this time.
0 commit comments