mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
hv: Leave interrupts disabled during vmexit - ACRN partition mode
Since vmexit handling in ACRN partition mode is not complex (since no SOS and all devices passthru), interrupts can stay disabled in root mode during vmexit handling. Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
wenlingz
parent
348422dba6
commit
43741ba5e3
@@ -367,17 +367,25 @@ void wait_sync_change(uint64_t *sync, uint64_t wake_sync);
|
||||
"a" (msrl), "d" (msrh)); \
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
#define CPU_IRQ_DISABLE()
|
||||
#else
|
||||
/* Disables interrupts on the current CPU */
|
||||
#define CPU_IRQ_DISABLE() \
|
||||
{ \
|
||||
asm volatile ("cli\n" : : : "cc"); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
#define CPU_IRQ_ENABLE()
|
||||
#else
|
||||
/* Enables interrupts on the current CPU */
|
||||
#define CPU_IRQ_ENABLE() \
|
||||
{ \
|
||||
asm volatile ("sti\n" : : : "cc"); \
|
||||
}
|
||||
#endif
|
||||
|
||||
/* This macro writes the stack pointer. */
|
||||
#define CPU_SP_WRITE(stack_ptr) \
|
||||
|
||||
Reference in New Issue
Block a user