Skip to contentSkip to conversation

kvm: minor fixes and cleanups

PATCH Applied Like Xu 2 participants 7 messages Apr 6, 2022 – Apr 9, 2022

Subsystems (6)
Documentation x86 KVM Kselftest +2 more subsystems
lore
Share & tools
lore

Like Xu

author
#0 lore raw

cover kvm: minor fixes and cleanups

Another new kernel cycle starts ticking and my bot seems to have some complaints about some new changes. Please check if any of them helps.

Like Xu (4):
KVM: x86/xen: Remove the redundantly included header file lapic.h
selftests: kvm: add tsc_scaling_sync to .gitignore
selftests: kvm/x86/xen: Replace a comma in the xen_shinfo_test with
semicolon
Documentation: KVM: Add SPDX-License-Identifier tag

 Documentation/virt/kvm/vcpu-requests.rst             | 2 ++
 Documentation/virt/kvm/x86/amd-memory-encryption.rst | 2 ++
 Documentation/virt/kvm/x86/errata.rst                | 2 +-
 Documentation/virt/kvm/x86/running-nested-guests.rst | 2 ++
 arch/x86/kvm/xen.c                                   | 1 -
 tools/testing/selftests/kvm/.gitignore               | 1 +
 tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 2 +-
 7 files changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.35.1
author
#1 lore raw

PATCH 1/4 KVM: x86/xen: Remove the redundantly included header file lapic.h

The header lapic.h is included more than once, remove one of them.

---
Note: repeated as https://lore.kernel.org/kvm/[email protected]/

 arch/x86/kvm/xen.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kvm/xen.c +0 -1
index 7e7c8a5bff52..610beba35907 100644
@@ -8,7 +8,6 @@
 
 #include "x86.h"
 #include "xen.h"
-#include "lapic.h"
 #include "hyperv.h"
 #include "lapic.h"
 
Signature · 1 line
2.35.1
author
#2 lore raw

PATCH 2/4 selftests: kvm: add tsc_scaling_sync to .gitignore

In reply to Like Xu

The tsc_scaling_sync's binary should be present in the .gitignore file for the git to ignore it.

---
Note: hyperv_svm_test has been added in the upstream commit 946ad0499d98.

 tools/testing/selftests/kvm/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/kvm/.gitignore +1 -0
index 1f1b6c978bf7..84d5bcf93f8b 100644
@@ -33,6 +33,7 @@
 /x86_64/state_test
 /x86_64/svm_vmcall_test
 /x86_64/svm_int_ctl_test
+/x86_64/tsc_scaling_sync
 /x86_64/sync_regs_test
 /x86_64/tsc_msrs_test
 /x86_64/userspace_io_test
Signature · 1 line
2.35.1
author
#3 lore raw

PATCH 3/4 selftests: kvm/x86/xen: Replace a comma in the xen_shinfo_test with semicolon

In reply to Like Xu

+WARNING: Possible comma where semicolon could be used +#397: FILE: tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c:700:
++ tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER,
++ vcpu_ioctl(vm, VCPU_ID, KVM_XEN_VCPU_GET_ATTR, &tmr);

Fixes 25eaeebe710c ("KVM: x86/xen: Add self tests for KVM_XEN_HVM_CONFIG_EVTCHN_SEND")
---
 tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c +1 -1
index d9d9d1deec45..5e6f40633ea6 100644
@@ -702,7 +702,7 @@ int main(int argc, char *argv[])
 
 			case 14:
 				memset(&tmr, 0, sizeof(tmr));
-				tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER,
+				tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER;
 				vcpu_ioctl(vm, VCPU_ID, KVM_XEN_VCPU_GET_ATTR, &tmr);
 				TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER,
 					    "Timer port not returned");
Signature · 1 line
2.35.1
author
#4 lore raw

PATCH 4/4 Documentation: KVM: Add SPDX-License-Identifier tag

In reply to Like Xu

+new file mode 100644
+WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 +#27: FILE: Documentation/virt/kvm/x86/errata.rst:1:

Opportunistically update all other non-added KVM documents and remove a new extra blank line at EOF for x86/errata.rst.

---
 Documentation/virt/kvm/vcpu-requests.rst             | 2 ++
 Documentation/virt/kvm/x86/amd-memory-encryption.rst | 2 ++
 Documentation/virt/kvm/x86/errata.rst                | 2 +-
 Documentation/virt/kvm/x86/running-nested-guests.rst | 2 ++
 4 files changed, 7 insertions(+), 1 deletion(-)
Documentation/virt/kvm/vcpu-requests.rst +2 -0
index db43ee571f5a..31f62b64e07b 100644
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: GPL-2.0
+
 =================
 KVM VCPU Requests
 =================
Documentation/virt/kvm/x86/amd-memory-encryption.rst +2 -0
index 1c6847fff304..2d307811978c 100644
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: GPL-2.0
+
 ======================================
 Secure Encrypted Virtualization (SEV)
 ======================================
Documentation/virt/kvm/x86/errata.rst +1 -1
index 806f049b6975..410e0aa63493 100644
@@ -1,3 +1,4 @@
+.. SPDX-License-Identifier: GPL-2.0
 
 =======================================
 Known limitations of CPU virtualization
@@ -36,4 +37,3 @@ Nested virtualization features
 ------------------------------
 
 TBD
-
Documentation/virt/kvm/x86/running-nested-guests.rst +2 -0
index bd70c69468ae..a27e6768d900 100644
@@ -1,3 +1,5 @@
+.. SPDX-License-Identifier: GPL-2.0
+
 ==============================
 Running nested guests with KVM
 ==============================
Signature · 1 line
2.35.1
author
#6 lore raw
Quoted 3 lines · Paolo Bonzini

Queued, thanks.

Paolo

Sorry, my carelessness may bring the following warning from linux-next:

WARNING: From:/Signed-off-by: email address mismatch:
'From: Like Xu <[email protected]>' != 'Signed-off-by: Like Xu <[email protected]>'

Please let me know if we need to tweak out a better new version.

Quoted 2 lines