hw/mips/malta: Add the 'malta-strict' machine, matching Malta hardware
v2 cover hw/mips/malta: Add the 'malta-strict' machine, matching Malta hardware
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: Introduce MaltaMachineClass::max_ramsize hw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machine
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)
Signature · 1 line
2.21.3
PATCH v2 1/6 hw/mips/malta: Trivial code movement
Trivial code movement to make the next patch easier to review.
--- hw/mips/malta.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
hw/mips/malta.c +7 -7
@@ -1426,6 +1426,13 @@ static const TypeInfo mips_malta_device = { .instance_size = sizeof(MaltaState), }; +static void mips_malta_register_types (void ) +{ +type_register_static (&mips_malta_device); +} + +type_init (mips_malta_register_types) + static void mips_malta_machine_init(MachineClass *mc) { mc->desc ="MIPS Malta Core LV" ;
@@ -1442,10 +1449,3 @@ static void mips_malta_machine_init(MachineClass *mc) }DEFINE_MACHINE ("malta" , mips_malta_machine_init) - -static void mips_malta_register_types (void ) -{ -type_register_static (&mips_malta_device); -} - -type_init (mips_malta_register_types)
Signature · 1 line
2.21.3
PATCH v2 2/6 hw/mips/malta: Register the machine as a TypeInfo
In reply to Philippe Mathieu-DaudéWe want to add more machines. First convert from the old DEFINE_MACHINE() API to the more recent DEFINE_TYPES(TypeInfo[]) one.
--- hw/mips/malta.c | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-)
hw/mips/malta.c +28 -4
@@ -70,6 +70,8 @@#define MAX_IDE_BUS 2 +#define TYPE_MALTA_MACHINE MACHINE_TYPE_NAME("malta-base") + typedef struct { MemoryRegion iomem; MemoryRegion iomem_lo; /* 0 - 0x900 */
@@ -1433,10 +1435,19 @@ static void mips_malta_register_types(void)type_init (mips_malta_register_types) -static void mips_malta_machine_init(MachineClass *mc) +static void malta_machine_common_class_init(ObjectClass *oc, void *data) { - mc->desc ="MIPS Malta Core LV" ; +MachineClass *mc =MACHINE_CLASS (oc); + mc->init = mips_malta_init; + mc->default_ram_id ="mips_malta.ram" ; +} + +static void malta_machine_default_class_init (ObjectClass *oc,void *data) +{ +MachineClass *mc =MACHINE_CLASS (oc); + + mc->desc ="MIPS Malta Core LV" ; mc->block_default_type =IF_IDE ; mc->max_cpus =16 ; mc->is_default = true;
@@ -1445,7 +1456,20 @@ static void mips_malta_machine_init(MachineClass *mc)#else mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("24Kf" );#endif - mc->default_ram_id ="mips_malta.ram" ; } -DEFINE_MACHINE ("malta" , mips_malta_machine_init) +static const TypeInfo malta_machine_types[] = { + { + .name =MACHINE_TYPE_NAME ("malta" ), + .parent =TYPE_MALTA_MACHINE , + .class_init = malta_machine_default_class_init, + }, + { + .name =TYPE_MALTA_MACHINE , + .parent =TYPE_MACHINE , + .class_init = malta_machine_common_class_init, + .abstract = true, + } +}; + +DEFINE_TYPES (malta_machine_types)
Signature · 1 line
2.21.3
PATCH v2 3/6 hw/mips/malta: Introduce MaltaMachineClass::max_ramsize
In reply to Philippe Mathieu-DaudéThe maximum RAM size is tied to the machine. First add the MaltaMachineClass, and add 'max_ramsize' to it. Set it to the current value of 2 GB, and adapt the code checking for the requested RAM is usable by the machine.
--- hw/mips/malta.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-)
hw/mips/malta.c +25 -5
@@ -56,6 +56,7 @@#include "sysemu/kvm.h" #include "hw/semihosting/semihost.h" #include "hw/mips/cps.h" +#include "qemu/cutils.h" #define ENVP_ADDR 0x80002000l#define ENVP_NB_ENTRIES 16
@@ -71,6 +72,17 @@#define MAX_IDE_BUS 2#define TYPE_MALTA_MACHINE MACHINE_TYPE_NAME("malta-base") +#define MALTA_MACHINE_CLASS (klass) \ + OBJECT_CLASS_CHECK(MaltaMachineClass, (klass), TYPE_MALTA_MACHINE) +#define MALTA_MACHINE_GET_CLASS (obj) \ + OBJECT_GET_CLASS(MaltaMachineClass, (obj), TYPE_MALTA_MACHINE) + +typedef struct MaltaMachineClass { +/* Private */ +MachineClass parent_obj; +/* Public */ +ram_addr_t max_ramsize; +}MaltaMachineClass ; typedef struct { MemoryRegion iomem;
@@ -1232,7 +1244,7 @@ void mips_malta_init(MachineState *machine)DriveInfo *dinfo;int fl_idx =0 ;int be; - +MaltaMachineClass *mmc =MALTA_MACHINE_GET_CLASS (machine);DeviceState *dev =qdev_new (TYPE_MIPS_MALTA );MaltaState *s =MIPS_MALTA (dev);
@@ -1248,10 +1260,16 @@ void mips_malta_init(MachineState *machine)/* create CPU */ mips_create_cpu (machine, s, &cbus_irq, &i8259_irq); -/* allocate RAM */ -if (ram_size >2 * GiB) { -error_report ("Too much memory for this machine: %" PRId64"MB," -" maximum 2048MB" , ram_size / MiB); +/* +* The GT-64120A north bridge accepts at most 256 MiB per SCS for +* address decoding, so we have a maximum of 1 GiB. We deliberately +* ignore this physical limitation. +*/ +if (ram_size > mmc->max_ramsize) { +char *maxsize_str =size_to_str (mmc->max_ramsize); +error_report ("Too much memory for this machine: %" PRId64" MiB," +" maximum %s" , ram_size / MiB, maxsize_str); +g_free (maxsize_str);exit (1 ); }
@@ -1446,6 +1464,7 @@ static void malta_machine_common_class_init(ObjectClass *oc, void *data)static void malta_machine_default_class_init (ObjectClass *oc,void *data) {MachineClass *mc =MACHINE_CLASS (oc); +MaltaMachineClass *mmc =MALTA_MACHINE_CLASS (oc); mc->desc ="MIPS Malta Core LV" ; mc->block_default_type =IF_IDE ;
@@ -1456,6 +1475,7 @@ static void malta_machine_default_class_init(ObjectClass *oc, void *data)#else mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("24Kf" );#endif + mmc->max_ramsize =2 * GiB; }static const TypeInfo malta_machine_types[] = {
Signature · 1 line
2.21.3
Re: [PATCH v2 3/6] hw/mips/malta: Introduce MaltaMachineClass::max_ramsize
Quoted 80 lines · Philippe Mathieu-Daudé
The maximum RAM size is tied to the machine. First add the MaltaMachineClass, and add '
max_ramsize' to it. Set it to the current value of 2 GB, and adapt the code checking for the requested RAM is usable by the machine.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/mips/malta.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-)hw/mips/malta.c +24
-5@@ -56,6 +56,7 @@#include "sysemu/kvm.h" #include "hw/semihosting/semihost.h" #include "hw/mips/cps.h" +#include "qemu/cutils.h" #define ENVP_ADDR 0x80002000l#define ENVP_NB_ENTRIES 16@@ -71,6 +72,17 @@#define MAX_IDE_BUS 2#define TYPE_MALTA_MACHINE MACHINE_TYPE_NAME("malta-base") +#define MALTA_MACHINE_CLASS (klass) \ + OBJECT_CLASS_CHECK(MaltaMachineClass, (klass), TYPE_MALTA_MACHINE) +#define MALTA_MACHINE_GET_CLASS (obj) \ + OBJECT_GET_CLASS(MaltaMachineClass, (obj), TYPE_MALTA_MACHINE) + +typedef struct MaltaMachineClass { +/* Private */ +MachineClass parent_obj; +/* Public */ +ram_addr_t max_ramsize; +}MaltaMachineClass ; typedef struct { MemoryRegion iomem;@@ -1232,7 +1244,7 @@ void mips_malta_init(MachineState *machine)DriveInfo *dinfo;int fl_idx =0 ;int be; - +MaltaMachineClass *mmc =MALTA_MACHINE_GET_CLASS (machine);DeviceState *dev =qdev_new (TYPE_MIPS_MALTA );MaltaState *s =MIPS_MALTA (dev);@@ -1248,10 +1260,16 @@ void mips_malta_init(MachineState *machine)/* create CPU */ mips_create_cpu (machine, s, &cbus_irq, &i8259_irq); -/* allocate RAM */ -if (ram_size >2 * GiB) { -error_report ("Too much memory for this machine: %" PRId64"MB," -" maximum 2048MB" , ram_size / MiB); +/* +* The GT-64120A north bridge accepts at most 256 MiB per SCS for +* address decoding, so we have a maximum of 1 GiB. We deliberately +* ignore this physical limitation. +*/ +if (ram_size > mmc->max_ramsize) { +char *maxsize_str =size_to_str (mmc->max_ramsize); +error_report ("Too much memory for this machine: %" PRId64" MiB," +" maximum %s" , ram_size / MiB, maxsize_str); +g_free (maxsize_str);exit (1 ); }@@ -1446,6 +1464,7 @@ static void malta_machine_common_class_init(ObjectClass *oc, void *data)static void malta_machine_default_class_init (ObjectClass *oc,void *data) {MachineClass *mc =MACHINE_CLASS (oc); +MaltaMachineClass *mmc =MALTA_MACHINE_CLASS (oc); mc->desc ="MIPS Malta Core LV" ; mc->block_default_type =IF_IDE ;
hw/mips/malta.c static void malta_machine_default_class_init(ObjectClass *oc, void *data) · line 1481
Quoted 7 lines
hw/mips/malta.c +1
-0@@ -1456,6 +1475,7 @@ static void malta_machine_default_class_init(ObjectClass *oc, void *data)#else mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("24Kf" );#endif + mmc->max_ramsize =2 * GiB; }static const TypeInfo malta_machine_types[] = {
Missing:
-- >8 --
hw/mips/malta.c +1 -0
@@ -1541,6 +1541,7 @@ static const TypeInfo malta_machine_types[] = { .name = TYPE_MALTA_MACHINE, .parent = TYPE_MACHINE, .class_init = malta_machine_common_class_init, + .class_size = sizeof(MaltaMachineClass), .abstract = true, } };
---
PATCH v2 4/6 hw/mips/malta: Introduce the 'malta-strict' machine
In reply to Philippe Mathieu-DaudéIntroduce the 'malta-strict' machine, aiming to have the same limitations as real hardware.
Start with 32 MB which is the default on the CoreLV, and allow up to 256 MB which is the maximum this card can accept.
See datasheet 'MIPS Document Number: MD00051 Revision 01.07'.
--- hw/mips/malta.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
hw/mips/malta.c +22 -0
@@ -1478,12 +1478,34 @@ static void malta_machine_default_class_init(ObjectClass *oc, void *data) mmc->max_ramsize =2 * GiB; } +static void malta_machine_strict_class_init (ObjectClass *oc,void *data) +{ +MachineClass *mc =MACHINE_CLASS (oc); +MaltaMachineClass *mmc =MALTA_MACHINE_CLASS (oc); + + mc->desc ="MIPS Malta Core LV (physically limited as real hardware)" ; + mc->block_default_type =IF_PFLASH ; + mc->max_cpus =1 ; +#ifdef TARGET_MIPS64 + mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("5Kc" ); +#else + mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("4Kc" ); +#endif + mc->default_ram_size =32 * MiB; + mmc->max_ramsize =256 * MiB;/* 32 MByte PC100 SDRAM DIMMs x 4 slots */ +}; +static const TypeInfo malta_machine_types[] = { { .name =MACHINE_TYPE_NAME ("malta" ), .parent =TYPE_MALTA_MACHINE , .class_init = malta_machine_default_class_init, }, + { + .name =MACHINE_TYPE_NAME ("malta-strict" ), + .parent =TYPE_MALTA_MACHINE , + .class_init = malta_machine_strict_class_init, + }, { .name =TYPE_MALTA_MACHINE , .parent =TYPE_MACHINE ,
Signature · 1 line
2.21.3
PATCH v2 5/6 hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes
In reply to Philippe Mathieu-DaudéThe machine has 4 DIMM slots. Each DIMM must be a power of 2. Add a check the total RAM is a good combination of DIMMs.
--- hw/mips/malta.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
hw/mips/malta.c +10 -0
@@ -71,6 +71,8 @@#define MAX_IDE_BUS 2 +#define DIMM_SLOTS_COUNT 4 +#define TYPE_MALTA_MACHINE MACHINE_TYPE_NAME("malta-base")#define MALTA_MACHINE_CLASS (klass) \ OBJECT_CLASS_CHECK(MaltaMachineClass, (klass), TYPE_MALTA_MACHINE)
@@ -82,6 +84,7 @@ typedef struct MaltaMachineClass {MachineClass parent_obj;/* Public */ ram_addr_t max_ramsize; +bool verify_dimm_sizes; } MaltaMachineClass; typedef struct {
@@ -1260,6 +1263,12 @@ void mips_malta_init(MachineState *machine)/* create CPU */ mips_create_cpu (machine, s, &cbus_irq, &i8259_irq); +if (mmc->verify_dimm_sizes &&ctpop64 (ram_size) >DIMM_SLOTS_COUNT ) { +error_report ("RAM size must be the combination of %d powers of 2" , +DIMM_SLOTS_COUNT ); +exit (1 ); + } +/* * The GT-64120A north bridge accepts at most 256 MiB per SCS for * address decoding, so we have a maximum of 1 GiB. We deliberately
@@ -1493,6 +1502,7 @@ static void malta_machine_strict_class_init(ObjectClass *oc, void *data)#endif mc->default_ram_size =32 * MiB; mmc->max_ramsize =256 * MiB;/* 32 MByte PC100 SDRAM DIMMs x 4 slots */ + mmc->verify_dimm_sizes = true; };static const TypeInfo malta_machine_types[] = {
Signature · 1 line
2.21.3
PATCH v2 6/6 hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machine
In reply to Philippe Mathieu-DaudéIntroduce the 'malta-unleashed' machine. This machine does not model any existing hardware (as the default 'malta' neither model a real hardware). The purpose of this machine is to allow user of the current 'malta' machine to use more RAM, as it has been reported to be useful for build farms.
References:
- https://www.mail-archive.com/[email protected]/msg10912.html
- https://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/2019-January/004844.html
- https://www.mail-archive.com/[email protected]/msg691406.html
---
This patch is RFC because an upstream QEMU maintainer disagree with this approach, but I'm sending it so interested folks in the community (Debian or other) can test it.
Previous discussion on Jiaxun Yang's patch:
https://patchwork.kernel.org/patch/11416915/
--- hw/mips/malta.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
hw/mips/malta.c +21 -0
@@ -1505,6 +1505,20 @@ static void malta_machine_strict_class_init(ObjectClass *oc, void *data) mmc->verify_dimm_sizes = true; }; +#ifdef TARGET_MIPS64 +static void malta_machine_unleashed_class_init (ObjectClass *oc,void *data) +{ +MachineClass *mc =MACHINE_CLASS (oc); +MaltaMachineClass *mmc =MALTA_MACHINE_CLASS (oc); + + mc->desc ="MIPS Malta Core LV (physically unlimited)" ; + mc->block_default_type =IF_IDE ; + mc->max_cpus =16 ; + mc->default_cpu_type =MIPS_CPU_TYPE_NAME ("20Kc" ); + mmc->max_ramsize =3 * GiB; +} +#endif /* TARGET_MIPS64 */ +static const TypeInfo malta_machine_types[] = { { .name =MACHINE_TYPE_NAME ("malta" ),
@@ -1516,6 +1530,13 @@ static const TypeInfo malta_machine_types[] = { .parent = TYPE_MALTA_MACHINE, .class_init = malta_machine_strict_class_init, }, +#ifdef TARGET_MIPS64 + { + .name = MACHINE_TYPE_NAME("malta-unleashed"), + .parent = TYPE_MALTA_MACHINE, + .class_init = malta_machine_unleashed_class_init, + }, +#endif /* TARGET_MIPS64 */ { .name = TYPE_MALTA_MACHINE, .parent = TYPE_MACHINE,
Signature · 1 line
2.21.3
Re: [PATCH v2 6/6] hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machine
Quoted 10 lines · Philippe Mathieu-Daudé
Introduce the 'malta-unleashed' machine. This machine does not model any existing hardware (as the default 'malta' neither model a real hardware). The purpose of this machine is to allow user of the current 'malta' machine to use more RAM, as it has been reported to be useful for build farms.
References:
- https://www.mail-archive.com/[email protected]/msg10912.html
- https://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/2019-January/004844.html
- https://www.mail-archive.com/[email protected]/msg691406.html
I'm not convinced that there's any real value in adding the malta-strict and malta-unleashed machine types.
If you want to closely model a real physical machine it doesn't matter what the "max ram" setting says - you can just choose a "-m MB" value to match the physical machine you want to model.
Similarly if users want to exceed what the physical machine would do there's no compelling reason for QEMU to artificially prevent that or force use of a different machine. Neither i440fx or q35 force users to the max RAM limit of the physical machine they were originally designed from. We have frequently just bumped the max limits in QEMU for i440fx/q35 as we had users who requested a higher level.
IIUC, The current 2 GB limit is just a historical artifact from the limited address space in 32-bit, which we don't have to be bound by for 64-bit.
IOW, instead of adding new machine types I would think we can just modify the existing limit for TARGET_MIPS64, by doing something akin to:
hw/mips/malta.c +7 -2
@@ -1247,9 +1247,14 @@ void mips_malta_init(MachineState *machine)mips_create_cpu (machine, s, &cbus_irq, &i8259_irq);/* allocate RAM */ -if (ram_size >2 * GiB) { +#ifdef TARGET_MIPS64 +#define MAX_RAM_MB 3056 +#else +#define MAX_RAM_MB 2048 +#endif +if (ram_size >MAX_RAM_MB * MiB) {error_report ("Too much memory for this machine: %" PRId64"MB," -" maximum 2048MB" , ram_size / MiB); +" maximum " MAX_RAM_MB "MB" , ram_size / MiB);exit (1 ); }
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machine
Quoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Regards,
Aleksandar
Quoted 2 lines
2.21.3
Quoted 32 lines · Aleksandar Markovic
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
Quoted 5 lines
As such, not acceptable for upstreaming.
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
What this series does is emulate the physically existing feature that are not yet emulated in QEMU.
Please refer to the datasheet 'MIPS Document Number: MD00051 Revision 01.07' before rejecting this series, and find the correct arguments.
Thanks.
Quoted 8 lines
Regards,
AleksandarQuoted 2 lines
2.21.3
уто, 30. јун 2020. у 18:46 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 36 lines · Aleksandar Markovic
Quoted 34 lines
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Quoted 9 lines
Quoted 3 lines
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
Past mistakes are past mistakes. We have to live with them. And not make them in the future.
I see the whole series as a precursor for your change that repeats past mistakes, a "wolf in sheep clothing".
That's why I reject the series as a whole.
Yours,
Aleksandar
Quoted 17 lines
What this series does is emulate the physically existing feature that are not yet emulated in QEMU.
Please refer to the datasheet 'MIPS Document Number: MD00051 Revision 01.07' before rejecting this series, and find the correct arguments.
Thanks.
Quoted 8 lines
Regards,
AleksandarQuoted 2 lines
2.21.3
Quoted 48 lines · Aleksandar Markovic
уто, 30. јун 2020. у 18:46 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 36 lines · Aleksandar Markovic
Quoted 34 lines
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Quoted 9 lines
Quoted 3 lines
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
Quoted 7 lines
Past mistakes are past mistakes. We have to live with them. And not make them in the future.
I see the whole series as a precursor for your change that repeats past mistakes, a "wolf in sheep clothing".
That's why I reject the series as a whole.
As a co-maintainer I don't accept that.
The 'malta' machine is not changed, the series adds the 'malta-strict' machine which check the RAM restriction:
$ qemu-system-mips -M malta-strict -bios /dev/null -m 512 qemu-system-mips: Too much memory for this machine: 512 MiB, maximum 256 MiB
$ qemu-system-mips -M malta-strict -bios /dev/null -m 252 qemu-system-mips: RAM size must be the combination of 4 powers of 2
$ qemu-system-mips -M malta-strict -monitor stdio -S -bios /dev/null -m 100
QEMU 5.0.50 monitor - type 'help' for more information
(qemu) info mtree
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system
0000000000000000-00000000063fffff (prio 0, ram): alias
mips_malta_low_preio.ram @mips_malta.ram 0000000000000000-00000000063fffff100 = 64 + 32 + 2 + 2
Quoted 22 lines
Yours,
AleksandarQuoted 17 lines
What this series does is emulate the physically existing feature that are not yet emulated in QEMU.
Please refer to the datasheet 'MIPS Document Number: MD00051 Revision 01.07' before rejecting this series, and find the correct arguments.
Thanks.
Quoted 8 lines
Regards,
AleksandarQuoted 2 lines
2.21.3
уто, 30. јун 2020. у 19:16 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 53 lines · Aleksandar Markovic
Quoted 51 lines
уто, 30. јун 2020. у 18:46 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 36 lines · Aleksandar Markovic
Quoted 34 lines
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Quoted 9 lines
Quoted 3 lines
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
Past mistakes are past mistakes. We have to live with them. And not make them in the future.
Quoted 7 lines
Quoted 4 lines
I see the whole series as a precursor for your change that repeats past mistakes, a "wolf in sheep clothing".
That's why I reject the series as a whole.
As a co-maintainer I don't accept that.
I offered you the full maintainership for Malta.
You said you can proveide only "Odd fiexes".
I had to jump in to provide "Maintained" status.
Therefore, I provide the higher level of maintainership, and you have to respect that. But you don't.
Regards,
Aleksandar
Quoted 41 lines
The 'malta' machine is not changed, the series adds the 'malta-strict' machine which check the RAM restriction:
$ qemu-system-mips -M malta-strict -bios /dev/null -m 512 qemu-system-mips: Too much memory for this machine: 512 MiB, maximum 256 MiB$ qemu-system-mips -M malta-strict -bios /dev/null -m 252 qemu-system-mips: RAM size must be the combination of 4 powers of 2$ qemu-system-mips -M malta-strict -monitor stdio -S -bios /dev/null -m 100 QEMU 5.0.50 monitor - type 'help' for more information (qemu) info mtree address-space: memory 0000000000000000-ffffffffffffffff (prio 0, i/o): system 0000000000000000-00000000063fffff (prio 0, ram): alias mips_malta_low_preio.ram @mips_malta.ram 0000000000000000-00000000063fffff100 = 64 + 32 + 2 + 2
Quoted 22 lines
Yours,
AleksandarQuoted 17 lines
What this series does is emulate the physically existing feature that are not yet emulated in QEMU.
Please refer to the datasheet 'MIPS Document Number: MD00051 Revision 01.07' before rejecting this series, and find the correct arguments.
Thanks.
Quoted 8 lines
Regards,
AleksandarQuoted 2 lines
2.21.3
Quoted 63 lines · Aleksandar Markovic
уто, 30. јун 2020. у 19:16 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 53 lines · Aleksandar Markovic
Quoted 51 lines
уто, 30. јун 2020. у 18:46 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 36 lines · Aleksandar Markovic
Quoted 34 lines
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Quoted 9 lines
Quoted 3 lines
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
Past mistakes are past mistakes. We have to live with them. And not make them in the future.
Quoted 7 lines
Quoted 4 lines
I see the whole series as a precursor for your change that repeats past mistakes, a "wolf in sheep clothing".
That's why I reject the series as a whole.
As a co-maintainer I don't accept that.
Quoted 8 lines
I offered you the full maintainership for Malta.
You said you can proveide only "Odd fiexes".
I had to jump in to provide "Maintained" status.
Therefore, I provide the higher level of maintainership, and you have to respect that. But you don't.
FYI we are listed as co-maintainer:
Malta
M: Aleksandar Markovic <[email protected]>
M: Philippe Mathieu-Daudé <[email protected]>
R: Aurelien Jarno <[email protected]>
S: Maintained
There is no difference of level. If you don't want my help and plan to destroy the hobbyist MIPS aspect of QEMU please kick me out, as I don't want to be responsible for dictating in an open source project.
You can also relinquish your responsibility in Malta and focus on what is important for your company.
Quoted 46 lines
Regards,
AleksandarQuoted 41 lines
The 'malta' machine is not changed, the series adds the 'malta-strict' machine which check the RAM restriction:
$ qemu-system-mips -M malta-strict -bios /dev/null -m 512 qemu-system-mips: Too much memory for this machine: 512 MiB, maximum 256 MiB$ qemu-system-mips -M malta-strict -bios /dev/null -m 252 qemu-system-mips: RAM size must be the combination of 4 powers of 2$ qemu-system-mips -M malta-strict -monitor stdio -S -bios /dev/null -m 100 QEMU 5.0.50 monitor - type 'help' for more information (qemu) info mtree address-space: memory 0000000000000000-ffffffffffffffff (prio 0, i/o): system 0000000000000000-00000000063fffff (prio 0, ram): alias mips_malta_low_preio.ram @mips_malta.ram 0000000000000000-00000000063fffff100 = 64 + 32 + 2 + 2
Quoted 22 lines
Yours,
AleksandarQuoted 17 lines
What this series does is emulate the physically existing feature that are not yet emulated in QEMU.
Please refer to the datasheet 'MIPS Document Number: MD00051 Revision 01.07' before rejecting this series, and find the correct arguments.
Thanks.
Quoted 8 lines
Regards,
AleksandarQuoted 2 lines
2.21.3
Quoted 63 lines · Aleksandar Markovic
уто, 30. јун 2020. у 19:16 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 53 lines · Aleksandar Markovic
Quoted 51 lines
уто, 30. јун 2020. у 18:46 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 36 lines · Aleksandar Markovic
Quoted 34 lines
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machineQuoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Quoted 9 lines
Quoted 3 lines
I don't see the point of sending again the same series, in just cosmetically different form, if it was said to you that the concept is wrong.
Have you looked at the patches? What "violates the fundamental principles of QEMU" is the code currently in mainstream. Should we remove it? I can send a patch for it if it pleases you, but you will make QEMU unuseful for many distribution users.
Past mistakes are past mistakes. We have to live with them. And not make them in the future.
Quoted 7 lines
Quoted 4 lines
I see the whole series as a precursor for your change that repeats past mistakes, a "wolf in sheep clothing".
That's why I reject the series as a whole.
As a co-maintainer I don't accept that.
Quoted 8 lines
I offered you the full maintainership for Malta.
You said you can proveide only "Odd fiexes".
I had to jump in to provide "Maintained" status.
Therefore, I provide the higher level of maintainership, and you have to respect that. But you don't.
You need to cool your jets here, Aleksandar.
You do not have some mythical "higher level" of maintainership. Nor, as far as I can tell, are you actually doing anything with Malta whereas Philippe is.
r~
Quoted 26 lines · Aleksandar Markovic
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 24 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machinehw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)
Quoted 7 lines
Quoted 1 line
--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
As such, not acceptable for upstreaming.
Hi Aleksandar,
could you please point me to the spot where we declare this "fundamental principle" of QEMU? Sorry, but I must have missed this piece of information so far. And could you please enlighten me what we should do now with virtio, since most of these devices also are physically non-existent?
Thanks,
Thomas
Quoted 23 lines · Aleksandar Markovic
уто, 30. јун 2020. у 16:52 Philippe Mathieu-Daudé <[email protected]> је написао/ла:
Quoted 21 lines
Hi,
This series add a new 'malta-strict' machine, that aims to properly model the real hardware (which is not what the current 'malta' machine models).
As a bonus for Debian builders, a 'malta-unleashed' machine RFC patch is included. This might start another endless discussion upstream, but this is not the point of, so I still include it for people to test. The rest of the series is candidate for merging in mainstream QEMU.
Philippe Mathieu-Daudé (6):
hw/mips/malta: Trivial code movement
hw/mips/malta: Register the machine as a TypeInfo hw/mips/malta: IntroduceMaltaMachineClass::max_ramsizehw/mips/malta: Introduce the 'malta-strict' machine hw/mips/malta: Verify malta-strict machine uses correct DIMM sizes hw/mips/malta: Introduce the 'malta-unleashed' 64-bit machine
Quoted 8 lines
Quoted 4 lines
hw/mips/malta.c | 125 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 111 insertions(+), 14 deletions(-)--
This whole series is based on idea of emulating physically non-existing feature, and as such violates the fundamental principles of QEMU.
On x86 we model a i440fx from 1995. Max RAM in 1995 was on the order of 10's of MB, but we run it with *multi-TB* of RAM in QEMU. There's examples of this all over QEMU.
Quoted 1 line
As such, not acceptable for upstreaming.
I think this is quite unreasonable, especially considering this series is addressing a real world problem that users of QEMU malta are facing with insufficient RAM. QEMU exists to help users get their work done
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|