* [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c
@ 2023-09-05 14:51 Philippe Mathieu-Daudé
2023-11-22 14:31 ` [PATCH-for-9.0] " Philippe Mathieu-Daudé
2023-11-23 10:14 ` [PATCH] " Paolo Bonzini
0 siblings, 2 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-09-05 14:51 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Paolo Bonzini, Richard Henderson,
Marcel Apfelbaum, Michael S. Tsirkin, Thomas Huth,
Philippe Mathieu-Daudé
vAPIC isn't KVM specific, so having its name prefixed 'kvm'
is misleading. Rename it simply 'vapic'. Rename the single
function prefixed 'kvm'.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Interestingly there is a strong dependency on (Kconfig) APIC,
but I couldn't get a single x86 machine building without the
Kconfig 'APIC' key.
---
hw/i386/{kvmvapic.c => vapic.c} | 5 ++---
hw/i386/meson.build | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
rename hw/i386/{kvmvapic.c => vapic.c} (99%)
diff --git a/hw/i386/kvmvapic.c b/hw/i386/vapic.c
similarity index 99%
rename from hw/i386/kvmvapic.c
rename to hw/i386/vapic.c
index 43f8a8f679..35e3a56b35 100644
--- a/hw/i386/kvmvapic.c
+++ b/hw/i386/vapic.c
@@ -747,8 +747,7 @@ static void do_vapic_enable(CPUState *cs, run_on_cpu_data data)
s->state = VAPIC_ACTIVE;
}
-static void kvmvapic_vm_state_change(void *opaque, bool running,
- RunState state)
+static void vapic_vm_state_change(void *opaque, bool running, RunState state)
{
MachineState *ms = MACHINE(qdev_get_machine());
VAPICROMState *s = opaque;
@@ -793,7 +792,7 @@ static int vapic_post_load(void *opaque, int version_id)
if (!s->vmsentry) {
s->vmsentry =
- qemu_add_vm_change_state_handler(kvmvapic_vm_state_change, s);
+ qemu_add_vm_change_state_handler(vapic_vm_state_change, s);
}
return 0;
}
diff --git a/hw/i386/meson.build b/hw/i386/meson.build
index cfdbfdcbcb..4909703a89 100644
--- a/hw/i386/meson.build
+++ b/hw/i386/meson.build
@@ -1,7 +1,7 @@
i386_ss = ss.source_set()
i386_ss.add(files(
'fw_cfg.c',
- 'kvmvapic.c',
+ 'vapic.c',
'e820_memory_layout.c',
'multiboot.c',
'x86.c',
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH-for-9.0] hw/i386: Rename kvmvapic.c -> vapic.c
2023-09-05 14:51 [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c Philippe Mathieu-Daudé
@ 2023-11-22 14:31 ` Philippe Mathieu-Daudé
2023-11-23 10:14 ` [PATCH] " Paolo Bonzini
1 sibling, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-11-22 14:31 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Paolo Bonzini, Richard Henderson,
Marcel Apfelbaum, Michael S. Tsirkin, Thomas Huth
Ping for review?
Otherwise I plan to merge this when 9.0 opens.
Thanks, Phil.
On 5/9/23 16:51, Philippe Mathieu-Daudé wrote:
> vAPIC isn't KVM specific, so having its name prefixed 'kvm'
> is misleading. Rename it simply 'vapic'. Rename the single
> function prefixed 'kvm'.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Interestingly there is a strong dependency on (Kconfig) APIC,
> but I couldn't get a single x86 machine building without the
> Kconfig 'APIC' key.
> ---
> hw/i386/{kvmvapic.c => vapic.c} | 5 ++---
> hw/i386/meson.build | 2 +-
> 2 files changed, 3 insertions(+), 4 deletions(-)
> rename hw/i386/{kvmvapic.c => vapic.c} (99%)
>
> diff --git a/hw/i386/kvmvapic.c b/hw/i386/vapic.c
> similarity index 99%
> rename from hw/i386/kvmvapic.c
> rename to hw/i386/vapic.c
> index 43f8a8f679..35e3a56b35 100644
> --- a/hw/i386/kvmvapic.c
> +++ b/hw/i386/vapic.c
> @@ -747,8 +747,7 @@ static void do_vapic_enable(CPUState *cs, run_on_cpu_data data)
> s->state = VAPIC_ACTIVE;
> }
>
> -static void kvmvapic_vm_state_change(void *opaque, bool running,
> - RunState state)
> +static void vapic_vm_state_change(void *opaque, bool running, RunState state)
> {
> MachineState *ms = MACHINE(qdev_get_machine());
> VAPICROMState *s = opaque;
> @@ -793,7 +792,7 @@ static int vapic_post_load(void *opaque, int version_id)
>
> if (!s->vmsentry) {
> s->vmsentry =
> - qemu_add_vm_change_state_handler(kvmvapic_vm_state_change, s);
> + qemu_add_vm_change_state_handler(vapic_vm_state_change, s);
> }
> return 0;
> }
> diff --git a/hw/i386/meson.build b/hw/i386/meson.build
> index cfdbfdcbcb..4909703a89 100644
> --- a/hw/i386/meson.build
> +++ b/hw/i386/meson.build
> @@ -1,7 +1,7 @@
> i386_ss = ss.source_set()
> i386_ss.add(files(
> 'fw_cfg.c',
> - 'kvmvapic.c',
> + 'vapic.c',
> 'e820_memory_layout.c',
> 'multiboot.c',
> 'x86.c',
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c
2023-09-05 14:51 [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c Philippe Mathieu-Daudé
2023-11-22 14:31 ` [PATCH-for-9.0] " Philippe Mathieu-Daudé
@ 2023-11-23 10:14 ` Paolo Bonzini
2023-11-23 11:28 ` Philippe Mathieu-Daudé
1 sibling, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2023-11-23 10:14 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Eduardo Habkost, Richard Henderson, Marcel Apfelbaum,
Michael S. Tsirkin, Thomas Huth
[-- Attachment #1: Type: text/plain, Size: 590 bytes --]
Il mar 5 set 2023, 16:52 Philippe Mathieu-Daudé <philmd@linaro.org> ha
scritto:
> vAPIC isn't KVM specific, so having its name prefixed 'kvm'
> is misleading. Rename it simply 'vapic'. Rename the single
> function prefixed 'kvm'.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Interestingly there is a strong dependency on (Kconfig) APIC,
> but I couldn't get a single x86 machine building without the
> Kconfig 'APIC' key.
>
In theory ISAPC could be built without APIC. But it isn't quite there.
You can go ahead and queue it, thanks!
Paolo
[-- Attachment #2: Type: text/html, Size: 1131 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c
2023-11-23 10:14 ` [PATCH] " Paolo Bonzini
@ 2023-11-23 11:28 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-11-23 11:28 UTC (permalink / raw)
To: Paolo Bonzini
Cc: qemu-devel, Eduardo Habkost, Richard Henderson, Marcel Apfelbaum,
Michael S. Tsirkin, Thomas Huth
On 23/11/23 11:14, Paolo Bonzini wrote:
>
>
> Il mar 5 set 2023, 16:52 Philippe Mathieu-Daudé <philmd@linaro.org
> <mailto:philmd@linaro.org>> ha scritto:
>
> vAPIC isn't KVM specific, so having its name prefixed 'kvm'
> is misleading. Rename it simply 'vapic'. Rename the single
> function prefixed 'kvm'.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org
> <mailto:philmd@linaro.org>>
> ---
> Interestingly there is a strong dependency on (Kconfig) APIC,
> but I couldn't get a single x86 machine building without the
> Kconfig 'APIC' key.
>
>
> In theory ISAPC could be built without APIC. But it isn't quite there.
Ah I see, I'll keep that in mind.
> You can go ahead and queue it, thanks!
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-23 11:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 14:51 [PATCH] hw/i386: Rename kvmvapic.c -> vapic.c Philippe Mathieu-Daudé
2023-11-22 14:31 ` [PATCH-for-9.0] " Philippe Mathieu-Daudé
2023-11-23 10:14 ` [PATCH] " Paolo Bonzini
2023-11-23 11:28 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).