* [Qemu-trivial] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
@ 2015-02-02 14:18 ` Maxim Ostapenko
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Ostapenko @ 2015-02-02 14:18 UTC (permalink / raw)
To: Peter Maydell
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
Thanks again,
I've updated the patch. Is this correct now?
-Maxim
From 5b035df58f9f17e64b35311b6b5f55097c7f8ce1 Mon Sep 17 00:00:00 2001
From: Max Ostapenko <m.ostapenko@partner.samsung.com>
Date: Mon, 2 Feb 2015 12:03:20 +0400
Subject: [PATCH] linux-user: wrong TARGET_SI_PAD_SIZE value for some
targets.
Fix TARGET_SI_PAD_SIZE calculation to match the way the kernel does it.
Use different TARGET_SI_PREAMBLE_SIZE for 32-bit and 64-bit targets.
Signed-off-by: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
---
linux-user/syscall_defs.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index ebb3be1..9ed6de8 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -655,7 +655,14 @@ typedef struct {
#endif
#define TARGET_SI_MAX_SIZE 128
-#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
+
+#if TARGET_ABI_BITS == 32
+#define TARGET_SI_PREAMBLE_SIZE (3 * sizeof(int))
+#else
+#define TARGET_SI_PREAMBLE_SIZE (4 * sizeof(int))
+#endif
+
+#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE -
TARGET_SI_PREAMBLE_SIZE) / sizeof(int))
typedef struct target_siginfo {
#ifdef TARGET_MIPS
--
1.8.5.2.2930.gf745acb
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
@ 2015-02-02 14:18 ` Maxim Ostapenko
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Ostapenko @ 2015-02-02 14:18 UTC (permalink / raw)
To: Peter Maydell
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
Thanks again,
I've updated the patch. Is this correct now?
-Maxim
From 5b035df58f9f17e64b35311b6b5f55097c7f8ce1 Mon Sep 17 00:00:00 2001
From: Max Ostapenko <m.ostapenko@partner.samsung.com>
Date: Mon, 2 Feb 2015 12:03:20 +0400
Subject: [PATCH] linux-user: wrong TARGET_SI_PAD_SIZE value for some
targets.
Fix TARGET_SI_PAD_SIZE calculation to match the way the kernel does it.
Use different TARGET_SI_PREAMBLE_SIZE for 32-bit and 64-bit targets.
Signed-off-by: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
---
linux-user/syscall_defs.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index ebb3be1..9ed6de8 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -655,7 +655,14 @@ typedef struct {
#endif
#define TARGET_SI_MAX_SIZE 128
-#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
+
+#if TARGET_ABI_BITS == 32
+#define TARGET_SI_PREAMBLE_SIZE (3 * sizeof(int))
+#else
+#define TARGET_SI_PREAMBLE_SIZE (4 * sizeof(int))
+#endif
+
+#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE -
TARGET_SI_PREAMBLE_SIZE) / sizeof(int))
typedef struct target_siginfo {
#ifdef TARGET_MIPS
--
1.8.5.2.2930.gf745acb
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-trivial] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
2015-02-02 14:18 ` [Qemu-devel] " Maxim Ostapenko
@ 2015-02-02 15:23 ` Peter Maydell
-1 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2015-02-02 15:23 UTC (permalink / raw)
To: Maxim Ostapenko
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
On 2 February 2015 at 14:18, Maxim Ostapenko
<m.ostapenko@partner.samsung.com> wrote:
> Thanks again,
>
> I've updated the patch. Is this correct now?
Yes, and you can have my
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
(though I notice you ignored the bit about sending a separate
email, not a followup. Still, I expect that Riku or the -trivial
maintainers can fish it out manually.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
@ 2015-02-02 15:23 ` Peter Maydell
0 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2015-02-02 15:23 UTC (permalink / raw)
To: Maxim Ostapenko
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
On 2 February 2015 at 14:18, Maxim Ostapenko
<m.ostapenko@partner.samsung.com> wrote:
> Thanks again,
>
> I've updated the patch. Is this correct now?
Yes, and you can have my
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
(though I notice you ignored the bit about sending a separate
email, not a followup. Still, I expect that Riku or the -trivial
maintainers can fish it out manually.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-trivial] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
2015-02-02 14:18 ` [Qemu-devel] " Maxim Ostapenko
@ 2015-02-07 9:23 ` Michael Tokarev
-1 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2015-02-07 9:23 UTC (permalink / raw)
To: Maxim Ostapenko, Peter Maydell
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
02.02.2015 17:18, Maxim Ostapenko wrote:
> From 5b035df58f9f17e64b35311b6b5f55097c7f8ce1 Mon Sep 17 00:00:00 2001
> From: Max Ostapenko <m.ostapenko@partner.samsung.com>
> Date: Mon, 2 Feb 2015 12:03:20 +0400
> Subject: [PATCH] linux-user: wrong TARGET_SI_PAD_SIZE value for some targets.
>
> Fix TARGET_SI_PAD_SIZE calculation to match the way the kernel does it.
> Use different TARGET_SI_PREAMBLE_SIZE for 32-bit and 64-bit targets.
I've applied your patch to -trivial. However, the patch has been whitespace-
damaged so I had to apply it manually - your mailer added several leading
spaces, changed tabs into spaces, and word-wrapped several lines. Please,
for the next time, send a patch over email to youself and verify if it
still applies to a clean branch -- before sending it to the list.
Note also that I used the original subject line of your patch, not the
subject line of this emai. Again, please ensure there's just one message
with one subject and date, not two ;)
Thanks,
/mjt
> Signed-off-by: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
> ---
> linux-user/syscall_defs.h | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index ebb3be1..9ed6de8 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -655,7 +655,14 @@ typedef struct {
> #endif
>
> #define TARGET_SI_MAX_SIZE 128
> -#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
> +
> +#if TARGET_ABI_BITS == 32
> +#define TARGET_SI_PREAMBLE_SIZE (3 * sizeof(int))
> +#else
> +#define TARGET_SI_PREAMBLE_SIZE (4 * sizeof(int))
> +#endif
> +
> +#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE - TARGET_SI_PREAMBLE_SIZE) / sizeof(int))
>
> typedef struct target_siginfo {
> #ifdef TARGET_MIPS
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling.
@ 2015-02-07 9:23 ` Michael Tokarev
0 siblings, 0 replies; 6+ messages in thread
From: Michael Tokarev @ 2015-02-07 9:23 UTC (permalink / raw)
To: Maxim Ostapenko, Peter Maydell
Cc: QEMU Trivial, Slava Garbuzov, Riku Voipio, QEMU Developers,
Yury Gribov
02.02.2015 17:18, Maxim Ostapenko wrote:
> From 5b035df58f9f17e64b35311b6b5f55097c7f8ce1 Mon Sep 17 00:00:00 2001
> From: Max Ostapenko <m.ostapenko@partner.samsung.com>
> Date: Mon, 2 Feb 2015 12:03:20 +0400
> Subject: [PATCH] linux-user: wrong TARGET_SI_PAD_SIZE value for some targets.
>
> Fix TARGET_SI_PAD_SIZE calculation to match the way the kernel does it.
> Use different TARGET_SI_PREAMBLE_SIZE for 32-bit and 64-bit targets.
I've applied your patch to -trivial. However, the patch has been whitespace-
damaged so I had to apply it manually - your mailer added several leading
spaces, changed tabs into spaces, and word-wrapped several lines. Please,
for the next time, send a patch over email to youself and verify if it
still applies to a clean branch -- before sending it to the list.
Note also that I used the original subject line of your patch, not the
subject line of this emai. Again, please ensure there's just one message
with one subject and date, not two ;)
Thanks,
/mjt
> Signed-off-by: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
> ---
> linux-user/syscall_defs.h | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index ebb3be1..9ed6de8 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -655,7 +655,14 @@ typedef struct {
> #endif
>
> #define TARGET_SI_MAX_SIZE 128
> -#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE/sizeof(int)) - 3)
> +
> +#if TARGET_ABI_BITS == 32
> +#define TARGET_SI_PREAMBLE_SIZE (3 * sizeof(int))
> +#else
> +#define TARGET_SI_PREAMBLE_SIZE (4 * sizeof(int))
> +#endif
> +
> +#define TARGET_SI_PAD_SIZE ((TARGET_SI_MAX_SIZE - TARGET_SI_PREAMBLE_SIZE) / sizeof(int))
>
> typedef struct target_siginfo {
> #ifdef TARGET_MIPS
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-07 9:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 14:18 [Qemu-trivial] [PATCH v2] Fix ABI incompatibility between Qemu-aarch64 and Linux Kernel in signal handling Maxim Ostapenko
2015-02-02 14:18 ` [Qemu-devel] " Maxim Ostapenko
2015-02-02 15:23 ` [Qemu-trivial] " Peter Maydell
2015-02-02 15:23 ` [Qemu-devel] " Peter Maydell
2015-02-07 9:23 ` [Qemu-trivial] " Michael Tokarev
2015-02-07 9:23 ` [Qemu-devel] " Michael Tokarev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.