From: Greg Kroah-Hartman Date: Thu, 6 Jun 2024 13:02:01 +0000 (+0200) Subject: fix up kvm patch X-Git-Tag: v6.1.93~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96a62709a8fdedffe0fd0555dc94cfc840c292a1;p=thirdparty%2Fkernel%2Fstable-queue.git fix up kvm patch --- diff --git a/queue-6.1/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch b/queue-6.1/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch index 07f52d9239a..95228382101 100644 --- a/queue-6.1/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch +++ b/queue-6.1/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch @@ -20,14 +20,20 @@ Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton Signed-off-by: Sasha Levin --- - .../testing/selftests/kvm/aarch64/vgic_init.c | 49 +++++++++++++++++++ - 1 file changed, 49 insertions(+) + tools/testing/selftests/kvm/aarch64/vgic_init.c | 50 ++++++++++++++++++++++++ + 1 file changed, 50 insertions(+) -diff --git a/tools/testing/selftests/kvm/aarch64/vgic_init.c b/tools/testing/selftests/kvm/aarch64/vgic_init.c -index 9c131d977a1b5..ef737d0ed8fcb 100644 --- a/tools/testing/selftests/kvm/aarch64/vgic_init.c +++ b/tools/testing/selftests/kvm/aarch64/vgic_init.c -@@ -86,6 +86,18 @@ static struct vm_gic vm_gic_create_with_vcpus(uint32_t gic_dev_type, +@@ -6,6 +6,7 @@ + */ + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +@@ -86,6 +87,18 @@ static struct vm_gic vm_gic_create_with_ return v; } @@ -46,7 +52,7 @@ index 9c131d977a1b5..ef737d0ed8fcb 100644 static void vm_gic_destroy(struct vm_gic *v) { close(v->gic_fd); -@@ -359,6 +371,40 @@ static void test_vcpus_then_vgic(uint32_t gic_dev_type) +@@ -359,6 +372,40 @@ static void test_vcpus_then_vgic(uint32_ vm_gic_destroy(&v); } @@ -87,7 +93,7 @@ index 9c131d977a1b5..ef737d0ed8fcb 100644 static void test_v3_new_redist_regions(void) { struct kvm_vcpu *vcpus[NR_VCPUS]; -@@ -677,6 +723,9 @@ void run_tests(uint32_t gic_dev_type) +@@ -677,6 +724,9 @@ void run_tests(uint32_t gic_dev_type) test_vcpus_then_vgic(gic_dev_type); test_vgic_then_vcpus(gic_dev_type); @@ -97,6 +103,3 @@ index 9c131d977a1b5..ef737d0ed8fcb 100644 if (VGIC_DEV_IS_V3(gic_dev_type)) { test_v3_new_redist_regions(); test_v3_typer_accesses(); --- -2.43.0 - diff --git a/queue-6.6/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch b/queue-6.6/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch index d16919ef2ba..fbc1b277ddd 100644 --- a/queue-6.6/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch +++ b/queue-6.6/kvm-selftests-add-test-for-uaccesses-to-non-existent.patch @@ -20,14 +20,20 @@ Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton Signed-off-by: Sasha Levin --- - .../testing/selftests/kvm/aarch64/vgic_init.c | 49 +++++++++++++++++++ - 1 file changed, 49 insertions(+) + tools/testing/selftests/kvm/aarch64/vgic_init.c | 50 ++++++++++++++++++++++++ + 1 file changed, 50 insertions(+) -diff --git a/tools/testing/selftests/kvm/aarch64/vgic_init.c b/tools/testing/selftests/kvm/aarch64/vgic_init.c -index eef816b80993f..ca917c71ff602 100644 --- a/tools/testing/selftests/kvm/aarch64/vgic_init.c +++ b/tools/testing/selftests/kvm/aarch64/vgic_init.c -@@ -84,6 +84,18 @@ static struct vm_gic vm_gic_create_with_vcpus(uint32_t gic_dev_type, +@@ -6,6 +6,7 @@ + */ + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +@@ -84,6 +85,18 @@ static struct vm_gic vm_gic_create_with_ return v; } @@ -46,7 +52,7 @@ index eef816b80993f..ca917c71ff602 100644 static void vm_gic_destroy(struct vm_gic *v) { close(v->gic_fd); -@@ -357,6 +369,40 @@ static void test_vcpus_then_vgic(uint32_t gic_dev_type) +@@ -357,6 +370,40 @@ static void test_vcpus_then_vgic(uint32_ vm_gic_destroy(&v); } @@ -87,7 +93,7 @@ index eef816b80993f..ca917c71ff602 100644 static void test_v3_new_redist_regions(void) { struct kvm_vcpu *vcpus[NR_VCPUS]; -@@ -675,6 +721,9 @@ void run_tests(uint32_t gic_dev_type) +@@ -675,6 +722,9 @@ void run_tests(uint32_t gic_dev_type) test_vcpus_then_vgic(gic_dev_type); test_vgic_then_vcpus(gic_dev_type); @@ -97,6 +103,3 @@ index eef816b80993f..ca917c71ff602 100644 if (VGIC_DEV_IS_V3(gic_dev_type)) { test_v3_new_redist_regions(); test_v3_typer_accesses(); --- -2.43.0 -