[PATCH 02/14] accel/mshv: move msr.c to target/i386

Anirudh Rayabharam (Microsoft) posted 14 patches 3 weeks, 6 days ago
Maintainers: Magnus Kulke <magnuskulke@linux.microsoft.com>, Wei Liu <wei.liu@kernel.org>, Peter Maydell <peter.maydell@linaro.org>, Anirudh Rayabharam <anirudh@anirudhrb.com>, Aastha Rawat <aastharawat@linux.microsoft.com>, Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
There is a newer version of this series
[PATCH 02/14] accel/mshv: move msr.c to target/i386
Posted by Anirudh Rayabharam 3 weeks, 6 days ago
From: Aastha Rawat <aastharawat@linux.microsoft.com>

This file has x86 specific implementations. Move this file to i386
folder in preparation for ARM64 MSHV support.

Signed-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>
---
 accel/mshv/meson.build            | 1 -
 target/i386/mshv/meson.build      | 1 +
 {accel => target/i386}/mshv/msr.c | 0
 3 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/accel/mshv/meson.build b/accel/mshv/meson.build
index c1b1787c5e..e433187cde 100644
--- a/accel/mshv/meson.build
+++ b/accel/mshv/meson.build
@@ -1,6 +1,5 @@
 system_ss.add(when: 'CONFIG_MSHV', if_true: files(
   'irq.c',
   'mem.c',
-  'msr.c',
   'mshv-all.c'
 ))
diff --git a/target/i386/mshv/meson.build b/target/i386/mshv/meson.build
index 49f28d4a5b..6091c21887 100644
--- a/target/i386/mshv/meson.build
+++ b/target/i386/mshv/meson.build
@@ -2,6 +2,7 @@ i386_mshv_ss = ss.source_set()
 
 i386_mshv_ss.add(files(
   'mshv-cpu.c',
+  'msr.c',
 ))
 
 i386_system_ss.add_all(when: 'CONFIG_MSHV', if_true: i386_mshv_ss)
diff --git a/accel/mshv/msr.c b/target/i386/mshv/msr.c
similarity index 100%
rename from accel/mshv/msr.c
rename to target/i386/mshv/msr.c

-- 
2.43.0
Re: [PATCH 02/14] accel/mshv: move msr.c to target/i386
Posted by Wei Liu 3 weeks, 6 days ago
On Wed, Mar 11, 2026 at 03:15:29PM +0000, Anirudh Rayabharam wrote:
> From: Aastha Rawat <aastharawat@linux.microsoft.com>
> 
> This file has x86 specific implementations. Move this file to i386
> folder in preparation for ARM64 MSHV support.
> 
> Signed-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>

Acked-by: Wei Liu <wei.liu@kernel.org>
Re: [PATCH 02/14] accel/mshv: move msr.c to target/i386
Posted by Mohamed Mediouni 3 weeks, 6 days ago

> On 11. Mar 2026, at 16:15, Anirudh Rayabharam <anirudh@anirudhrb.com> wrote:
> 
> From: Aastha Rawat <aastharawat@linux.microsoft.com>
> 
> This file has x86 specific implementations. Move this file to i386
> folder in preparation for ARM64 MSHV support.
> 
> Signed-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>
Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>
> 
> ---
> accel/mshv/meson.build            | 1 -
> target/i386/mshv/meson.build      | 1 +
> {accel => target/i386}/mshv/msr.c | 0
> 3 files changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/accel/mshv/meson.build b/accel/mshv/meson.build
> index c1b1787c5e..e433187cde 100644
> --- a/accel/mshv/meson.build
> +++ b/accel/mshv/meson.build
> @@ -1,6 +1,5 @@
> system_ss.add(when: 'CONFIG_MSHV', if_true: files(
>   'irq.c',
>   'mem.c',
> -  'msr.c',
>   'mshv-all.c'
> ))
> diff --git a/target/i386/mshv/meson.build b/target/i386/mshv/meson.build
> index 49f28d4a5b..6091c21887 100644
> --- a/target/i386/mshv/meson.build
> +++ b/target/i386/mshv/meson.build
> @@ -2,6 +2,7 @@ i386_mshv_ss = ss.source_set()
> 
> i386_mshv_ss.add(files(
>   'mshv-cpu.c',
> +  'msr.c',
> ))
> 
> i386_system_ss.add_all(when: 'CONFIG_MSHV', if_true: i386_mshv_ss)
> diff --git a/accel/mshv/msr.c b/target/i386/mshv/msr.c
> similarity index 100%
> rename from accel/mshv/msr.c
> rename to target/i386/mshv/msr.c
> 
> -- 
> 2.43.0
> 
>