Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Philippe Mathieu-Daudé
On 5/26/20 3:14 PM, Aleksandar Markovic wrote: > уто, 26. мај 2020. у 13:06 Aleksandar Markovic > је написао/ла: >> >> уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је >> написао/ла: >>> >>> Hi, >>> >>> This is the current state of my hw/mips/next tree. >>> >>> - MAINTAINERS updated to

Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 15:14 Aleksandar Markovic је написао/ла: > > уто, 26. мај 2020. у 13:06 Aleksandar Markovic > је написао/ла: > > > > уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је > > написао/ла: > > > > > > Hi, > > > > > > This is the current state of my hw/mips/next tree. > > > > >

Re: [PATCH v2.1 0/3] Support network interface downscript

2020-05-26 Thread Michal Privoznik
On 5/26/20 2:40 AM, Chen Hanxiao wrote: QEMU has the ability to run a script when a NIC is brought up and down. Libvirt only enables use of the up script at this time. This series add support for postscript when NIC is down/detached. Chen Hanxiao (3): interface: introduce downscript

Re: [PATCH v2.1 1/3] interface: introduce downscript element for interface

2020-05-26 Thread Michal Privoznik
On 5/26/20 2:40 AM, Chen Hanxiao wrote: https://gitlab.com/libvirt/libvirt/-/issues/13 Add support for downscript: Signed-off-by: Chen Hanxiao --- docs/formatdomain.html.in | 6 +- docs/schemas/domaincommon.rng | 8 src/conf/domain_conf.c| 9

Re: [PATCH v2.1 2/3] downscript: add support for booting and hotplug interface

2020-05-26 Thread Michal Privoznik
On 5/26/20 2:41 AM, Chen Hanxiao wrote: Support downscript for booting vm, and hotunplug interface device. Signed-off-by: Chen Hanxiao --- src/qemu/qemu_extdevice.c | 4 ++ src/qemu/qemu_hotplug.c | 3 ++ tests/qemuxml2argvdata/downscript.xml | 60

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Peter Krempa
On Tue, May 26, 2020 at 14:37:41 +0200, Aleksandar Markovic wrote: > > > > > > +mips ``fulong2e`` machine (since 5.1) > > > +' > > > + > > > +This machine has been renamed ``fuloong2e``. > > > + > > > > Libvirt doesn't have any special handling for this machine

Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 13:06 Aleksandar Markovic је написао/ла: > > уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је > написао/ла: > > > > Hi, > > > > This is the current state of my hw/mips/next tree. > > > > - MAINTAINERS updated to welcome Huacai Chen and Jiaxun Yang, > > and update

[PULL 11/14] hw/mips: Rename malta/mipssim/r4k/jazz files

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Machine file names should not have prefix "mips_". Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id: <20200518200920.17344-22-aleksandar.qemu.de...@gmail.com> [PMD: Fixed Fuloong line conflict due to rebase] Signed-off-by: Philippe

[PULL 07/14] hw/pci-host/bonito: Better describe the I/O CS regions

2020-05-26 Thread Philippe Mathieu-Daudé
Better describe the I/O CS regions, add the ROMCS region. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-11-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

[PULL 08/14] hw/pci-host/bonito: Set the Config register reset value with FIELD_DP32

2020-05-26 Thread Philippe Mathieu-Daudé
Describe some bits of the Config registers fields with the registerfields API. Use the FIELD_DP32() macro to set the BONGENCFG register bits at reset. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-12-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé ---

[PULL 09/14] hw/mips/fuloong2e: Move code and update a comment

2020-05-26 Thread Philippe Mathieu-Daudé
Move the RAM-related call closer to the RAM creation block, rename the ROM comment. Reviewed-by: Huacai Chen Message-id: <20200510210128.18343-4-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_fulong2e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PULL 00/14] mips-hw-next patches for 2020-05-26

2020-05-26 Thread Philippe Mathieu-Daudé
The following changes since commit 8f72c75cfc9b3c84a9b5e7a58ee5e471cb2f19c8: Merge remote-tracking branch 'remotes/kraxel/tags/audio-20200526-pull-reque= st' into staging (2020-05-26 10:59:01 +0100) are available in the Git repository at: https://gitlab.com/philmd/qemu.git tags/mips-hw-next

[PULL 14/14] MAINTAINERS: Change Aleksandar Rikalo's email address

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Aleksandar Rikalo wants to use a different email address from now on. Reviewed-by: Aleksandar Rikalo Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id:

[PULL 06/14] hw/pci-host/bonito: Map the different PCI ranges more detailed

2020-05-26 Thread Philippe Mathieu-Daudé
Better describe the Bonito64 MEM HI/LO and I/O PCI ranges, add more PCI regions as unimplemented. Reviewed-by: Aleksandar Markovic Message-id: <20200526104726.11273-7-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 32 1 file

[PULL 05/14] hw/pci-host/bonito: Map all the Bonito64 I/O range

2020-05-26 Thread Philippe Mathieu-Daudé
To ease following guest accesses to the Bonito64 chipset, map its I/O range as UnimplementedDevice. We can now see the accesses to unimplemented peripheral using the '-d unimp' command line option. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-9-f4...@amsat.org>

[PATCH v2] qemu: Skip pre-creation of NVMe disks

2020-05-26 Thread Michal Privoznik
Upon migration with disks, libvirt determines if each disk exists on the destination and tries to pre-create missing ones. Well, NVMe disks can't be pre-created, but they can be checked for presence. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1823639 Signed-off-by: Michal Privoznik

Re: [PATCH 4/5] qemu: Prefer -numa cpu over -numa node,cpus=

2020-05-26 Thread Igor Mammedov
On Mon, 25 May 2020 10:05:08 +0200 Michal Privoznik wrote: > On 5/22/20 7:18 PM, Igor Mammedov wrote: > > On Fri, 22 May 2020 18:28:31 +0200 > > Michal Privoznik wrote: > > > >> On 5/22/20 6:07 PM, Igor Mammedov wrote: > >>> On Fri, 22 May 2020 16:14:14 +0200 > >>> Michal Privoznik wrote:

Re: [PATCH 4/5] qemu: Prefer -numa cpu over -numa node,cpus=

2020-05-26 Thread Michal Privoznik
On 5/26/20 4:51 PM, Igor Mammedov wrote: On Mon, 25 May 2020 10:05:08 +0200 Michal Privoznik wrote: This is a problem. The domain XML that is provided can't be changed, mostly because mgmt apps construct it on the fly and then just pass it as a RO string to libvirt. While libvirt could

Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Philippe Mathieu-Daudé
On 5/26/20 3:29 PM, Aleksandar Markovic wrote: > уто, 26. мај 2020. у 15:20 Philippe Mathieu-Daudé је > написао/ла: >> >> On 5/26/20 3:14 PM, Aleksandar Markovic wrote: >>> уто, 26. мај 2020. у 13:06 Aleksandar Markovic >>> је написао/ла: уто, 26. мај 2020. у 12:47 Philippe

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Aleksandar Markovic
> > > > +mips ``fulong2e`` machine (since 5.1) > > +' > > + > > +This machine has been renamed ``fuloong2e``. > > + > > Libvirt doesn't have any special handling for this machine so this > shouldn't impact us. > Well, Peter, I was also wondering libvirt listed

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 14:50 Peter Krempa је написао/ла: > > On Tue, May 26, 2020 at 14:37:41 +0200, Aleksandar Markovic wrote: > > > > > > > > +mips ``fulong2e`` machine (since 5.1) > > > > +' > > > > + > > > > +This machine has been renamed ``fuloong2e``. > > >

Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 15:20 Philippe Mathieu-Daudé је написао/ла: > > On 5/26/20 3:14 PM, Aleksandar Markovic wrote: > > уто, 26. мај 2020. у 13:06 Aleksandar Markovic > > је написао/ла: > >> > >> уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је > >> написао/ла: > >>> > >>> Hi, > >>> > >>>

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Philippe Mathieu-Daudé
On 5/26/20 2:37 PM, Aleksandar Markovic wrote: >>> >>> +mips ``fulong2e`` machine (since 5.1) >>> +' >>> + >>> +This machine has been renamed ``fuloong2e``. >>> + >> >> Libvirt doesn't have any special handling for this machine so this >> shouldn't impact us. >>

[PATCH v2] security: don't fail if built without attr support

2020-05-26 Thread Christian Ehrhardt
If built without attr support removing any image will trigger qemuBlockRemoveImageMetadata (the one that emits the warning) -> qemuSecurityMoveImageMetadata -> virSecurityManagerMoveImageMetadata -> virSecurityDACMoveImageMetadata -> virSecurityDACMoveImageMetadataHelper

[PULL 01/14] MAINTAINERS: Add Huacai Chen as fuloong2e co-maintainer

2020-05-26 Thread Philippe Mathieu-Daudé
From: Huacai Chen I submitted the MIPS/fuloong2e support about ten years ago, and after that I became a MIPS kernel developer. Last year, Philippe Mathieu- Daudé asked me that whether I can be a reviewer of MIPS/fuloong2e, and I promised that I will do some QEMU work in the next year (i.e., 2020

[PULL 03/14] hw/pci-host/bonito: Fix DPRINTF() format strings

2020-05-26 Thread Philippe Mathieu-Daudé
Reviewed-by: Huacai Chen Message-id: <20200510210128.18343-7-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index f212796044..b874468ea6 100644

[PULL 04/14] hw/pci-host/bonito: Map peripheral using physical address

2020-05-26 Thread Philippe Mathieu-Daudé
Peripherals are mapped at physical address on busses. Only CPU/IOMMU can use virtual addresses. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-8-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PULL 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Philippe Mathieu-Daudé
We always miswrote the Fuloong machine... Fix its name. Add an machine alias to the previous name for backward compatibility. Suggested-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-id: <20200526104726.11273-11-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé ---

[PULL 12/14] hw/mips/malta: Add some logging for bad register offset cases

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Log the cases where a guest attempts read or write using bad register offset. Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id: <20200518200920.17344-21-aleksandar.qemu.de...@gmail.com> [PMD:

[PULL 13/14] hw/mips/mips_int: De-duplicate KVM interrupt delivery

2020-05-26 Thread Philippe Mathieu-Daudé
Refactor duplicated code in a single place. Reviewed-by: Thomas Huth Message-Id: <20200429082916.10669-2-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_int.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hw/mips/mips_int.c

[PULL 02/14] hw/pci-host: Use CONFIG_PCI_BONITO to select the Bonito North Bridge

2020-05-26 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Ease the kconfig selection by introducing CONFIG_PCI_BONITO to select the Bonito North Bridge. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé Message-id: <20200510210128.18343-6-f4...@amsat.org> Reviewed-by: Huacai Chen Signed-off-by:

Re: [libvirt PATCH] scripts: Fix E741 that pycodesyle is pointing out during syntax-check

2020-05-26 Thread Erik Skultety
On Mon, May 25, 2020 at 06:17:06PM +0200, Ján Tomko wrote: > On a Monday in 2020, Michal Privoznik wrote: > > On 5/25/20 2:56 PM, Erik Skultety wrote: > > > With newer pycodestyle 2.6.0 (which is part of flake8-3.8.2) reports > > > the following pep violation during syntax-check: > > > > > >

Re: [PATCH] security: don't fail if built without attr support

2020-05-26 Thread Michal Privoznik
On 5/26/20 9:47 AM, Christian Ehrhardt wrote: If built without attr support removing any image will trigger qemuBlockRemoveImageMetadata (the one that emits the warning) -> qemuSecurityMoveImageMetadata -> virSecurityManagerMoveImageMetadata -> virSecurityDACMoveImageMetadata

[PATCH] security: don't fail if built without attr support

2020-05-26 Thread Christian Ehrhardt
If built without attr support removing any image will trigger qemuBlockRemoveImageMetadata (the one that emits the warning) -> qemuSecurityMoveImageMetadata -> virSecurityManagerMoveImageMetadata -> virSecurityDACMoveImageMetadata -> virSecurityDACMoveImageMetadataHelper

Re: [PATCH] Don't require secdrivers to implement .domainMoveImageMetadata

2020-05-26 Thread Christian Ehrhardt
On Mon, May 25, 2020 at 3:25 PM Michal Privoznik wrote: > > On 5/25/20 1:14 PM, Christian Ehrhardt wrote: > > On Mon, May 18, 2020 at 10:07 AM Michal Privoznik > > wrote: > >> > >> On 5/18/20 10:02 AM, Erik Skultety wrote: > >> > >>> Yes, I know, what I meant by "unrelated" here was just the

Re: "http://libvirt.org/schemas/domain/qemu/1.0" returns 404 error

2020-05-26 Thread Daniel P . Berrangé
On Tue, May 26, 2020 at 11:59:50AM +0800, Yan Fu wrote: > Hello everyone, > > The XML namespace request website can not be accessed with 404 error: > http://libvirt.org/schemas/domain/qemu/1.0 > > Could anyone help to fix it please? There is nothing that needs fixing. XML namespaces are just an

Re: [libvirt PATCH] scripts: Fix E741 that pycodesyle is pointing out during syntax-check

2020-05-26 Thread Michal Privoznik
On 5/26/20 8:48 AM, Erik Skultety wrote: On Mon, May 25, 2020 at 06:17:06PM +0200, Ján Tomko wrote: On a Monday in 2020, Michal Privoznik wrote: On 5/25/20 2:56 PM, Erik Skultety wrote: With newer pycodestyle 2.6.0 (which is part of flake8-3.8.2) reports the following pep violation during

[PATCH 12/14] hw/mips/malta: Add some logging for bad register offset cases

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Log the cases where a guest attempts read or write using bad register offset. Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id: <20200518200920.17344-21-aleksandar.qemu.de...@gmail.com> [PMD:

[PATCH 13/14] hw/mips/mips_int: De-duplicate KVM interrupt delivery

2020-05-26 Thread Philippe Mathieu-Daudé
Refactor duplicated code in a single place. Reviewed-by: Thomas Huth Message-Id: <20200429082916.10669-2-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_int.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hw/mips/mips_int.c

[PATCH 07/14] hw/pci-host/bonito: Better describe the I/O CS regions

2020-05-26 Thread Philippe Mathieu-Daudé
Better describe the I/O CS regions, add the ROMCS region. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-11-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

[PATCH 09/14] hw/mips/fuloong2e: Move code and update a comment

2020-05-26 Thread Philippe Mathieu-Daudé
Move the RAM-related call closer to the RAM creation block, rename the ROM comment. Reviewed-by: Huacai Chen Message-id: <20200510210128.18343-4-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/mips_fulong2e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 14/14] MAINTAINERS: Change Aleksandar Rikalo's email address

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Aleksandar Rikalo wants to use a different email address from now on. Reviewed-by: Aleksandar Rikalo Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id:

[PATCH 05/14] hw/pci-host/bonito: Map all the Bonito64 I/O range

2020-05-26 Thread Philippe Mathieu-Daudé
To ease following guest accesses to the Bonito64 chipset, map its I/O range as UnimplementedDevice. We can now see the accesses to unimplemented peripheral using the '-d unimp' command line option. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-9-f4...@amsat.org>

[PATCH 03/14] hw/pci-host/bonito: Fix DPRINTF() format strings

2020-05-26 Thread Philippe Mathieu-Daudé
Reviewed-by: Huacai Chen Message-id: <20200510210128.18343-7-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index f212796044..b874468ea6 100644

[PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Philippe Mathieu-Daudé
Hi, This is the current state of my hw/mips/next tree. - MAINTAINERS updated to welcome Huacai Chen and Jiaxun Yang, and update Aleksandar Rikalo's email address, - Trivial improvements in the Bonito64 North Bridge and the Fuloong 2e machine, - MIPS Machines names unified without 'mips_'

[PATCH 02/14] hw/pci-host: Use CONFIG_PCI_BONITO to select the Bonito North Bridge

2020-05-26 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Ease the kconfig selection by introducing CONFIG_PCI_BONITO to select the Bonito North Bridge. Reviewed-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé Message-id: <20200510210128.18343-6-f4...@amsat.org> Reviewed-by: Huacai Chen Signed-off-by:

[PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Philippe Mathieu-Daudé
We always miswrote the Fuloong machine... Fix its name. Add an machine alias to the previous name for backward compatibility. Suggested-by: Aleksandar Markovic Message-id: <20200510210128.18343-5-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- docs/system/deprecated.rst

[PATCH 04/14] hw/pci-host/bonito: Map peripheral using physical address

2020-05-26 Thread Philippe Mathieu-Daudé
Peripherals are mapped at physical address on busses. Only CPU/IOMMU can use virtual addresses. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-8-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 08/14] hw/pci-host/bonito: Set the Config register reset value with FIELD_DP32

2020-05-26 Thread Philippe Mathieu-Daudé
Describe some bits of the Config registers fields with the registerfields API. Use the FIELD_DP32() macro to set the BONGENCFG register bits at reset. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-12-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé ---

[PATCH 01/14] MAINTAINERS: Add Huacai Chen as fuloong2e co-maintainer

2020-05-26 Thread Philippe Mathieu-Daudé
From: Huacai Chen I submitted the MIPS/fuloong2e support about ten years ago, and after that I became a MIPS kernel developer. Last year, Philippe Mathieu- Daudé asked me that whether I can be a reviewer of MIPS/fuloong2e, and I promised that I will do some QEMU work in the next year (i.e., 2020

[libvirt PATCH] cpu_map: Distribute x86_Cooperlake.xml

2020-05-26 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- I will push this as a build breaker once https://gitlab.com/jirkade/libvirt/pipelines/149651008 pipeline succeeds. src/cpu_map/Makefile.inc.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am index

Re: [PATCH] Don't require secdrivers to implement .domainMoveImageMetadata

2020-05-26 Thread Michal Privoznik
On 5/26/20 9:46 AM, Christian Ehrhardt wrote: On Mon, May 25, 2020 at 3:25 PM Michal Privoznik wrote: On 5/25/20 1:14 PM, Christian Ehrhardt wrote: On Mon, May 18, 2020 at 10:07 AM Michal Privoznik wrote: On 5/18/20 10:02 AM, Erik Skultety wrote: Yes, I know, what I meant by "unrelated"

[PATCH 06/14] hw/pci-host/bonito: Map the different PCI ranges more detailled

2020-05-26 Thread Philippe Mathieu-Daudé
Better describe the Bonito64 MEM HI/LO and I/O PCI ranges, add more PCI regions as unimplemented. Message-id: <20200510210128.18343-10-f4...@amsat.org> Signed-off-by: Philippe Mathieu-Daudé --- hw/pci-host/bonito.c | 32 1 file changed, 28 insertions(+), 4

[PATCH 11/14] hw/mips: Rename malta/mipssim/r4k/jazz files

2020-05-26 Thread Philippe Mathieu-Daudé
From: Aleksandar Markovic Machine file names should not have prefix "mips_". Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-id: <20200518200920.17344-22-aleksandar.qemu.de...@gmail.com> [PMD: Fixed Fuloong line conflict due to rebase] Signed-off-by: Philippe

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је написао/ла: > > We always miswrote the Fuloong machine... Fix its name. > Add an machine alias to the previous name for backward > compatibility. > > Suggested-by: Aleksandar Markovic > Message-id: <20200510210128.18343-5-f4...@amsat.org> >

Re: [PATCH 00/14] hw/mips: patch queue for 2020-05-26

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је написао/ла: > > Hi, > > This is the current state of my hw/mips/next tree. > > - MAINTAINERS updated to welcome Huacai Chen and Jiaxun Yang, > and update Aleksandar Rikalo's email address, > > - Trivial improvements in the Bonito64 North

Re: [PATCH 06/14] hw/pci-host/bonito: Map the different PCI ranges more detailled

2020-05-26 Thread Aleksandar Markovic
уто, 26. мај 2020. у 12:47 Philippe Mathieu-Daudé је написао/ла: > > Better describe the Bonito64 MEM HI/LO and I/O PCI ranges, > add more PCI regions as unimplemented. > > Message-id: <20200510210128.18343-10-f4...@amsat.org> > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/pci-host/bonito.c

Re: [libvirt PATCH] cpu_map: Distribute x86_Cooperlake.xml

2020-05-26 Thread Daniel P . Berrangé
On Tue, May 26, 2020 at 01:07:15PM +0200, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > > I will push this as a build breaker once > https://gitlab.com/jirkade/libvirt/pipelines/149651008 pipeline > succeeds. > > src/cpu_map/Makefile.inc.am | 1 + > 1 file changed, 1 insertion(+)

[PATCH 1/8] qemuBuildMemoryBackendProps: Move @prealloc setting to backend agnostic part

2020-05-26 Thread Michal Privoznik
All three memory backends (-file, -ram and -memfd) have .prealloc attribute. Since we are setting it only for -file, the corresponding code lives only under if() that handles that specific backend. But in near future we will want to set the attribute for other backends too. Therefore, move the

[PATCH 0/8] qemu: Use memory-backend-* for regular guest memory

2020-05-26 Thread Michal Privoznik
DISCLAIMER: These patches depend on a yet not merged QEMU patch: https://lists.nongnu.org/archive/html/qemu-devel/2020-05/msg07255.html This is another round of patches that are adapting Libvirt to new QEMU command line so that they can deprecate the old one. See 8/8 for explanation. Michal

[PATCH 5/8] qemu: Introduce QEMU_CAPS_MACHINE_MEMORY_BACKEND

2020-05-26 Thread Michal Privoznik
This capability corresponds to '-machine memory-backend=' command line argument. Unfortunately, it is not possible for us to detect the capability via QMP and therefore we have to have a version check. Signed-off-by: Michal Privoznik --- src/qemu/qemu_capabilities.c | 7

[PATCH 8/8] qemu: Use memory-backend-* for regular guest memory

2020-05-26 Thread Michal Privoznik
So far, Libvirt configures memory-backend-* for memory hotplug, possibly NUMA nodes and in a few other cases. This patch switches to constructing the memory-backend-* command line for all cases. To keep ability to migrate guests a little hack is used: the ID of the object is set to the one that

[PATCH 4/8] qemuBuildMemoryBackendProps: Fix const correctness

2020-05-26 Thread Michal Privoznik
The objects at @def and @mem pointers is only read and not written. Make the arguments const to make that explicit. Signed-off-by: Michal Privoznik --- src/qemu/qemu_command.c | 4 ++-- src/qemu/qemu_command.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 6/8] qemu: Track default-ram-id machine attribute

2020-05-26 Thread Michal Privoznik
The machine structure has another (optional) attribute: default-ram-id, which specifies the alias of the default RAM object. While the alias is private, it can never change in order to not break migration. QEMU uses the alias when allocating regular, not NUMA memory. In order to switch to new

[PATCH 2/8] qemuBuildMemoryBackendProps: Respect //memoryBacking/allocation/@mode=immediate

2020-05-26 Thread Michal Privoznik
If user specifies immediate memory allocation in the domain XML, they want QEMU to fully allocate its memory. And if the memory was allocated using plain '-m' then we would honour it. But, if a memory backend is used, then we don't set the prealloc attribute of the backend. Signed-off-by: Michal

[PATCH 7/8] qemucapabilitiestest: Update 5.1.0 data

2020-05-26 Thread Michal Privoznik
Update the capabilities of (yet unreleased) QEMU 5.1.0. Signed-off-by: Michal Privoznik --- .../caps_5.1.0.x86_64.replies | 280 -- .../caps_5.1.0.x86_64.xml | 180 +-- 2 files changed, 278 insertions(+), 182 deletions(-) diff --git

[PATCH 3/8] qemuBuildMemoryBackendProps: Prealloc mem for memfd backend

2020-05-26 Thread Michal Privoznik
If a domain was using hugepages through memory-backend-file or via -mem-path, we would turn prealloc on. But we are not doing that for memory-backend-memfd. Fix this, because we need QEMU to fully allocate hugepages. Signed-off-by: Michal Privoznik --- src/qemu/qemu_command.c | 11 +++

Re: [PATCH 10/14] hw/mips/fuloong2e: Fix typo in Fuloong machine name

2020-05-26 Thread Peter Krempa
On Tue, May 26, 2020 at 12:47:22 +0200, Philippe Mathieu-Daudé wrote: > We always miswrote the Fuloong machine... Fix its name. > Add an machine alias to the previous name for backward > compatibility. > > Suggested-by: Aleksandar Markovic > Message-id: <20200510210128.18343-5-f4...@amsat.org>