Skip to content

Commit

Permalink
acrn/vhm: change the default notification vector to 0xF3
Browse files Browse the repository at this point in the history
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: #2355 
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
  • Loading branch information
yakuizhao authored and wenlingz committed Jan 18, 2019
1 parent f45605d commit e4a3a63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hypervisor/common/hypercall.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hypervisor/common/io_request.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit e4a3a63

Please sign in to comment.