Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-16 Thread Alexander Graf
On 16.02.2012, at 21:41, Scott Wood wrote: > On 02/16/2012 01:38 PM, Avi Kivity wrote: >> On 02/16/2012 09:34 PM, Alexander Graf wrote: >>> On 16.02.2012, at 20:24, Avi Kivity wrote: >>> >>>> On 02/15/2012 04:08 PM, Alexander Graf wrote: >>>

Re: [Qemu-devel] [PATCH] Add nvram to default boot device list

2012-10-11 Thread Alexander Graf
nfused by this? Also, this new 'x' bit needs to be documented. Plus, we need a SLOF update to make use of it. Alex > > Suggested by: Alexander Graf > > Signed-off-by: Avik Sil > --- > vl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > dif

Re: [Qemu-devel] [PATCH 1/3] linux-user: implement FS_IOC_GETFLAGS ioctl

2012-10-11 Thread Alexander Graf
On 11.10.2012, at 15:36, Riku Voipio wrote: > Hi Alexander, > > On 21 August 2012 16:47, Peter Maydell wrote: >>> +#define TARGET_FS_IOC_GETFLAGS TARGET_IORU('f', 1) >> >> This and the SETFLAGS one in the next patch fail the consistency >> check that an x86_64-on-x86_64 linux-user binary perfo

Re: [Qemu-devel] [PATCH] Add nvram to default boot device list

2012-10-11 Thread Alexander Graf
On 12.10.2012, at 00:59, David Gibson wrote: > On Thu, Oct 11, 2012 at 07:34:42AM +0530, Avik Sil wrote: >> This patch adds nvram specified boot device into qemu default >> boot_devices list. This helps firmware to boot from nvram specified >> boot device if no -boot option is specified. > > I r

Re: [Qemu-devel] [PATCH] Add nvram to default boot device list

2012-10-11 Thread Alexander Graf
On 12.10.2012, at 02:28, David Gibson wrote: > On Fri, Oct 12, 2012 at 02:03:00AM +0200, Alexander Graf wrote: >> >> On 12.10.2012, at 00:59, David Gibson wrote: >> >>> On Thu, Oct 11, 2012 at 07:34:42AM +0530, Avik Sil wrote: >>>> This patch adds nvr

Re: [Qemu-devel] [PATCH 4/5] s390: sclp signal quiesce support

2012-10-11 Thread Alexander Graf
On 02.10.2012, at 09:33, Jens Freimann wrote: > From: Heinz Graalfs > > This implements the sclp signal quiesce event via the SCLP Event > Facility. > This allows to gracefully shutdown a guest by using system_powerdown > notifiers. It creates a service interrupt that will trigger a > Read Even

[Qemu-devel] [PATCH] Memory-API: Make eventfd adhere to device endianness

2012-10-15 Thread Alexander Graf
direction. Signed-off-by: Alexander Graf --- memory.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index 4f3ade0..d2f2fd6 100644 --- a/memory.c +++ b/memory.c @@ -1217,6 +1217,7 @@ void memory_region_add_eventfd(MemoryRegion *mr, }; unsigned i

Re: [Qemu-devel] [PATCH] Add nvram to default boot device list

2012-10-16 Thread Alexander Graf
On 16.10.2012, at 05:44, Avik Sil wrote: > On 10/12/2012 05:33 AM, Alexander Graf wrote: >> >> On 12.10.2012, at 00:59, David Gibson wrote: >> >>> On Thu, Oct 11, 2012 at 07:34:42AM +0530, Avik Sil wrote: >>>> This patch adds nvram specified boot

Re: [Qemu-devel] KVM call agenda for 2012-10-16

2012-10-16 Thread Alexander Graf
-boot and -bootindex On 15.10.2012, at 12:17, Juan Quintela wrote: > > Hi > > Please send in any agenda topics you are interested in. > > Later, Juan. > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majord...@vger.kernel.org > More majordomo

Re: [Qemu-devel] nvram and boot order

2012-10-17 Thread Alexander Graf
On 18.10.2012, at 03:18, Benjamin Herrenschmidt wrote: > On Thu, 2012-10-18 at 11:09 +1100, David Gibson wrote: > That's horrible; if you use -boot just once it will clobber a persistent NVRAM's boot order. I see that a means of changing the default boot order from management

Re: [Qemu-devel] [PATCH 13/15] target-pcc: Convert ppcemb_tlb_t to use fixed 64-bit RPN

2012-10-17 Thread Alexander Graf
On 18.10.2012, at 07:50, David Gibson wrote: > Currently the ppcemb_tlb_t struct, used on a number of embedded ppc models > to represent a TLB entry contains a target_phys_addr_t. That works > reasonably for now, but is troublesome for saving the state, which we'll > want to do in future. tar

Re: [Qemu-devel] nvram and boot order

2012-10-19 Thread Alexander Graf
On 19.10.2012, at 10:24, David Gibson wrote: > On Thu, Oct 18, 2012 at 08:32:54AM +0200, Alexander Graf wrote: >> >> >> On 18.10.2012, at 03:18, Benjamin Herrenschmidt >> wrote: >> >>> On Thu, 2012-10-18 at 11:09 +1100, David Gibson wrote: >

Re: [Qemu-devel] [PATCH v3 00/26] q35 qemu support

2012-10-22 Thread Alexander Graf
On 22.10.2012, at 16:03, Eric Blake wrote: > On 10/22/2012 08:23 AM, Michael S. Tsirkin wrote: >> On Mon, Oct 22, 2012 at 07:00:56AM -0600, Eric Blake wrote: >>> On 10/22/2012 07:16 AM, Michael S. Tsirkin wrote: >>> I worry about need to maintain bug for bug compatibility on the unlik

Re: [Qemu-devel] [PATCH 1/2] Make default boot order machine specific

2012-10-23 Thread Alexander Graf
On 23.10.2012, at 12:09, Avik Sil wrote: > This patch makes default boot order machine specific instead of > set globally. The default boot order can be set per machine in > QEMUMachine default_machine_opts, or by the command line using > -machine ,boot=, or by standard -boot > option. This allow

Re: [Qemu-devel] [PATCH 1/2] Make default boot order machine specific

2012-10-23 Thread Alexander Graf
On 23.10.2012, at 15:24, Anthony Liguori wrote: > Alexander Graf writes: > >> On 23.10.2012, at 12:09, Avik Sil wrote: >> >>> This patch makes default boot order machine specific instead of >>> set globally. The default boot order can be set per machine in

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/2] Make default boot order machine specific

2012-10-23 Thread Alexander Graf
On 24.10.2012, at 00:43, David Gibson wrote: > On Tue, Oct 23, 2012 at 12:20:08PM +0200, Alexander Graf wrote: >> >> On 23.10.2012, at 12:09, Avik Sil wrote: >> >>> This patch makes default boot order machine specific instead of >>> set globally. The de

Re: [Qemu-devel] [PATCH v2 0/2] Qemu boot order patch series

2012-10-25 Thread Alexander Graf
On 25.10.2012, at 16:38, Avik Sil wrote: > Hi, > > This patch series implements requirement 1 of the mailing list discussion > [1], i.e., to allow a machine to specify if it wants a default boot order or > not. Looks a lot better now :). I'll leave this on the ML for a few more days to give

Re: [Qemu-devel] [PATCH v2 1/2] Make default boot order machine specific

2012-10-25 Thread Alexander Graf
On 25.10.2012, at 22:50, Peter Maydell wrote: > On 25 October 2012 21:18, Anthony Liguori wrote: >> The other approach to this would be: >> >> static QEMUMachine pseries_machine = { >>.no_boot_order = 1, >> }; >> >> Which I think is what Peter is suggesting. I'm not a huge fan of this >>

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/2] Make default boot order machine specific

2012-10-26 Thread Alexander Graf
On 25.10.2012, at 22:57, Alexander Graf wrote: > > On 25.10.2012, at 22:50, Peter Maydell wrote: > >> On 25 October 2012 21:18, Anthony Liguori wrote: >>> The other approach to this would be: >>> >>> static QEMUMachine pseries_machine = { >>

Re: [Qemu-devel] [Qemu-ppc] private handlers to reload images when virtual machine reset.

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 06:21, Olivia Yin wrote: > This is the first part of the patches which remove rom related functions in > loader.c The second part will optimize memory regions which use rom_ptr. > > These patches are against the master branch of git://git.qemu.org/qemu.git. > > The v2 patches

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH v2 1/5] define image_file_reset and image_blob_reset

2012-10-29 Thread Alexander Graf
Missing patch description On 29.10.2012, at 06:21, Olivia Yin wrote: > Signed-off-by: Olivia Yin > --- > hw/loader.c | 39 +++ > hw/loader.h | 18 ++ > 2 files changed, 57 insertions(+), 0 deletions(-) > > diff --git a/hw/loader.c b/hw/loade

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH v2 2/5] use reset handlers to reload kernel and initrd

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 06:21, Olivia Yin wrote: > Signed-off-by: Olivia Yin > --- > hw/loader.c | 64 ++ > 1 files changed, 42 insertions(+), 22 deletions(-) > > diff --git a/hw/loader.c b/hw/loader.c > index cadf58f..9e2c3c8 100644 > --- a/hw

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH v2 3/5] replace rom_add_file* with image_file_reset

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 06:21, Olivia Yin wrote: > Signed-off-by: Olivia Yin > --- > hw/cirrus_vga.c |6 +- > hw/pc.c |6 +- > hw/pc_sysfw.c | 14 +++--- > hw/pci.c| 10 -- > hw/sga.c|6 +- > hw/vga-isa.c|6 +- > 6 files chang

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH v2 3/5] replace rom_add_file* with image_file_reset

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 09:48, Alexander Graf wrote: > > On 29.10.2012, at 06:21, Olivia Yin wrote: > >> Signed-off-by: Olivia Yin >> --- >> hw/cirrus_vga.c |6 +- >> hw/pc.c |6 +- >> hw/pc_sysfw.c | 14 +++--- >>

[Qemu-devel] [PATCH 01/22] Remove TARGET_PHYS_ADDR_BITS define completely

2012-10-29 Thread Alexander Graf
d-off-by: Alexander Graf --- target-ppc/mmu_helper.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 4a9bb5b..811f47f 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -1509,10 +1509,8 @@ static

[Qemu-devel] [PULL 00/22] ppc patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
://repo.or.cz/qemu/agraf.git ppc-for-upstream Alexander Graf (16): PPC: Bamboo: Fix memory size DT property PPC: 440: Emulate DCBR0 ac97: convert PIO to new memory api read/write virtio-pci: convert PIO to new memory api read/write es1370: convert PIO to new memory api read

[Qemu-devel] [PATCH 10/22] virtio-pci: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/virtio-pci.c | 126 +- 1 files changed, 49 insertions(+), 77 deletions(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index c7f20c3..9603150 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -374,79

[Qemu-devel] [PATCH 17/22] rtl8139: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/rtl8139.c | 78 ++--- 1 files changed, 36 insertions(+), 42 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 10ced8b..e3aa8bf 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -3187,38 +3187,6

[Qemu-devel] [PATCH 06/22] pseries: Don't allow duplicate registration of hcalls or RTAS calls

2012-10-29 Thread Alexander Graf
other problems, so this patch makes duplicate registrations a bug, to prevent the old behaviour from hiding other bugs. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_hcall.c |3 +-- hw/spapr_rtas.c |9 + 2 files changed, 10 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH 05/22] Add USB option in machine options

2012-10-29 Thread Alexander Graf
. Signed-off-by: Li Zhang Acked-by: Alexander Graf Signed-off-by: Alexander Graf --- hw/nseries.c |3 ++- hw/pc_piix.c |2 +- hw/ppc_newworld.c | 19 +++ hw/ppc_oldworld.c |2 +- hw/ppc_prep.c |2 +- hw/pxa2xx.c |4 ++-- hw/realview.c

[Qemu-devel] [PATCH 14/22] mc146818rtc: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/mc146818rtc.c | 19 +++ 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c index 332a77d..98839f2 100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -383,7 +383,8 @@ static void

[Qemu-devel] [PATCH 12/22] i8254: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/i8254.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/hw/i8254.c b/hw/i8254.c index 77bd5e8..bea5f92 100644 --- a/hw/i8254.c +++ b/hw/i8254.c @@ -111,7 +111,8 @@ static void pit_latch_count(PITChannelState *s

[Qemu-devel] [PATCH 15/22] pc port92: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/pc.c | 19 +++ 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 16de04c..a02b397 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -421,7 +421,8 @@ typedef struct Port92State { qemu_irq *a20_out

[Qemu-devel] [PATCH 16/22] pckbd: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/pckbd.c | 48 +++- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/hw/pckbd.c b/hw/pckbd.c index 000c7f0..5bb3e0a 100644 --- a/hw/pckbd.c +++ b/hw/pckbd.c @@ -194,7 +194,8 @@ static void

[Qemu-devel] [PATCH 07/22] target-ppc: Rework storage of VPA registration state

2012-10-29 Thread Alexander Graf
: Alexander Graf --- hw/spapr_hcall.c| 26 ++ target-ppc/cpu.h|7 +++ target-ppc/translate_init.c |7 --- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/hw/spapr_hcall.c b/hw/spapr_hcall.c index 762493a..621dabd 100644

Re: [Qemu-devel] [PATCH 01/22] Remove TARGET_PHYS_ADDR_BITS define completely

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 11:38, Peter Maydell wrote: > On 29 October 2012 10:25, Alexander Graf wrote: >> From: Peter Maydell >> >> Following commit 4be403c81 TARGET_PHYS_ADDR_BITS is always 64, >> and it's only used in one place (that commit removed all the >>

[Qemu-devel] [PATCH 13/22] m48t59: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/m48t59.c | 24 ++-- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/hw/m48t59.c b/hw/m48t59.c index 9eb1a09..9e8e692 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -27,6 +27,7 @@ #include "sysemu.h" #include

[Qemu-devel] [PATCH 03/22] PPC: 440: Emulate DCBR0

2012-10-29 Thread Alexander Graf
The DCBR0 register on 440 is used to implement system reset. The same register is used on 405 as well, so just reuse the code. Signed-off-by: Alexander Graf --- target-ppc/translate_init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-ppc/translate_init.c b

[Qemu-devel] [PATCH 11/22] es1370: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/es1370.c | 46 -- 1 files changed, 36 insertions(+), 10 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index e34234c..e0c9729 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -908,18 +908,44 @@ static void

[Qemu-devel] [PATCH 19/22] vmport: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/vmport.c | 21 - 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/hw/vmport.c b/hw/vmport.c index a4f52ee..3ab3a14 100644 --- a/hw/vmport.c +++ b/hw/vmport.c @@ -54,7 +54,8 @@ void vmport_register(unsigned char command

[Qemu-devel] [PATCH 20/22] xen_platform: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/xen_platform.c | 48 ++-- 1 files changed, 38 insertions(+), 10 deletions(-) diff --git a/hw/xen_platform.c b/hw/xen_platform.c index 890eb72..a54e7a2 100644 --- a/hw/xen_platform.c +++ b/hw/xen_platform.c

[Qemu-devel] [PATCH 04/22] e500: Fix serial initialization

2012-10-29 Thread Alexander Graf
From: Bharat Bhushan it was wrongly using serial_hds[0] instead of serial_hds[1] Signed-off-by: Bharat Bhushan Reviewed-by: Andreas Färber Signed-off-by: Alexander Graf --- hw/ppc/e500.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c

Re: [Qemu-devel] [PULL 00/22] ppc patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 12:01, Andreas Färber wrote: > Am 29.10.2012 11:25, schrieb Alexander Graf: >> Hi Blue / Aurelien, >> >> This is my current patch queue for ppc. Please pull. > > Alex, this does not include my refactoring patches. Do you want them to > go th

[Qemu-devel] [PATCH 21/22] PPC: e500: Map PIO space into core memory region

2012-10-29 Thread Alexander Graf
On PPC, we don't have PIO. So usually PIO space behind a PCI bridge is accessible via MMIO. Do this mapping explicitly by mapping the PIO space of our PCI bus into a memory region that lives in memory space. Signed-off-by: Alexander Graf --- hw/ppc/e500.c|3 +-- hw/ppce500_pci.c |

[Qemu-devel] [PATCH 02/22] PPC: Bamboo: Fix memory size DT property

2012-10-29 Thread Alexander Graf
Device tree properties need to be specified in big endian. Fix the bamboo memory size property accordingly. Signed-off-by: Alexander Graf CC: qemu-sta...@nongnu.org --- hw/ppc440_bamboo.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc440_bamboo.c b/hw

[Qemu-devel] [PATCH 22/22] PPC: pseries: Remove hack for PIO window

2012-10-29 Thread Alexander Graf
Now that all users of old_portio are gone, we can remove the hack that enabled us to support them. Signed-off-by: Alexander Graf --- hw/spapr_pci.c | 44 +--- hw/spapr_pci.h |2 +- 2 files changed, 2 insertions(+), 44 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 09/22] ac97: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ac97.c | 109 +--- 1 files changed, 89 insertions(+), 20 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index 0f561fa..ce6a1dc 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -1226,32 +1226,101 @@ static

[Qemu-devel] [PATCH 08/22] pseries: Implement qemu initiated shutdowns using EPOW events

2012-10-29 Thread Alexander Graf
onality to be able to send a shutdown event to the guest. At least with modern guest kernels and a userspace that is up and running, this means that system_powerdown from the qemu monitor should now work correctly on pseries guests. Signed-off-by: David Gibson Signed-off-by: Alexander Graf -

[Qemu-devel] [PATCH 18/22] serial: convert PIO to new memory api read/write

2012-10-29 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/serial.c | 30 +- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index ae84b22..60283ea 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -26,6 +26,7 @@ #include "serial.h" #inc

Re: [Qemu-devel] [PATCH 6/6] s390: sclp ascii console support

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 13:13, Jens Freimann wrote: > From: Heinz Graalfs > > This code adds console support by implementing SCLP's ASCII Console > Data event. This is the same console as LPARs ASCII console or z/VMs > sysascii. > > The console can be specified manually with something like > -chard

Re: [Qemu-devel] [PATCH 0/6] s390 patches

2012-10-29 Thread Alexander Graf
On 29.10.2012, at 13:13, Jens Freimann wrote: > Hi Alex, > > this is our current s390 patch queue. The SCLP patches only received minor > review comments > last time they were posted and have been tested internally for a while now. > The same applies > to Christian's sync regs patch. Thanks,

[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine

2012-10-29 Thread Alexander Graf
When using -initrd in the virtio machine, we need to indicate the initrd start and size inside the kernel image. These parameters need to be stored in native endianness. Signed-off-by: Alexander Graf Acked-by: Richard Henderson Acked-by: Christian Borntraeger --- hw/s390-virtio.c |4

[Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
: git://repo.or.cz/qemu/agraf.git s390-for-upstream Alexander Graf (1): s390x: fix -initrd in virtio machine Christian Borntraeger (1): s390: use sync regs for register transfer Heinz Graalfs (5): s390/kvm_stat: correct sys_perf_event_open syscall number s390: sclp base

[Qemu-devel] [PATCH 1/7] s390x: fix -initrd in virtio machine

2012-10-29 Thread Alexander Graf
When using -initrd in the virtio machine, we need to indicate the initrd start and size inside the kernel image. These parameters need to be stored in native endianness. Signed-off-by: Alexander Graf Acked-by: Richard Henderson Acked-by: Christian Borntraeger --- hw/s390-virtio.c |4

[Qemu-devel] [PATCH 5/7] s390: sclp event support

2012-10-29 Thread Alexander Graf
iesce (via system_powerdown) and the ASCII console. Further down the road the sclp line mode console and configuration change events (e.g. cpu hotplug) can be implemented. Signed-off-by: Heinz Graalfs Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --

[Qemu-devel] [PATCH 3/7] s390: use sync regs for register transfer

2012-10-29 Thread Alexander Graf
: Jens Freimann Signed-off-by: Alexander Graf --- target-s390x/kvm.c | 112 ++- 1 files changed, 92 insertions(+), 20 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 07edf93..e19a44d 100644 --- a/target-s390x/kvm.c +++ b

[Qemu-devel] [PATCH 4/7] s390: sclp base support

2012-10-29 Thread Alexander Graf
future we could add additional commands for hotplug, call home and event handling. Signed-off-by: Heinz Graalfs Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --- hw/s390x/Makefile.objs |1 + hw/s390x/sclp.c| 118

[Qemu-devel] [PULL 0/7] s390 patch queue 2012-10-29

2012-10-29 Thread Alexander Graf
: git://repo.or.cz/qemu/agraf.git s390-for-upstream Alexander Graf (1): s390x: fix -initrd in virtio machine Christian Borntraeger (1): s390: use sync regs for register transfer Heinz Graalfs (5): s390/kvm_stat: correct sys_perf_event_open syscall number s390: sclp base

Re: [Qemu-devel] [PATCH v2 5/6] target-ppc: make some functions static

2012-10-29 Thread Alexander Graf
On 28.10.2012, at 12:04, Blue Swirl wrote: > Signed-off-by: Blue Swirl Acked-by: Alexander Graf Alex > --- > target-ppc/cpu.h|6 -- > target-ppc/mmu_helper.c | 11 ++- > 2 files changed, 6 insertions(+), 11 deletions(-) > > diff --git a/target-p

Re: [Qemu-devel] [PATCH v2 4/6] ppc: add missing static

2012-10-29 Thread Alexander Graf
On 28.10.2012, at 12:04, Blue Swirl wrote: > Add missing 'static' qualifiers. > > Signed-off-by: Blue Swirl Acked-by: Alexander Graf Alex

[Qemu-devel] [PATCH 2/7] s390/kvm_stat: correct sys_perf_event_open syscall number

2012-10-29 Thread Alexander Graf
is used from map syscall_numbers; other architectures can extend this. Signed-off-by: Heinz Graalfs Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --- scripts/kvm/kvm_stat | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/kvm/kvm_stat b

[Qemu-devel] [PATCH 6/7] s390: sclp signal quiesce support

2012-10-29 Thread Alexander Graf
event that is interpreted by linux guests as ctrl-alt-del. Signed-off-by: Heinz Graalfs Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --- hw/s390x/Makefile.objs|1 + hw/s390x/event-facility.c |7 +++ hw/s390x/sclpquiesce.c| 123

[Qemu-devel] [PATCH 7/7] s390: sclp ascii console support

2012-10-29 Thread Alexander Graf
fs Signed-off-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf --- hw/s390x/Makefile.objs |2 +- hw/s390x/sclpconsole.c | 306 2 files changed, 307 insertions(+), 1 deletions(-) create mode 10064

Re: [Qemu-devel] [PATCH 0/8] s390: SCLP console and misc

2012-06-18 Thread Alexander Graf
rrently has the following patches. Please let me know if I did forget any uncontroversial ones :). Alexander Graf (2): s390x: fix s390 virtio aliases kvm: Update kernel headers Christian Borntraeger (1): s390: stop target cpu on sigp initial reset Jens Freimann (1): s390: make k

[Qemu-devel] [PULL 0/4] s390 patch queue 2012-06-18

2012-06-18 Thread Alexander Graf
Alexander Graf (2): s390x: fix s390 virtio aliases kvm: Update kernel headers Christian Borntraeger (1): s390: stop target cpu on sigp initial reset Jens Freimann (1): s390: make kvm_stat work on s390 hw/qdev-monitor.c| 27 --- linux

[Qemu-devel] [PATCH 4/4] s390: stop target cpu on sigp initial reset

2012-06-18 Thread Alexander Graf
From: Christian Borntraeger We must not run the target cpu after an initial reset. This makes system_reset more reliable for smp guests. Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf --- target-s390x/kvm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

Re: [Qemu-devel] [PATCH v3] s390: autodetect map private

2012-06-18 Thread Alexander Graf
On 15.06.2012, at 17:10, Christian Borntraeger wrote: > By default qemu will use MAP_PRIVATE for guest pages. This will write > protect pages and thus break on s390 systems that dont support this feature. > Therefore qemu has a hack to always use MAP_SHARED for s390. But MAP_SHARED > has other pr

Re: [Qemu-devel] [PATCH 8/8] s390: Fix the storage increment size calculation

2012-06-18 Thread Alexander Graf
On 12.06.2012, at 16:57, Jeng-fang Wang wrote: > Yes, you can refer to AR10040-03-POK, Service-Call Logical Processor > Architecture for S/390 and z/Architecture, Figure 2-6 Minimum storage > increment and subincrement size. :) > Is that one publicly available anywhere? Alex

Re: [Qemu-devel] [PATCH 0/8] s390: SCLP console and misc

2012-06-18 Thread Alexander Graf
On 18.06.2012, at 15:41, Christian Borntraeger wrote: > On 18/06/12 15:33, Alexander Graf wrote: >> >> On 18.06.2012, at 14:35, Christian Borntraeger wrote: >> >>> Alex, >>> >>> are you going to pull the non-controversial patches? >>&

[Qemu-devel] [PATCH 2/4] kvm: Update kernel headers

2012-06-18 Thread Alexander Graf
Corresponding kvm.git hash: 4e3c8a1b1c Signed-off-by: Alexander Graf --- linux-headers/asm-s390/kvm.h |5 + linux-headers/linux/kvm.h|1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index 9607667

[Qemu-devel] [PATCH 3/4] s390: make kvm_stat work on s390

2012-06-18 Thread Alexander Graf
From: Jens Freimann Add s390_exit_reasons so kvm_stat doesn't crash when called on s390. Look for 'vendor_id' in /proc/cpuinfo as well, instead of just for 'flags', so we can determine if we run on S390. Signed-off-by: Jens Freimann Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 1/4] s390x: fix s390 virtio aliases

2012-06-18 Thread Alexander Graf
selection code. This way we fix commands like -device virtio-blk on s390x which with this patch applied select the correct virtio-blk-s390 device rather than virtio-blk-pci. Reported-by: Christian Borntraeger Signed-off-by: Anthony Liguori Signed-off-by: Alexander Graf --- hw/qdev-monitor.c

Re: [Qemu-devel] [PATCH 03/39] block: implement is_allocated for raw

2012-06-19 Thread Alexander Graf
On 15.06.2012, at 15:33, Kevin Wolf wrote: > From: Paolo Bonzini > > Either FIEMAP, or SEEK_DATA+SEEK_HOLE can be used to implement the > is_allocated callback for raw files. On Linux ext4, btrfs and XFS > all support it. > > Signed-off-by: Paolo Bonzini > Signed-off-by: Kevin Wolf > --- >

Re: [Qemu-devel] [PATCH 00/31] PPC: mpc8544ds: Create device tree dynamically

2012-06-19 Thread Alexander Graf
On 07.06.2012, at 23:09, Blue Swirl wrote: > On Tue, Jun 5, 2012 at 11:52 PM, Alexander Graf wrote: >> Today we have two separate places where we keep information which device >> is where: >> >> - hw/ppce500_mpc8544ds.c to instantiate all devices >> - pc-bio

Re: [Qemu-devel] [PATCH 05/31] dt: add helper for phandle enumeration

2012-06-19 Thread Alexander Graf
On 09.06.2012, at 03:02, Peter Crosthwaite wrote: > On Fri, Jun 8, 2012 at 10:46 PM, Alexander Graf wrote: >> >> On 07.06.2012, at 02:28, Peter Crosthwaite wrote: >> >>> On Thu, Jun 7, 2012 at 1:58 AM, Alexander Graf wrote: >>>> On 06

Re: [Qemu-devel] vm state save/restore question

2012-06-19 Thread Alexander Graf
On 09.06.2012, at 13:34, Benjamin Herrenschmidt wrote: > On Sat, 2012-06-09 at 20:53 +1000, Benjamin Herrenschmidt wrote: >> Hi folks ! > > (After some discussion with Andreas ...) > >> I'm looking at sorting out the state save/restore of target-ppc (which >> means understanding in general how

Re: [Qemu-devel] [PATCH 00/31] PPC: mpc8544ds: Create device tree dynamically

2012-06-19 Thread Alexander Graf
On 19.06.2012, at 20:39, Blue Swirl wrote: > On Tue, Jun 19, 2012 at 12:54 PM, Alexander Graf wrote: >> >> On 07.06.2012, at 23:09, Blue Swirl wrote: >> >>> On Tue, Jun 5, 2012 at 11:52 PM, Alexander Graf wrote: >>>> Today we have two separate pla

[Qemu-devel] [PATCH 14/31] PPC: e500: dt: create /chosen node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 28c7c8c..a078e24 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -101,6 +101,7 @@ static int

[Qemu-devel] [PATCH 11/31] PPC: e500: dt: create /cpus node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |5 + pc-bios/mpc8544ds.dtb | Bin 1972 -> 1924 bytes pc-bios/mpc8544ds.dts |5 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 3ec9013..c046

[Qemu-devel] [PATCH 17/31] PPC: e500: dt: create mpic node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf - use new multi-cell setting api --- hw/ppce500_mpc8544ds.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index c68e994..5c2b6ab 100

[Qemu-devel] [PATCH 09/31] PPC: e500: require libfdt

2012-06-19 Thread Alexander Graf
which was the only way to boot the mpc8544ds machine. This patch only manifests said requirement in the build system. Signed-off-by: Alexander Graf --- hw/ppc/Makefile.objs |2 +- hw/ppce500_mpc8544ds.c |5 - 2 files changed, 1 insertions(+), 6 deletions(-) diff --git a/h

[Qemu-devel] [PATCH 27/31] PPC: e500: Use new SOC dt format

2012-06-19 Thread Alexander Graf
Due to popular demand, let's clean up the soc node a bit and use more recent dt notions. Requested-by: Scott Wood Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c

[Qemu-devel] [PATCH 18/31] PPC: e500: dt: create global-utils node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf - use new multi-cell setting api --- hw/ppce500_mpc8544ds.c |9 + pc-bios/mpc8544ds.dts |6 -- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544d

[Qemu-devel] [PATCH 21/31] dt: Add -machine dumpdtb option to dump the current dtb

2012-06-19 Thread Alexander Graf
ation about the guest configuration. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 18 ++ qemu-config.c |4 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 880ed55..7c6edc2 100644

[Qemu-devel] [PATCH 30/31] dt: Add global option to set phandle start offset

2012-06-19 Thread Alexander Graf
If anyone outside of QEMU wants to mess with a QEMU generated device tree, he needs to know which range phandles are valid in. So let's expose a machine option that an external program can use to set the start allocate id for phandles in QEMU. Signed-off-by: Alexander Graf --- v2

[Qemu-devel] [PATCH 29/31] PPC: e500: Extend address/size of / to 64bit

2012-06-19 Thread Alexander Graf
so - map devices above 32bit. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 28 ++-- 1 files changed, 18 insertions(+), 10 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index c6a09bb..bf48bc7 100644 --- a/hw/ppce500_mpc8544ds.c

[Qemu-devel] [PATCH 04/31] dt: temporarily disable subtree creation failure check

2012-06-19 Thread Alexander Graf
we got rid of the binary device tree. Signed-off-by: Alexander Graf --- device_tree.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/device_tree.c b/device_tree.c index 2905f9a..967c97a 100644 --- a/device_tree.c +++ b/device_tree.c @@ -174,11 +174,13 @@ int

Re: [Qemu-devel] [PATCH] spapr_vscsi: Error handling fixes

2012-06-19 Thread Alexander Graf
On 19.06.2012, at 22:18, Benjamin Herrenschmidt wrote: > On Tue, 2012-06-19 at 13:31 +0200, Andreas Färber wrote: >> Tab alert. :) > > Argh :-) Gotta get an emacs config for use with qemu :-) So do you want to resend? I can just fix it on the fly too. Alex

[Qemu-devel] [PATCH 08/31] dt: add helper for 64bit cell adds

2012-06-19 Thread Alexander Graf
Some times in the device tree, we find an array of 2 u32 cells that really are a single u64 value. This patch adds a helper to make the creation of these easy. Signed-off-by: Alexander Graf Reviewed-by: Peter Crosthwaite --- v1 -> v2: - rename cell64 -> u64 --- device_tree.c

[Qemu-devel] [PATCH 31/31] PPC: e500: Refactor serial dt generation

2012-06-19 Thread Alexander Graf
When generating serial port device tree nodes, we duplicate quite a bit of code, because there are 2 of them in the mpc8544ds board we emulate. Shove the generating code into a function, so we duplicate less code. Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf ---

[Qemu-devel] [PATCH 24/31] PPC: e500: enable manual loading of dtb blob

2012-06-19 Thread Alexander Graf
We want to be able to override the automatically created device tree by using the -dtb option. Implement this for the mpc8544ds machine. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 26 ++ 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 12/31] PPC: e500: dt: create /hypervisor node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |1 + pc-bios/mpc8544ds.dtb | Bin 1924 -> 1904 bytes pc-bios/mpc8544ds.dts |3 --- 3 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index c046206..54e7ec7 100

[Qemu-devel] [PATCH 01/31] dt: allow add_subnode to create root subnodes

2012-06-19 Thread Alexander Graf
Our subnode creation helper can't handle creation of root subnodes, like "/memory". Fix this by allowing the parent node to be an empty string, indicating the root node. Signed-off-by: Alexander Graf Reviewed-by: Peter Crosthwaite --- device_tree.c |7 ++- 1 files change

[Qemu-devel] [PATCH 20/31] PPC: e500: dt: start with empty device tree

2012-06-19 Thread Alexander Graf
Now that all of the device tree bits are generated during runtime, we can get rid of the device tree blob and instead start from scratch with an empty device tree. Signed-off-by: Alexander Graf --- Makefile |1 - hw/ppce500_mpc8544ds.c |8 +--- pc-bios/mpc8544ds.dtb

[Qemu-devel] [PATCH 02/31] dt: add helpers for multi-cell adds

2012-06-19 Thread Alexander Graf
that allows us to pass the cells as arguments. Signed-off-by: Alexander Graf --- device_tree.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/device_tree.h b/device_tree.h index 4378685..1e671e2 100644 --- a/device_tree.h +++ b/device_tree.h @@ -25,4 +25,16

[Qemu-devel] [PATCH 26/31] PPC: e500: Use new MPIC dt format

2012-06-19 Thread Alexander Graf
Due to popular demand, we're updating the way we generate the MPIC node and interrupt lines based on what the current state of art is. Requested-by: Scott Wood Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 33 ++--- 1 files changed, 18 inser

[Qemu-devel] [PATCH 16/31] PPC: e500: dt: create serial nodes dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf - use new multi-cell setting api --- hw/ppce500_mpc8544ds.c | 35 +++ pc-bios/mpc8544ds.dts | 26 -- 2 files changed, 35 insertions(+), 26 deletions(-) diff --git a

[Qemu-devel] [PATCH 06/31] dt: add helper for empty dt creation

2012-06-19 Thread Alexander Graf
We want to get rid of the concept of loading an external device tree and instead generate our own. However, to do this we need to also create a device tree template programatically. This patch adds a helper to create an empty device tree in memory. Signed-off-by: Alexander Graf Reviewed-by

[Qemu-devel] [PATCH 10/31] PPC: e500: dt: create memory node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c |8 pc-bios/mpc8544ds.dtb | Bin 2028 -> 1972 bytes pc-bios/mpc8544ds.dts |5 - 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 506ddf3..3ec9

[Qemu-devel] [PATCH 19/31] PPC: e500: dt: create pci node dynamically

2012-06-19 Thread Alexander Graf
Signed-off-by: Alexander Graf --- v2 -> v3: - use snprintf - use new multi-cell setting api --- hw/ppce500_mpc8544ds.c | 50 pc-bios/mpc8544ds.dtb | Bin 1810 -> 72 bytes pc-bios/mpc8544ds.dts

<    1   2   3   4   5   6   7   8   9   10   >