* [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions
@ 2013-07-16 12:45 Jan Kiszka
2013-07-16 12:47 ` Paolo Bonzini
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jan Kiszka @ 2013-07-16 12:45 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel
This restore the behavior prior to b018ddf633 which accidentally changed
the return code to 0. Specifically guests probing for register existence
were affected by this.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
memory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/memory.c b/memory.c
index 757e9a5..d19b61b 100644
--- a/memory.c
+++ b/memory.c
@@ -859,7 +859,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr,
cpu_unassigned_access(ENV_GET_CPU(cpu_single_env),
addr, false, false, 0, size);
}
- return 0;
+ return -1ULL;
}
static void unassigned_mem_write(void *opaque, hwaddr addr,
--
1.7.3.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions
2013-07-16 12:45 [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions Jan Kiszka
@ 2013-07-16 12:47 ` Paolo Bonzini
2013-07-17 2:00 ` Stefan Hajnoczi
2013-08-08 15:13 ` Peter Maydell
2 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2013-07-16 12:47 UTC (permalink / raw)
To: Jan Kiszka; +Cc: qemu-devel
Il 16/07/2013 14:45, Jan Kiszka ha scritto:
> This restore the behavior prior to b018ddf633 which accidentally changed
> the return code to 0. Specifically guests probing for register existence
> were affected by this.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> memory.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 757e9a5..d19b61b 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -859,7 +859,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr,
> cpu_unassigned_access(ENV_GET_CPU(cpu_single_env),
> addr, false, false, 0, size);
> }
> - return 0;
> + return -1ULL;
> }
>
> static void unassigned_mem_write(void *opaque, hwaddr addr,
>
Applied, thanks.
Paolo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions
2013-07-16 12:45 [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions Jan Kiszka
2013-07-16 12:47 ` Paolo Bonzini
@ 2013-07-17 2:00 ` Stefan Hajnoczi
2013-08-08 15:13 ` Peter Maydell
2 siblings, 0 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2013-07-17 2:00 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Paolo Bonzini, qemu-devel
On Tue, Jul 16, 2013 at 02:45:16PM +0200, Jan Kiszka wrote:
> This restore the behavior prior to b018ddf633 which accidentally changed
> the return code to 0. Specifically guests probing for register existence
> were affected by this.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> memory.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 757e9a5..d19b61b 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -859,7 +859,7 @@ static uint64_t unassigned_mem_read(void *opaque, hwaddr addr,
> cpu_unassigned_access(ENV_GET_CPU(cpu_single_env),
> addr, false, false, 0, size);
> }
> - return 0;
> + return -1ULL;
> }
>
> static void unassigned_mem_write(void *opaque, hwaddr addr,
Fixes the IPMI timeout while booting RHEL 6.4 guests.
Tested-by: Stefan Hajnoczi <stefanha@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions
2013-07-16 12:45 [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions Jan Kiszka
2013-07-16 12:47 ` Paolo Bonzini
2013-07-17 2:00 ` Stefan Hajnoczi
@ 2013-08-08 15:13 ` Peter Maydell
2013-08-08 15:31 ` Jan Kiszka
2 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2013-08-08 15:13 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Paolo Bonzini, qemu-devel
On 16 July 2013 13:45, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> This restore the behavior prior to b018ddf633 which accidentally changed
> the return code to 0. Specifically guests probing for register existence
> were affected by this.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
For the record (I know you have a revert-patch on the list)
this patch breaks the 'musicpal' platform (my test image
no longer boots with this change).
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions
2013-08-08 15:13 ` Peter Maydell
@ 2013-08-08 15:31 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2013-08-08 15:31 UTC (permalink / raw)
To: Peter Maydell; +Cc: Paolo Bonzini, qemu-devel
On 2013-08-08 17:13, Peter Maydell wrote:
> On 16 July 2013 13:45, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> This restore the behavior prior to b018ddf633 which accidentally changed
>> the return code to 0. Specifically guests probing for register existence
>> were affected by this.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>
> For the record (I know you have a revert-patch on the list)
> this patch breaks the 'musicpal' platform (my test image
> no longer boots with this change).
Yes, that's how I finally found out as well that this patch was wrong.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-08-08 15:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 12:45 [Qemu-devel] [PATCH] memory: Return -1 again on reads from unsigned regions Jan Kiszka
2013-07-16 12:47 ` Paolo Bonzini
2013-07-17 2:00 ` Stefan Hajnoczi
2013-08-08 15:13 ` Peter Maydell
2013-08-08 15:31 ` Jan Kiszka
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).