i386/pc: Drop pc_machine_kvm_type()
PATCH 1/1 i386/pc: Drop pc_machine_kvm_type()
pc_machine_kvm_type() was introduced by commit e21be724eaf5 ("i386/xen:
add pc_machine_kvm_type to initialize XEN_EMULATE mode") to do Xen specific initialization by utilizing kvm_type method.
commit eeedfe6c6316 ("hw/xen: Simplify emulated Xen platform init") moves the Xen specific initialization to pc_basic_device_init().
There is no need to keep the PC specific kvm_type() implementation anymore. So we'll fallback to kvm_arch_get_default_type(), which simply returns 0.
--- hw/i386/pc.c | 5 ----- include/hw/i386/pc.h | 3 --- 2 files changed, 8 deletions(-)
hw/i386/pc.c +0 -5
@@ -1730,11 +1730,6 @@ static void pc_machine_initfn(Object *obj)cxl_machine_init (obj, &pcms->cxl_devices_state); } -int pc_machine_kvm_type (MachineState *machine,const char *kvm_type) -{ -return 0 ; -} -static void pc_machine_reset (MachineState *machine,ShutdownCause reason) {CPUState *cs;
include/hw/i386/pc.h +0 -3
@@ -305,15 +305,12 @@ extern const size_t pc_compat_1_5_len;extern GlobalProperty pc_compat_1_4[];extern const size_t pc_compat_1_4_len; -int pc_machine_kvm_type (MachineState *machine,const char *vm_type); -#define DEFINE_PC_MACHINE (suffix, namestr, initfn, optsfn) \ static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \ { \ MachineClass *mc = MACHINE_CLASS(oc); \ optsfn(mc); \ mc->init = initfn; \ - mc->kvm_type = pc_machine_kvm_type; \ } \ static const TypeInfo pc_machine_type_##suffix = { \ .name = namestr TYPE_MACHINE_SUFFIX, \
base-commit: 2f3913f4b2ad74baeb5a6f1d36efbd9ecdf1057d
Signature · 1 line
2.34.1
Quoted 7 lines · Xiaoyao Li
pc_machine_kvm_type()was introduced by commite21be724eaf5("i386/xen:
addpc_machine_kvm_typeto initializeXEN_EMULATEmode") to do Xen specific initialization by utilizingkvm_typemethod.commit
eeedfe6c6316("hw/xen: Simplify emulated Xen platform init") moves the Xen specific initialization topc_basic_device_init().
Quoted 8 lines
There is no need to keep the PC specific
kvm_type()implementation anymore. So we'll fallback tokvm_arch_get_default_type(), which simply returns 0.Signed-off-by Xiaoyao Li <[email protected]>Reviewed-by Isaku Yamahata <[email protected]>Reviewed-by David Hildenbrand <[email protected]>Acked-by David Woodhouse <[email protected]>
Seems ok
kvm thing so please merge through that tree.
Quoted 45 lines
--- hw/i386/pc.c | 5 ----- include/hw/i386/pc.h | 3 --- 2 files changed, 8 deletions(-)hw/i386/pc.c +0
-5@@ -1730,11 +1730,6 @@ static void pc_machine_initfn(Object *obj)cxl_machine_init (obj, &pcms->cxl_devices_state); } -int pc_machine_kvm_type (MachineState *machine,const char *kvm_type) -{ -return 0 ; -} -static void pc_machine_reset (MachineState *machine,ShutdownCause reason) {CPUState *cs;include/hw/i386/pc.h +0
-3@@ -305,15 +305,12 @@ extern const size_t pc_compat_1_5_len;extern GlobalProperty pc_compat_1_4[];extern const size_t pc_compat_1_4_len; -int pc_machine_kvm_type (MachineState *machine,const char *vm_type); -#define DEFINE_PC_MACHINE (suffix, namestr, initfn, optsfn) \ static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \ { \ MachineClass *mc = MACHINE_CLASS(oc); \ optsfn(mc); \ mc->init = initfn; \ - mc->kvm_type = pc_machine_kvm_type; \ } \ static const TypeInfo pc_machine_type_##suffix = { \ .name = namestr TYPE_MACHINE_SUFFIX, \base-commit:
2f3913f4b2ad74baeb5a6f1d36efbd9ecdf1057dSignature · 1 line
2.34.1
Quoted 12 lines · Michael S. Tsirkin
Quoted 11 lines · Xiaoyao Li
pc_machine_kvm_type()was introduced by commite21be724eaf5("i386/xen:
addpc_machine_kvm_typeto initializeXEN_EMULATEmode") to do Xen specific initialization by utilizingkvm_typemethod.commit
eeedfe6c6316("hw/xen: Simplify emulated Xen platform init") moves the Xen specific initialization topc_basic_device_init().There is no need to keep the PC specific
kvm_type()implementation anymore. So we'll fallback tokvm_arch_get_default_type(), which simply returns 0.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Xiaoyao Li <[email protected]>Reviewed-by Isaku Yamahata <[email protected]>Reviewed-by David Hildenbrand <[email protected]>Acked-by David Woodhouse <[email protected]>Seems ok
Thanks, Michael!
Quoted 1 line
kvm thing so please merge through that tree.
Paolo, would you please handle it?
Quoted 47 lines
Quoted 46 lines
--- hw/i386/pc.c | 5 ----- include/hw/i386/pc.h | 3 --- 2 files changed, 8 deletions(-)hw/i386/pc.c +0
-5@@ -1730,11 +1730,6 @@ static void pc_machine_initfn(Object *obj)cxl_machine_init (obj, &pcms->cxl_devices_state); } -int pc_machine_kvm_type (MachineState *machine,const char *kvm_type) -{ -return 0 ; -} -static void pc_machine_reset (MachineState *machine,ShutdownCause reason) {CPUState *cs;include/hw/i386/pc.h +0
-3@@ -305,15 +305,12 @@ extern const size_t pc_compat_1_5_len;extern GlobalProperty pc_compat_1_4[];extern const size_t pc_compat_1_4_len; -int pc_machine_kvm_type (MachineState *machine,const char *vm_type); -#define DEFINE_PC_MACHINE (suffix, namestr, initfn, optsfn) \ static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \ { \ MachineClass *mc = MACHINE_CLASS(oc); \ optsfn(mc); \ mc->init = initfn; \ - mc->kvm_type = pc_machine_kvm_type; \ } \ static const TypeInfo pc_machine_type_##suffix = { \ .name = namestr TYPE_MACHINE_SUFFIX, \base-commit:
2f3913f4b2ad74baeb5a6f1d36efbd9ecdf1057dSignature · 1 line
2.34.1
Quoted 17 lines · Michael S. Tsirkin
Quoted 7 lines · Xiaoyao Li
pc_machine_kvm_type()was introduced by commite21be724eaf5("i386/xen:
addpc_machine_kvm_typeto initializeXEN_EMULATEmode") to do Xen specific initialization by utilizingkvm_typemethod.commit
eeedfe6c6316("hw/xen: Simplify emulated Xen platform init") moves the Xen specific initialization topc_basic_device_init().Quoted 8 lines
There is no need to keep the PC specific
kvm_type()implementation anymore. So we'll fallback tokvm_arch_get_default_type(), which simply returns 0.Signed-off-by Xiaoyao Li <[email protected]>Reviewed-by Isaku Yamahata <[email protected]>Reviewed-by David Hildenbrand <[email protected]>Acked-by David Woodhouse <[email protected]>
Quoted 5 lines
Seems ok
kvm thing so please merge through that tree.
Ping.
Quoted 47 lines
Quoted 46 lines
--- hw/i386/pc.c | 5 ----- include/hw/i386/pc.h | 3 --- 2 files changed, 8 deletions(-)hw/i386/pc.c +0
-5@@ -1730,11 +1730,6 @@ static void pc_machine_initfn(Object *obj)cxl_machine_init (obj, &pcms->cxl_devices_state); } -int pc_machine_kvm_type (MachineState *machine,const char *kvm_type) -{ -return 0 ; -} -static void pc_machine_reset (MachineState *machine,ShutdownCause reason) {CPUState *cs;include/hw/i386/pc.h +0
-3@@ -305,15 +305,12 @@ extern const size_t pc_compat_1_5_len;extern GlobalProperty pc_compat_1_4[];extern const size_t pc_compat_1_4_len; -int pc_machine_kvm_type (MachineState *machine,const char *vm_type); -#define DEFINE_PC_MACHINE (suffix, namestr, initfn, optsfn) \ static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \ { \ MachineClass *mc = MACHINE_CLASS(oc); \ optsfn(mc); \ mc->init = initfn; \ - mc->kvm_type = pc_machine_kvm_type; \ } \ static const TypeInfo pc_machine_type_##suffix = { \ .name = namestr TYPE_MACHINE_SUFFIX, \base-commit:
2f3913f4b2ad74baeb5a6f1d36efbd9ecdf1057dSignature · 1 line
2.34.1
Paolo Bonzini
AppliedQueued, thanks.
Paolo