Re: [PATCH v6 4/4] KVM: selftests: Add test cases for LoongArch

From: maobibo
Date: Sun Jan 28 2024 - 20:28:28 EST




On 2024/1/27 上午4:28, Sean Christopherson wrote:
On Thu, Jan 25, 2024, Bibo Mao wrote:
diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c
index 075b80dbe237..7b09e59296be 100644
--- a/tools/testing/selftests/kvm/set_memory_region_test.c
+++ b/tools/testing/selftests/kvm/set_memory_region_test.c
@@ -333,7 +333,7 @@ static void test_invalid_memory_region_flags(void)
struct kvm_vm *vm;
int r, i;
-#if defined __aarch64__ || defined __x86_64__
+#if defined __aarch64__ || defined __x86_64__ || __loongarch__

I assume that last one wants to be "defined __loongarch__"
Good catch, it should be "defined __loongarch__". And I will refresh
the patch in the next version.

Regards
Bibo Mao

supported_flags |= KVM_MEM_READONLY;
#endif
--
2.39.3