Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-24 Thread Huacai Chen
Hi, Philippe, On Thu, Sep 24, 2020 at 11:40 PM Philippe Mathieu-Daudé wrote: > > On 9/16/20 11:49 AM, Huacai Chen wrote: > > Hi, Philippe, > > > > On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé > > wrote: > >> > >> Hi Huacai, > >> > >> On 9/16/20 4:12 AM, Huacai Chen wrote: > ... > >>

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-24 Thread Philippe Mathieu-Daudé
On 9/16/20 11:49 AM, Huacai Chen wrote: > Hi, Philippe, > > On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé > wrote: >> >> Hi Huacai, >> >> On 9/16/20 4:12 AM, Huacai Chen wrote: ... >> hw/mips/loongson3_virt.c:373:15: note: each undeclared identifier is >> reported only once for each

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-20 Thread chen huacai
Hi, Philippe, On Sat, Sep 19, 2020 at 9:59 PM Philippe Mathieu-Daudé wrote: > > On 9/19/20 3:00 AM, Huacai Chen wrote: > > Hi, Philippe, > > > > On Thu, Sep 17, 2020 at 3:53 PM Philippe Mathieu-Daudé > > wrote: > >> > >> On 9/16/20 12:47 PM, Philippe Mathieu-Daudé wrote: > >>> On 9/16/20 11:49

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-19 Thread Philippe Mathieu-Daudé
On 9/19/20 3:00 AM, Huacai Chen wrote: > Hi, Philippe, > > On Thu, Sep 17, 2020 at 3:53 PM Philippe Mathieu-Daudé > wrote: >> >> On 9/16/20 12:47 PM, Philippe Mathieu-Daudé wrote: >>> On 9/16/20 11:49 AM, Huacai Chen wrote: On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-18 Thread Huacai Chen
Hi, Philippe, On Thu, Sep 17, 2020 at 3:53 PM Philippe Mathieu-Daudé wrote: > > On 9/16/20 12:47 PM, Philippe Mathieu-Daudé wrote: > > On 9/16/20 11:49 AM, Huacai Chen wrote: > >> On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé > >> wrote: > >>> On 9/16/20 4:12 AM, Huacai Chen wrote: >

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-17 Thread Philippe Mathieu-Daudé
On 9/16/20 11:49 AM, Huacai Chen wrote: >>> We now already have a full functional Linux kernel (based on Linux-5.4.x >>> LTS, the kvm host side and guest side have both been upstream for Linux- >>> 5.9, but Linux-5.9 has not been released yet) here: >>> >>> https://github.com/chenhuacai/linux >>>

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-17 Thread Philippe Mathieu-Daudé
On 9/16/20 12:47 PM, Philippe Mathieu-Daudé wrote: > On 9/16/20 11:49 AM, Huacai Chen wrote: >> On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé >> wrote: >>> On 9/16/20 4:12 AM, Huacai Chen wrote: > [...] +static void mips_loongson3_virt_init(MachineState *machine) +{ +

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-16 Thread Philippe Mathieu-Daudé
On 9/16/20 11:49 AM, Huacai Chen wrote: > On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé > wrote: >> On 9/16/20 4:12 AM, Huacai Chen wrote: [...] >>> +static void mips_loongson3_virt_init(MachineState *machine) >>> +{ >>> +int i; >>> +long bios_size; >>> +MIPSCPU *cpu; >>> +

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-16 Thread Huacai Chen
Hi, Philippe, On Wed, Sep 16, 2020 at 3:56 PM Philippe Mathieu-Daudé wrote: > > Hi Huacai, > > On 9/16/20 4:12 AM, Huacai Chen wrote: > > Add Loongson-3 based machine support, it use liointc as the interrupt > > controler and use GPEX as the pci controller. Currently it can work with > > both

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-16 Thread Philippe Mathieu-Daudé
On 9/16/20 9:56 AM, Philippe Mathieu-Daudé wrote: > On 9/16/20 4:12 AM, Huacai Chen wrote: [...] >> diff --git a/default-configs/mips64el-softmmu.mak >> b/default-configs/mips64el-softmmu.mak >> index 9f8a3ef..26c660a 100644 >> --- a/default-configs/mips64el-softmmu.mak >> +++

Re: [PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-16 Thread Philippe Mathieu-Daudé
Hi Huacai, On 9/16/20 4:12 AM, Huacai Chen wrote: > Add Loongson-3 based machine support, it use liointc as the interrupt > controler and use GPEX as the pci controller. Currently it can work with > both TCG and KVM. > > As the machine model is not based on any exiting physical hardware, the >

[PATCH V9 6/6] hw/mips: Add Loongson-3 machine support

2020-09-15 Thread Huacai Chen
Add Loongson-3 based machine support, it use liointc as the interrupt controler and use GPEX as the pci controller. Currently it can work with both TCG and KVM. As the machine model is not based on any exiting physical hardware, the name of the machine is "loongson3-virt". It may be superseded in