Commit 88f6a504 authored by Zhang Yi's avatar Zhang Yi Committed by guzitao
Browse files

sw64: kvm: optimize external interrupts assignment for guest

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56WV8



--------------------------------

Target cpu for all external interrupts of guest os was assigned by
hypervisor. However, it's not a common solution and it will cause
system crash in cpu hotplug.

This patch optimizes the assignment policy. Target cpu and target
vector for MSI of guest are assigned by itself. Target cpu of other
external interrupts is bound to vCPU0 by hypervisor.

Signed-off-by: default avatarZhang Yi <zhangyi@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent ba044d2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment