From e4a3a63496180b398e3c8e49ed615405357de9ef Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Fri, 18 Jan 2019 09:01:37 +0800 Subject: [PATCH] acrn/vhm: change the default notification vector to 0xF3 Currently the SOS kernel will call hcall_set_callback_vector to config the expected up-notification vector(0xF3) and then hypervisor uses the passed vector to raise the interrupt to SOS when needed. As sos kernel already switches to 0xF3 notification vector, the default notification vector can be changed from 0xF7 to 0xF3. In such case it still can work well even when the SOS kernel doesn't reconfigure the notification vector. Tracked-On: projectacrn/acrn-hypervisor#2355 Acked-by: Eddie Dong Signed-off-by: Zhao Yakui --- hypervisor/common/hypercall.c | 2 +- hypervisor/common/io_request.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hypervisor/common/hypercall.c b/hypervisor/common/hypercall.c index 6a2df2ac8..28d6370f4 100644 --- a/hypervisor/common/hypercall.c +++ b/hypervisor/common/hypercall.c @@ -1118,7 +1118,7 @@ int32_t hcall_vm_intr_monitor(struct acrn_vm *vm, uint16_t vmid, uint64_t param) * @brief set upcall notifier vector * * This is the API that helps to switch the notifer vecotr. If this API is - * not called, the hypervisor will use the default notifier vector(0xF7) + * not called, the hypervisor will use the default notifier vector(0xF3) * to notify the SOS kernel. * * @param vm Pointer to VM data structure diff --git a/hypervisor/common/io_request.c b/hypervisor/common/io_request.c index fe471653a..39fb6aef0 100644 --- a/hypervisor/common/io_request.c +++ b/hypervisor/common/io_request.c @@ -7,7 +7,7 @@ #define ACRN_DBG_IOREQUEST 6U -static uint32_t acrn_vhm_vector = VECTOR_VIRT_IRQ_VHM; +static uint32_t acrn_vhm_vector = VECTOR_HYPERVISOR_CALLBACK_VHM; static void fire_vhm_interrupt(void) {