* [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26
@ 2012-11-26 19:17 Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 1/2] s390: Fix ram_size updating in machine init Alexander Graf
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alexander Graf @ 2012-11-26 19:17 UTC (permalink / raw)
To: qemu-devel@nongnu.org qemu-devel; +Cc: Blue Swirl, Aurelien Jarno
Hi Blue / Aurelien,
This is my current patch queue for s390 with patches that should go in for 1.3.
Please pull.
Alex
The following changes since commit cab1e8f3e37d8e883c270e3afd9c7c1c18332f0e:
Anthony Liguori (1):
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
are available in the git repository at:
git://repo.or.cz/qemu/agraf.git s390-for-upstream-1.3
Cornelia Huck (1):
sclp: Fix uninitialized var in handle_write_event_buf().
Heinz Graalfs (1):
s390: Fix ram_size updating in machine init
hw/s390-virtio.c | 1 -
hw/s390x/event-facility.c | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 1/2] s390: Fix ram_size updating in machine init
2012-11-26 19:17 [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Alexander Graf
@ 2012-11-26 19:17 ` Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 2/2] sclp: Fix uninitialized var in handle_write_event_buf() Alexander Graf
2012-11-28 21:38 ` [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2012-11-26 19:17 UTC (permalink / raw)
To: qemu-devel@nongnu.org qemu-devel
Cc: Blue Swirl, Christian Borntraeger, Heinz Graalfs, Aurelien Jarno
From: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
The global variable 'ram_size' is hidden by the local variable
declaration in s390_init(). Since we want to update the global
ram size in certain cases we must not use a local ram_size
variable.
- This fixes booting with unusual ram sizes like -m 67001
- This changes behaviour back to the situation before commit
5f072e1f3075bd869e0ace9f2545a85992ac0084
(create struct for machine initialization arguments)
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
hw/s390-virtio.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index 685cb54..ca1bb09 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -155,7 +155,6 @@ unsigned s390_del_running_cpu(CPUS390XState *env)
static void s390_init(QEMUMachineInitArgs *args)
{
ram_addr_t my_ram_size = args->ram_size;
- ram_addr_t ram_size = args->ram_size;
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 2/2] sclp: Fix uninitialized var in handle_write_event_buf().
2012-11-26 19:17 [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 1/2] s390: Fix ram_size updating in machine init Alexander Graf
@ 2012-11-26 19:17 ` Alexander Graf
2012-11-28 21:38 ` [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Graf @ 2012-11-26 19:17 UTC (permalink / raw)
To: qemu-devel@nongnu.org qemu-devel
Cc: Blue Swirl, Cornelia Huck, Jens Freimann, Aurelien Jarno,
Christian Borntraeger
From: Cornelia Huck <cornelia.huck@de.ibm.com>
Some gcc versions rightly complain about a possibly unitialized rc,
so let's move setting it before the QTAILQ_FOREACH().
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
hw/s390x/event-facility.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/s390x/event-facility.c b/hw/s390x/event-facility.c
index 9367660..bc9cea9 100644
--- a/hw/s390x/event-facility.c
+++ b/hw/s390x/event-facility.c
@@ -112,12 +112,13 @@ static uint16_t handle_write_event_buf(SCLPEventFacility *ef,
SCLPEvent *event;
SCLPEventClass *ec;
+ rc = SCLP_RC_INVALID_FUNCTION;
+
QTAILQ_FOREACH(kid, &ef->sbus.qbus.children, sibling) {
DeviceState *qdev = kid->child;
event = (SCLPEvent *) qdev;
ec = SCLP_EVENT_GET_CLASS(event);
- rc = SCLP_RC_INVALID_FUNCTION;
if (ec->write_event_data &&
ec->event_type() == event_buf->type) {
rc = ec->write_event_data(event, event_buf);
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26
2012-11-26 19:17 [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 1/2] s390: Fix ram_size updating in machine init Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 2/2] sclp: Fix uninitialized var in handle_write_event_buf() Alexander Graf
@ 2012-11-28 21:38 ` Anthony Liguori
2 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2012-11-28 21:38 UTC (permalink / raw)
To: Alexander Graf, qemu-devel@nongnu.org qemu-devel
Cc: Blue Swirl, Aurelien Jarno
Alexander Graf <agraf@suse.de> writes:
> Hi Blue / Aurelien,
>
> This is my current patch queue for s390 with patches that should go in for 1.3.
> Please pull.
>
> Alex
>
Pulled. Thanks.
Regards,
Anthony Liguori
>
> The following changes since commit cab1e8f3e37d8e883c270e3afd9c7c1c18332f0e:
> Anthony Liguori (1):
> Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
>
> are available in the git repository at:
>
> git://repo.or.cz/qemu/agraf.git s390-for-upstream-1.3
>
> Cornelia Huck (1):
> sclp: Fix uninitialized var in handle_write_event_buf().
>
> Heinz Graalfs (1):
> s390: Fix ram_size updating in machine init
>
> hw/s390-virtio.c | 1 -
> hw/s390x/event-facility.c | 3 ++-
> 2 files changed, 2 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-28 21:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 19:17 [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 1/2] s390: Fix ram_size updating in machine init Alexander Graf
2012-11-26 19:17 ` [Qemu-devel] [PATCH 2/2] sclp: Fix uninitialized var in handle_write_event_buf() Alexander Graf
2012-11-28 21:38 ` [Qemu-devel] [PULL 1.3 0/2] s390 1.3 patch queue 2012-11-26 Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).