提交 474b148d 编写于 作者: O Oliver Upton 提交者: Zheng Zengkai

entry: KVM: Allow use of generic KVM entry w/o full generic support

mainline inclusion
from mainline-v5.14
commit e1c6b9e1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4VZJT
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e1c6b9e1669e44fb7f9688e34e460b759e3b9187

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

Some architectures (e.g. arm64) have yet to adopt the generic entry
infrastructure. Despite that, it would be nice to use some common
plumbing for guest entry/exit handling. For example, KVM/arm64 currently
does not handle TIF_NOTIFY_PENDING correctly.

Allow use of only the generic KVM entry code by tightening up the
include list. No functional change intended.
Signed-off-by: NOliver Upton <oupton@google.com>
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210802192809.1851010-3-oupton@google.comSigned-off-by: NZhang Qiao <zhangqiao22@huawei.com>
Reviewed-by: NKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 12812921
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
#ifndef __LINUX_ENTRYKVM_H #ifndef __LINUX_ENTRYKVM_H
#define __LINUX_ENTRYKVM_H #define __LINUX_ENTRYKVM_H
#include <linux/entry-common.h> #include <linux/static_call_types.h>
#include <linux/tracehook.h>
#include <linux/syscalls.h>
#include <linux/seccomp.h>
#include <linux/sched.h>
/* Transfer to guest mode work */ /* Transfer to guest mode work */
#ifdef CONFIG_KVM_XFER_TO_GUEST_WORK #ifdef CONFIG_KVM_XFER_TO_GUEST_WORK
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册