memory: Return -1 again on reads from unsigned regions
PATCH 1/1 memory: Return -1 again on reads from unsigned regions
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.
--- memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
memory.c +1 -1
@@ -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,
Signature · 1 line
1.7.3.4
Paolo Bonzini
AppliedIl 16/07/2013 14:45, Jan Kiszka ha scritto:
Quoted 15 lines
This restore the behavior prior to
b018ddf633which accidentally changed the return code to 0. Specifically guests probing for register existence were affected by this.Signed-off-by Jan Kiszka <[email protected]>--- memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)memory.c +0
-0
memory.c static uint64_t unassigned_mem_read(void *opaque, hwaddr addr, · line 865
Quoted 8 lines
memory.c +1
-1@@ -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
Quoted 14 lines · Jan Kiszka
This restore the behavior prior to
b018ddf633which accidentally changed the return code to 0. Specifically guests probing for register existence were affected by this.Signed-off-by Jan Kiszka <[email protected]>--- memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)memory.c +0
-0
memory.c static uint64_t unassigned_mem_read(void *opaque, hwaddr addr, · line 865
Quoted 8 lines
memory.c +1
-1@@ -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.
Quoted 5 lines · Jan Kiszka
This restore the behavior prior to
b018ddf633which accidentally changed the return code to 0. Specifically guests probing for register existence were affected by this.Signed-off-by Jan Kiszka <[email protected]>
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
Quoted 10 lines · Peter Maydell
Quoted 5 lines · Jan Kiszka
This restore the behavior prior to
b018ddf633which accidentally changed the return code to 0. Specifically guests probing for register existence were affected by this.Signed-off-by Jan Kiszka <[email protected]>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
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux