PPrithivish Shivdasanikvm: replace __KVM_HAVE_READONLY_MEM with Kconfig symbol
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
kvm: replace __KVM_HAVE_READONLY_MEM with Kconfig symbol mainline inclusion from mainline-v6.8-rc1 commit 8886640dade4ae2595fcdce511c8bcc716aa47d3 category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/9555 CVE: NA Reference: https://github.com/torvalds/linux/commit/8886640dade4ae2595fcdce511c8bcc716aa47d3 -------------------------------- commit 8886640dade4ae2595fcdce511c8bcc716aa47d3 upstream KVM uses __KVM_HAVE_* symbols in the architecture-dependent uapi/asm/kvm.h to mask unused definitions in include/uapi/linux/kvm.h. __KVM_HAVE_READONLY_MEM however was nothing but a misguided attempt to define KVM_CAP_READONLY_MEM only on architectures where KVM_CHECK_EXTENSION(KVM_CAP_READONLY_MEM) could possibly return nonzero. This however does not make sense, and it prevented userspace from supporting this architecture-independent feature without recompilation. Therefore, these days __KVM_HAVE_READONLY_MEM does not mask anything and is only used in virt/kvm/kvm_main.c. Userspace does not need to test it and there should be no need for it to exist. Remove it and replace it with a Kconfig symbol within Linux source code. [Backport Changes] 1. In virt/kvm/kvm_main.c, the upstream hunk converting the '#ifdef CONFIG_HAVE_KVM_READONLY_MEM' was skipped, since the current source tree already contains the required changes. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: PrithivishS <sprithiv@amd.com> | 9 天前 | |
Revert "irqbypass: do not start cons/prod when failed connect" This reverts commit a979a6aa009f3c99689432e0cdb5402a4463fb88. The reverted commit may cause VM freeze on arm64 with GICv4, where stopping a consumer is implemented by suspending the VM. Should the connect fail, the VM will not be resumed, which is a bit of a problem. It also erroneously calls the producer destructor unconditionally, which is unexpected. Reported-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Suggested-by: Marc Zyngier <maz@kernel.org> Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> [maz: tags and cc-stable, commit message update] Signed-off-by: Marc Zyngier <maz@kernel.org> Fixes: a979a6aa009f ("irqbypass: do not start cons/prod when failed connect") Link: https://lore.kernel.org/r/3a2c66d6-6ca0-8478-d24b-61e8e3241b20@hisilicon.com Link: https://lore.kernel.org/r/20210508071152.722425-1-lingshan.zhu@intel.com Cc: stable@vger.kernel.org | 5 年前 | |
treewide: Add SPDX license identifier - Makefile/Kconfig Add SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any form These files fall under the project license, GPL v2 only. The resulting SPDX license identifier is: GPL-2.0-only Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 7 年前 |