[Qemu-devel] [PATCH v2] hw/ppc/spapr: Fix segfault when instantiating a 'pc-dimm' without 'memdev'

2017-08-20 Thread Thomas Huth
QEMU currently crashes when trying to use a 'pc-dimm' on the pseries machine without specifying its 'memdev' property. This happens because pc_dimm_get_memory_region() does not check whether the 'memdev' property has properly been set by the user. Looking closer at this function, it's also obvious

Re: [Qemu-devel] [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Michal Hocko
On Fri 18-08-17 20:23:05, Michael S. Tsirkin wrote: > On Thu, Aug 17, 2017 at 11:26:55AM +0800, Wei Wang wrote: [...] > > +void walk_free_mem_block(void *opaque1, > > +unsigned int min_order, > > +void (*visit)(void *opaque2, > > You can just avoid opaque2 c

Re: [Qemu-devel] [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Michal Hocko
On Mon 21-08-17 14:12:47, Wei Wang wrote: > On 08/18/2017 09:46 PM, Michal Hocko wrote: [...] > >>+/** > >>+ * walk_free_mem_block - Walk through the free page blocks in the system > >>+ * @opaque1: the context passed from the caller > >>+ * @min_order: the minimum order of free lists to check > >>

Re: [Qemu-devel] [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-20 Thread Wei Wang
On 08/18/2017 09:46 PM, Michal Hocko wrote: On Thu 17-08-17 11:26:55, Wei Wang wrote: This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is the caller's r

Re: [Qemu-devel] Memory use with >100 virtio devices

2017-08-20 Thread Alexey Kardashevskiy
On 21/08/17 14:31, David Gibson wrote: > On Fri, Aug 18, 2017 at 02:18:53PM +0100, Stefan Hajnoczi wrote: >> On Fri, Aug 18, 2017 at 03:39:20PM +1000, Alexey Kardashevskiy wrote: >>> ==94451== 4 of 10 >>> ==94451== max-live:314,649,600 in 150 blocks >>>

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-20 Thread Wei Wang
On 08/19/2017 02:10 AM, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 04:36:06PM +0800, Wei Wang wrote: On 08/18/2017 10:28 AM, Michael S. Tsirkin wrote: On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: Add a new vq to report hints of guest free pages to the host. Signed-off-by:

Re: [Qemu-devel] [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-20 Thread Wei Wang
On 08/19/2017 02:26 AM, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 04:41:41PM +0800, Wei Wang wrote: On 08/18/2017 10:13 AM, Michael S. Tsirkin wrote: On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: Add a new vq to report hints of guest free pages to the host. Please add some

Re: [Qemu-devel] [PATCH V3 0/4] Optimize COLO-compare performance

2017-08-20 Thread Zhang Chen
On 08/21/2017 11:55 AM, Jason Wang wrote: On 2017年08月21日 09:45, Zhang Chen wrote: Hi~~ All~ No one review this series for a long time. Ping... Looks ok to me. But I don't like patch 1 since it adds more TODO especially for a non-exist function colo_notify_checkpoint(). I tend to hav

[Qemu-devel] [Bug 1711828] Re: lock mov non generated #UD

2017-08-20 Thread Thomas Huth
Could you please add a proper description to this bug? Please also try first whether your problem also occurs with the latest released version of QEMU (version 2.9 or the 2.10 release candidate), to see whether it has been fixed there already. ** Changed in: qemu Status: New => Incomplete

Re: [Qemu-devel] [PATCH 03/15] ohci: Allow sysbus version to be used as a companion

2017-08-20 Thread David Gibson
On Sun, Aug 20, 2017 at 07:23:05PM +0200, BALATON Zoltan wrote: 1;4803;0c> Some PPC SoCs have an EHCI with OHCI companion USB controller. To > emulate this allow the sysbus version of OHCI to be used as a companion. > > Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson Gerd, if you're h

Re: [Qemu-devel] [PATCH 04/15] ehci: Add ppc4xx-ehci for the USB 2.0 controller in embedded PPC SoCs

2017-08-20 Thread David Gibson
On Sun, Aug 20, 2017 at 07:23:05PM +0200, BALATON Zoltan wrote: > Some PPC SoCs have an EHCI with OHCI companion USB controller. Add a > new type for this similar to types used for other embedded SoCs. > > Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson Gerd, again, if it's convenient

Re: [Qemu-devel] Memory use with >100 virtio devices

2017-08-20 Thread David Gibson
On Fri, Aug 18, 2017 at 02:18:53PM +0100, Stefan Hajnoczi wrote: > On Fri, Aug 18, 2017 at 03:39:20PM +1000, Alexey Kardashevskiy wrote: > > ==94451== 4 of 10 > > ==94451== max-live:314,649,600 in 150 blocks > > ==94451== tot-alloc: 314,649,600 in 150

Re: [Qemu-devel] [PATCH] hw/ppc/spapr: Fix segfault when instantiating a 'pc-dimm' without 'memdev'

2017-08-20 Thread David Gibson
On Fri, Aug 18, 2017 at 09:23:53AM +0200, Thomas Huth wrote: > On 18.08.2017 03:25, David Gibson wrote: > > On Thu, Aug 17, 2017 at 08:33:10PM +0200, Thomas Huth wrote: > >> QEMU currently crashes when trying to use a 'pc-dimm' on the pseries > >> machine without specifying its 'memdev' property. L

[Qemu-devel] [Bug 1042654] Re: Floppy disks and network not working on NT 3.1 on Qemu 1.2 rc1

2017-08-20 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042654 Title: Floppy disk

Re: [Qemu-devel] [PATCH V3 0/4] Optimize COLO-compare performance

2017-08-20 Thread Jason Wang
On 2017年08月21日 09:45, Zhang Chen wrote: Hi~~ All~ No one review this series for a long time. Ping... Looks ok to me. But I don't like patch 1 since it adds more TODO especially for a non-exist function colo_notify_checkpoint(). I tend to have it after colo_notify_checkpoint() is implem

Re: [Qemu-devel] 答复: Re: [PATCH] vhost: don't set vring call fd to -1 invhost_virtqueue_start for vhost-user

2017-08-20 Thread Jason Wang
On 2017年08月21日 11:28, lu.zhip...@zte.com.cn wrote: if (!vdev->use_guest_notifier_mask) { /* TODO: check and handle errors. */ vhost_virtqueue_mask(dev, vdev, idx, false) -- set right callfd } if (k->query_guest_notifiers && k->qu

Re: [Qemu-devel] [PATCH v2] net: rtl8139: do not use old_mmio accesses

2017-08-20 Thread Jason Wang
On 2017年08月16日 04:06, Matt Parker wrote: Both io and memory use the same mmio functions in the rtl8139 device. This patch removes the separate MemoryRegionOps and old_mmio accessors for memory, and replaces it with an alias to the io memory region. Signed-off-by: Matt Parker --- hw/net/rtl8

[Qemu-devel] 答复: Re: [PATCH] vhost: don't set vring call fd to -1 invhost_virtqueue_start for vhost-user

2017-08-20 Thread lu.zhipeng
>On 2017年08月21日 09:50, ZhiPeng Lu wrote:>> commit >96a3d98d2cdbd897ff5ab33427aa4cfb94077665 (vhost: don't set vring call>> if no >vector) set vring call fd to -1 for drivers does not use interrupt>> at >all(e.g virtio-net pmd). That patch setting vring call fd to -1 cause>> the >network to not

Re: [Qemu-devel] [PATCH] vhost: don't set vring call fd to -1 in vhost_virtqueue_start for vhost-user

2017-08-20 Thread Jason Wang
On 2017年08月21日 09:50, ZhiPeng Lu wrote: commit 96a3d98d2cdbd897ff5ab33427aa4cfb94077665 (vhost: don't set vring call if no vector) set vring call fd to -1 for drivers does not use interrupt at all(e.g virtio-net pmd). That patch setting vring call fd to -1 cause the network to not work when run

Re: [Qemu-devel] [PATCH] net/filter-rewriter.c: Fix rewirter checksum bug when use virtio-net

2017-08-20 Thread Jason Wang
On 2017年08月21日 09:42, Zhang Chen wrote: Hi~ All~ Someone can review it? Just a ping for this patch. Thanks Zhang Chen Queued this for 2.11. Thanks

[Qemu-devel] 答复: Re: [PATCHv3 01/03] qemu-iothread: IOThread supports the GMainContextevent loop

2017-08-20 Thread wang.yong155
>> +static gpointer iothread_g_main_context_init(gpointer opaque)>> +{>> + >> AioContext *ctx>> +IOThread *iothread = opaque>> +GSource *source>> >> +>> +iothread->worker_context = g_main_context_new()>> +>> +ctx = >> iothread_get_aio_context(iothread)>> +source = aio_get_

Re: [Qemu-devel] [PATCH] x86: Skip check apic_id_limit for Xen

2017-08-20 Thread Lan Tianyu
On 2017年08月19日 00:38, Eduardo Habkost wrote: > On Thu, Aug 17, 2017 at 09:37:10AM +0800, Lan Tianyu wrote: >> On 2017年08月16日 19:21, Paolo Bonzini wrote: >>> On 16/08/2017 02:22, Lan Tianyu wrote: Xen vIOMMU device model will be in Xen hypervisor. Skip vIOMMU check for Xen here when vcpu n

[Qemu-devel] [PATCH] vhost: don't set vring call fd to -1 in vhost_virtqueue_start for vhost-user

2017-08-20 Thread ZhiPeng Lu
commit 96a3d98d2cdbd897ff5ab33427aa4cfb94077665 (vhost: don't set vring call if no vector) set vring call fd to -1 for drivers does not use interrupt at all(e.g virtio-net pmd). That patch setting vring call fd to -1 cause the network to not work when running dpdk in the guest. The openvswitch port

Re: [Qemu-devel] [PATCH V3 0/4] Optimize COLO-compare performance

2017-08-20 Thread Zhang Chen
Hi~~ All~ No one review this series for a long time. Ping... Thanks Zhang Chen On 07/19/2017 03:29 PM, Zhang Chen wrote: In this serise, we do a lot of job to optimize COLO net performance. Mainly focus on TCP protocol. V3: - Rebase on upstream. - Remove origin p2. - Move the "check

Re: [Qemu-devel] [PATCH] net/filter-rewriter.c: Fix rewirter checksum bug when use virtio-net

2017-08-20 Thread Zhang Chen
Hi~ All~ Someone can review it? Just a ping for this patch. Thanks Zhang Chen On 07/28/2017 06:03 PM, Zhang Chen wrote: Because vnet_hdr have a offset to net packet, we must add it when use virtio-net. Signed-off-by: Zhang Chen --- net/filter-rewriter.c | 6 -- 1 file changed, 4 in

Re: [Qemu-devel] [Qemu-arm] [RFC v6 8/9] hw/arm/smmuv3: VFIO integration

2017-08-20 Thread Linu Cherian
Hi Eric, On Fri Aug 11, 2017 at 04:22:33PM +0200, Eric Auger wrote: > This patch allows doing PCIe passthrough with a guest exposed > with a vSMMUv3. It implements the replay and notify_flag_changed > iommu ops. Also on TLB and data structure invalidation commands, > we replay the mappings so tha

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread BALATON Zoltan
On Sun, 20 Aug 2017, Mark Cave-Ayland wrote: On 20/08/17 22:59, BALATON Zoltan wrote: So I'd suggest adding debugging to alloc_tlb() to find out why TLB slot 0 is being chosen again for the 0x8000 mapping even though free_tlb() hasn't been called for that entry. I've tried that but it onl

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread Mark Cave-Ayland
On 20/08/17 22:59, BALATON Zoltan wrote: >> So I'd suggest adding debugging to alloc_tlb() to find out why TLB slot >> 0 is being chosen again for the 0x8000 mapping even though >> free_tlb() hasn't been called for that entry. > > I've tried that but it only confirmed what I thought. This is

Re: [Qemu-devel] [PATCH v2 3/3] ipmi: Add the platform event message command

2017-08-20 Thread Corey Minyard
On 08/20/2017 05:24 PM, Philippe Mathieu-Daudé wrote: Hi Corey, On 08/20/2017 06:46 PM, miny...@acm.org wrote: From: Corey Minyard This lets an event be added to the SEL as if a sensor had generated it. The OpenIPMI driver uses it for storing panic event information. Signed-off-by: Corey Mi

Re: [Qemu-devel] [PATCH v2 3/3] ipmi: Add the platform event message command

2017-08-20 Thread Philippe Mathieu-Daudé
Hi Corey, On 08/20/2017 06:46 PM, miny...@acm.org wrote: From: Corey Minyard This lets an event be added to the SEL as if a sensor had generated it. The OpenIPMI driver uses it for storing panic event information. Signed-off-by: Corey Minyard --- hw/ipmi/ipmi_bmc_sim.c | 24 ++

Re: [Qemu-devel] [PATCH 10/15] ppc440: Add emulation of plb-pcix controller found in some 440 SoCs

2017-08-20 Thread Philippe Mathieu-Daudé
Hi Zoltan, On 08/20/2017 02:23 PM, BALATON Zoltan wrote: This is the PCIX controller found in newer 440 core SoCs e.g. the AMMC 460EX. The device tree refers to this as plb-pcix compared to the plb-pci controller in older 440 SoCs. Signed-off-by: BALATON Zoltan --- hw/ppc/Makefile.objs | 2

Re: [Qemu-devel] [PATCH 13/15] ppc4xx: Add more PLB registers

2017-08-20 Thread BALATON Zoltan
On Sun, 20 Aug 2017, Philippe Mathieu-Daudé wrote: On 08/20/2017 02:23 PM, BALATON Zoltan wrote: These registers are present in 440 SoCs (and maybe in others too) and U-Boot accesses them when printing register info. We don't emulate these but add them to avoid crashing when they are read or wri

Re: [Qemu-devel] [PATCH 15/15] ppc: Add aCube Sam460ex board

2017-08-20 Thread Philippe Mathieu-Daudé
Hi Zoltan, On 08/20/2017 02:23 PM, BALATON Zoltan wrote: Add emulation of aCube Sam460ex board based on AMCC 460EX embedded SoC. This is not a full implementation yet with a lot of components still missing but enough to start a Linux kernel and the U-Boot firmware. Signed-off-by: François Revol

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread BALATON Zoltan
On Sun, 20 Aug 2017, Mark Cave-Ayland wrote: Just glancing at the code again it looks like the choice of slot is determined by alloc_tlb(). It seems there are 64 TLB slots stored in tlb_info as 2 x 32-bit bitmaps where a 1 bit indicates the slot is free and a 0 bit indicates the slot is in use.

Re: [Qemu-devel] [PATCH 13/15] ppc4xx: Add more PLB registers

2017-08-20 Thread Philippe Mathieu-Daudé
Hi Zoltan, On 08/20/2017 02:23 PM, BALATON Zoltan wrote: These registers are present in 440 SoCs (and maybe in others too) and U-Boot accesses them when printing register info. We don't emulate these but add them to avoid crashing when they are read or written. Your code isn't incorrect but it

[Qemu-devel] [PATCH v2 1/3] ipmi: Fix SEL get/set time commands

2017-08-20 Thread minyard
From: Corey Minyard The minimum message size was on the wrong commands, for getting the time it's zero and for setting the time it's 6. Signed-off-by: Corey Minyard --- hw/ipmi/ipmi_bmc_sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ip

[Qemu-devel] [PATCH v2 0/3] ipmi: Fix SEL get/set time commands

2017-08-20 Thread minyard
Resend, with the style issues and the problem that Cédric pointed out. Thanks Cédric, for the review. Changes from v1: * Get the data from the proper offset in the command array. * Use {} on all if statements.

[Qemu-devel] [PATCH v2 2/3] ipmi: Don't set the timestamp on add events that don't have it

2017-08-20 Thread minyard
From: Corey Minyard According to the spec, from section "32.3 OEM SEL Record - Type E0h-FFh", event types from 0x0e to 0xff do not have a timestamp. So don't set it when adding those types. This required putting the timestamp in a temporary buffer, since it's still required to set the last addit

[Qemu-devel] [PATCH v2 3/3] ipmi: Add the platform event message command

2017-08-20 Thread minyard
From: Corey Minyard This lets an event be added to the SEL as if a sensor had generated it. The OpenIPMI driver uses it for storing panic event information. Signed-off-by: Corey Minyard --- hw/ipmi/ipmi_bmc_sim.c | 24 1 file changed, 24 insertions(+) diff --git a/hw

[Qemu-devel] [PATCH 15/15] ppc: Add aCube Sam460ex board

2017-08-20 Thread BALATON Zoltan
Add emulation of aCube Sam460ex board based on AMCC 460EX embedded SoC. This is not a full implementation yet with a lot of components still missing but enough to start a Linux kernel and the U-Boot firmware. Signed-off-by: François Revol Signed-off-by: BALATON Zoltan --- default-configs/ppcemb

[Qemu-devel] [PATCH 10/15] ppc440: Add emulation of plb-pcix controller found in some 440 SoCs

2017-08-20 Thread BALATON Zoltan
This is the PCIX controller found in newer 440 core SoCs e.g. the AMMC 460EX. The device tree refers to this as plb-pcix compared to the plb-pci controller in older 440 SoCs. Signed-off-by: BALATON Zoltan --- hw/ppc/Makefile.objs | 2 +- hw/ppc/ppc440_pcix.c | 516 +

[Qemu-devel] [PATCH 01/15] ppc4xx: Move MAL from ppc405_uc to ppc4xx_devs

2017-08-20 Thread BALATON Zoltan
This device appears in other SoCs as well not just in 405 ones Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson --- hw/ppc/ppc405_uc.c | 263 --- hw/ppc/ppc4xx_devs.c| 264 include/hw/pp

[Qemu-devel] [PATCH 14/15] ppc4xx: Add device models found in PPC440 core SoCs

2017-08-20 Thread BALATON Zoltan
These devices are found in newer SoCs based on 440 core e.g. the 460EX (http://www.embeddeddeveloper.com/assets/processors/amcc/datasheets/ PP460EX_DS2063.pdf) Signed-off-by: BALATON Zoltan --- hw/ppc/ppc440.h| 26 + hw/ppc/ppc440_uc.c | 1305 +++

[Qemu-devel] [PATCH 09/15] hw/ide: Emulate SiI3112 SATA controller

2017-08-20 Thread BALATON Zoltan
This is a common generic PCI SATA conroller that is also used in PCs but more importantly guests running on the Sam460ex board prefer this card and have a driver for it (unlike for other SATA controllers already emulated). Signed-off-by: BALATON Zoltan --- hw/ide/Makefile.objs | 1 + hw/ide/si

[Qemu-devel] [PATCH 12/15] ppc4xx: Export ECB and PLB emulation

2017-08-20 Thread BALATON Zoltan
Make these device models available outside ppc405_uc.c for reuse in 460EX emulation. They are left in their current place for now because they are used mostly unchanged and I'm not sure these correctly model the components in 440 SoCs (but they seem to be good enough). These functions could be move

[Qemu-devel] [PATCH 07/15] ppc4xx_i2c: Move to hw/i2c

2017-08-20 Thread BALATON Zoltan
Signed-off-by: BALATON Zoltan --- default-configs/ppc-softmmu.mak| 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + hw/i2c/Makefile.objs | 1 + hw/i2c/ppc4xx_i2c.c| 216 + hw/ppc/

[Qemu-devel] [PATCH 05/15] ppc4xx: Split off 4xx I2C emulation from ppc405_uc to its own file

2017-08-20 Thread BALATON Zoltan
This device appears in other SoCs as well not just in 405 ones and subsequent patches will modify it, so move it out of ppc405_uc.c in preparation Signed-off-by: BALATON Zoltan --- hw/ppc/Makefile.objs | 2 +- hw/ppc/ppc405.h | 2 + hw/ppc/ppc405_uc.c | 241 ---

[Qemu-devel] [PATCH 03/15] ohci: Allow sysbus version to be used as a companion

2017-08-20 Thread BALATON Zoltan
Some PPC SoCs have an EHCI with OHCI companion USB controller. To emulate this allow the sysbus version of OHCI to be used as a companion. Signed-off-by: BALATON Zoltan --- hw/usb/hcd-ohci.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/

[Qemu-devel] [PATCH 06/15] ppc4xx_i2c: QOMify

2017-08-20 Thread BALATON Zoltan
Signed-off-by: BALATON Zoltan --- hw/ppc/ppc405.h | 2 - hw/ppc/ppc405_uc.c | 5 +- hw/ppc/ppc4xx_i2c.c | 154 ++-- include/hw/i2c/ppc4xx_i2c.h | 61 ++ 4 files changed, 113 insertions(+), 109 deletions(-)

[Qemu-devel] [PATCH 00/15] Sam460ex emulation

2017-08-20 Thread BALATON Zoltan
This is the revised version of my series described in the cover letter of the RFC series: http://lists.nongnu.org/archive/html/qemu-ppc/2017-08/msg00112.html This contains reorganisation and fixes suggested by review comments. Even though I think I haven't changed anything (apart from mostly movi

[Qemu-devel] [PATCH 11/15] ppc: Add 460EX embedded CPU

2017-08-20 Thread BALATON Zoltan
Despite its name it is a 440 core CPU Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson --- target/ppc/cpu-models.c | 3 +++ target/ppc/cpu-models.h | 1 + target/ppc/translate_init.c | 38 ++ 3 files changed, 42 insertions(+) diff --git a/ta

[Qemu-devel] [PATCH 08/15] ppc4xx_i2c: Implement basic I2C functions

2017-08-20 Thread BALATON Zoltan
Enough to please U-Boot and make it able to detect SDRAM SPD EEPROMs Signed-off-by: François Revol Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson --- hw/i2c/ppc4xx_i2c.c | 210 ++-- include/hw/i2c/ppc4xx_i2c.h | 3 + 2 files changed, 1

[Qemu-devel] [PATCH 02/15] ppc4xx: Make MAL emulation more generic

2017-08-20 Thread BALATON Zoltan
Allow MAL with more RX and TX channels as found in newer versions. Signed-off-by: BALATON Zoltan Reviewed-by: David Gibson --- hw/ppc/ppc405_uc.c | 2 +- hw/ppc/ppc4xx_devs.c| 171 +++- include/hw/ppc/ppc4xx.h | 3 +- 3 files changed, 70

[Qemu-devel] [PATCH 04/15] ehci: Add ppc4xx-ehci for the USB 2.0 controller in embedded PPC SoCs

2017-08-20 Thread BALATON Zoltan
Some PPC SoCs have an EHCI with OHCI companion USB controller. Add a new type for this similar to types used for other embedded SoCs. Signed-off-by: BALATON Zoltan --- hw/usb/hcd-ehci-sysbus.c | 25 + hw/usb/hcd-ehci.h| 1 + 2 files changed, 26 insertions(+) dif

[Qemu-devel] [PATCH 13/15] ppc4xx: Add more PLB registers

2017-08-20 Thread BALATON Zoltan
These registers are present in 440 SoCs (and maybe in others too) and U-Boot accesses them when printing register info. We don't emulate these but add them to avoid crashing when they are read or written. Signed-off-by: BALATON Zoltan --- hw/ppc/ppc405_uc.c | 12 +--- 1 file changed, 9 i

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread Mark Cave-Ayland
On 20/08/17 14:35, BALATON Zoltan wrote: > Anyway, this makes more sense because if the TLB 0 entry is replaced > like the above log shows then there will be no mapping for the ff7fd648 > address until the next map_region call maps it. On real hardware this > seems to work but on QEMU this causes

[Qemu-devel] [PATCH] scripts: Support building with Python 3

2017-08-20 Thread David Michael
This allows building with "./configure --python=python3", where the python3 program is at least version 3.6. It preserves compatibility with Python 2. The changes include: - Avoiding "print" usage - Using bytes with files opened in binary mode - Switching .iteritems() to .items() - Addin

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread BALATON Zoltan
On Sun, 20 Aug 2017, Mark Cave-Ayland wrote: I've only spent a small amount of time in PPC MMU land via OpenBIOS but the obvious thing that stands out here is this: helper_440_tlbwe word 0 entry 0 value ff7f7210 tlb_flush_nocheck: (count: 36) helper_440_tlbwe word 1 entry 0 value 007f7000 tlb_fl

Re: [Qemu-devel] [PATCH v2 0/7] Refactor DMG driver to have chunk size independence

2017-08-20 Thread Ashijeet Acharya
On Fri, May 5, 2017 at 7:29 PM, Stefan Hajnoczi wrote: > On Thu, Apr 27, 2017 at 01:36:30PM +0530, Ashijeet Acharya wrote: > > This series helps to provide chunk size independence for DMG driver to > prevent > > denial-of-service in cases where untrusted files are being accessed by > the user. >

Re: [Qemu-devel] [PATCH v3] hw/acpi-build: Fix SRAT memory building when there is no memory in node0

2017-08-20 Thread Dou Liyang
Hi Eduardo, At 08/19/2017 12:48 AM, Eduardo Habkost wrote: On Thu, Aug 17, 2017 at 01:58:40PM +0800, Dou Liyang wrote: Hi Igor, I tested this patch with following guests: 1. RHEL 6.5 with Linux 2.6.32 2. RHEL 7.0 with Linux 3.10.0 3. Fedora 23 with Linux 4.13.0-rc5 4. window 2003 service 5. w

Re: [Qemu-devel] [PATCH 3/3] ipmi: Add the platform event message command

2017-08-20 Thread Cédric Le Goater
On 08/19/2017 11:40 PM, miny...@acm.org wrote: > From: Corey Minyard > > This lets an event be added to the SEL as if a sensor had generated > it. The OpenIPMI driver uses it for storing panic event information. > > Signed-off-by: Corey Minyard > --- > hw/ipmi/ipmi_bmc_sim.c | 23

Re: [Qemu-devel] [PATCH 2/3] ipmi: Don't set the timestamp on add events that don't have it

2017-08-20 Thread Cédric Le Goater
On 08/19/2017 11:40 PM, miny...@acm.org wrote: > From: Corey Minyard > > According to the spec, event types from 0x0e to 0xff do not have a > timestamp. >From section "32.3 OEM SEL Record - Type E0h-FFh" > So don't set it when adding those types. This required > putting the timestamp in a te

Re: [Qemu-devel] [PATCH 1/3] ipmi: Fix SEL get/set time commands

2017-08-20 Thread Cédric Le Goater
On 08/19/2017 11:40 PM, miny...@acm.org wrote: > From: Corey Minyard > > The minimum message size was wrong for both commands, for getting > the time it's zero and for setting the time it's 4. And the data > was being pulled from the wrong place in the set time message, it > should be the first

Re: [Qemu-devel] [Qemu-ppc] BookE MMU question

2017-08-20 Thread Mark Cave-Ayland
On 20/08/17 00:19, BALATON Zoltan wrote: > This function is defined in AROS/arch/ppc-sam440/kernel/mmu.c:95 at the > link below. I think it basically generates tlbwe instructions to set up > a TLB entry to map the region to a virtual address. > >> eg: what is in the MAS registers before the tlbwe