[PATCH] util: fix build with musl libc on ppc64le

2023-12-19 Thread Natanael Copa
Signed-off-by: Natanael Copa --- util/cpuinfo-ppc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/cpuinfo-ppc.c b/util/cpuinfo-ppc.c index 1ea3db0ac8..b2d8893a06 100644 --- a/util/cpuinfo-ppc.c +++ b/util/cpuinfo-ppc.c @@ -6,10 +6,10 @@ #include "qemu/os

[PATCH] target/riscv/kvm: do not use non-portable strerrorname_np()

2023-12-18 Thread Natanael Copa
ssues/2041 Buglink: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15541 Signed-off-by: Natanael Copa --- target/riscv/kvm/kvm-cpu.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c index

[PATCH] edk2: fix TPM 2.0 regression

2022-10-14 Thread Natanael Copa
/4de8d61bcec02a13ceed84f92b0cf3ea58adf9c5 Signed-off-by: Natanael Copa --- I have not really been able to test this, due to issues with building the OVMF_CODE.fd from the qemu source tree. I do have tested building OVMF_CODE.fd for the Alpine Linux package, and adding -D TPM2_ENABLE dis solve the issue in windows guests

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Mon, 25 Feb 2019 13:06:16 + Peter Maydell wrote: > On Mon, 25 Feb 2019 at 12:22, Natanael Copa wrote: > > > > On Mon, 25 Feb 2019 10:34:23 + > > Peter Maydell wrote: > > > The short term fix is to fix your toolchain/compilation > > > environ

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Mon, 25 Feb 2019 10:34:23 + Peter Maydell wrote: > On Mon, 25 Feb 2019 at 10:24, Natanael Copa wrote: > > > > On Sat, 23 Feb 2019 16:18:15 + > > Peter Maydell wrote: > > > > > On Sat, 23 Feb 2019 at 16:05, Natanael Copa > > > wrote:

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-25 Thread Natanael Copa
On Sat, 23 Feb 2019 16:18:15 + Peter Maydell wrote: > On Sat, 23 Feb 2019 at 16:05, Natanael Copa wrote: > > I was thinking of something in the lines of: > > > > typedef volatile uint16_t __attribute__((__may_alias__)) volatile_uint16_t; > > static inline in

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-23 Thread Natanael Copa
On Fri, 22 Feb 2019 14:04:20 + Stefan Hajnoczi wrote: > On Fri, Feb 22, 2019 at 12:57 PM Fernando Casas Schössow > wrote: > > I have CCed Natanael Copa, qemu package maintainer in Alpine Linux. > > Fernando: Can you confirm that the bug occurs with an unmodified > Alp

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-23 Thread Natanael Copa
On Fri, 22 Feb 2019 14:04:20 + Stefan Hajnoczi wrote: > On Fri, Feb 22, 2019 at 12:57 PM Fernando Casas Schössow > wrote: > > I have CCed Natanael Copa, qemu package maintainer in Alpine Linux. Hi! ... > Richard: Commit 7db2145a6826b14efceb8dd64bfe6ad8647072eb ("bswa

[Qemu-devel] [PATCH] linux-user: fix build with musl on aarch64

2016-12-15 Thread Natanael Copa
Use the standard uint64_t instead of internal __u64. This fixes compiler error with musl libc on aarch64: .../qemu-2.7.0/linux-user/host/aarch64/hostdep.h:28:5: error: unknown type name '__u64' __u64 *pcreg = &uc->uc_mcontext.pc; ^ Signed-off-by: Natanael Copa ---

[Qemu-devel] [PATCH v2] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-06-04 Thread Natanael Copa
-by: Natanael Copa --- Changes v1 -> v2: - replace NSIG with _NSIG since thats use everywhere else in the code. - add runtime asserts. linux-user/signal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 5b8a01f..67771ad 100

Re: [Qemu-devel] [PATCH 0/5] fix building with musl libc

2014-06-03 Thread Natanael Copa
On Wed, 4 Jun 2014 00:37:44 +0100 Peter Maydell wrote: > On 29 April 2014 15:17, Natanael Copa wrote: > > In addition to the previoiusly sent "linux-user: avoid using glibc > > internals in _syscall5 and in definition of target_sigevent struct", > > those are ne

Re: [Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
On Tue, 29 Apr 2014 09:02:13 -0600 Eric Blake wrote: > On 04/29/2014 08:53 AM, Natanael Copa wrote: > > On Tue, 29 Apr 2014 08:28:29 -0600 > > Eric Blake wrote: > > > >> On 04/29/2014 08:17 AM, Natanael Copa wrote: > >>> The __SIGRTMIN and __SIGRTMAX

Re: [Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
On Tue, 29 Apr 2014 08:28:29 -0600 Eric Blake wrote: > On 04/29/2014 08:17 AM, Natanael Copa wrote: > > The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available > > on all platforms, so we define those if they are missing. > > > > This is needed for mus

[Qemu-devel] [PATCH 5/5] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU platforms

2014-04-29 Thread Natanael Copa
The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available on all platforms, so we define those if they are missing. This is needed for musl libc. Signed-off-by: Natanael Copa --- linux-user/signal.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/linux-user/signal.c b

[Qemu-devel] [PATCH 3/5] vhost: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
h, call it bitops_ctzl) on why ctzl should be used instead of ffsl. Signed-off-by: Natanael Copa --- hw/virtio/vhost.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 9e336ad..f62cfaf 100644 --- a/hw/virtio/vhost.c +++ b/hw/virt

[Qemu-devel] [PATCH 4/5] exec: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
See commit fbeadf50 (bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl) on why ctzl should be used instead of ffsl. This is also needed for musl libc which does not implement ffsl. Signed-off-by: Natanael Copa --- include/exec/ram_addr.h | 2 +- 1 file changed, 1

[Qemu-devel] [PATCH 0/5] fix building with musl libc

2014-04-29 Thread Natanael Copa
ose should probably be defined in libc so patch for that is not included here. Natanael Copa (5): util/qemu-openpty: fix build with musl libc by include termios.h as fallback xen: replace ffsl with ctzl vhost: replace ffsl with ctzl exec: replace ffsl with ctzl linux-user/signal.c: define

[Qemu-devel] [PATCH 2/5] xen: replace ffsl with ctzl

2014-04-29 Thread Natanael Copa
ffsl is a GNU extension and not available in musl libc. See also commit fbeadf50 (bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl) on why ctzl should be used instead of ffsl. Signed-off-by: Natanael Copa --- xen-all.c | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PATCH 1/5] util/qemu-openpty: fix build with musl libc by include termios.h as fallback

2014-04-29 Thread Natanael Copa
tcsetattr(*aslave, TCSAFLUSH, &tty); ^ Signed-off-by: Natanael Copa --- util/qemu-openpty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/qemu-openpty.c b/util/qemu-openpty.c index 4febfe9..4c53211 100644 --- a/util/qemu-openpty.c +++ b/util/qemu-openpty.c @@ -47,6 +47,8 @@

[Qemu-devel] [PATCH v3] linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct

2014-04-29 Thread Natanael Copa
Use the public sigset_t instead of the glibc specific internal __sigset_t in _syscall. Calculate the sigevent pad size is calculated in similar way as kernel does it instead of using glibc internal field _pad. This is needed for building with musl libc. Signed-off-by: Natanael Copa --- Changes

Re: [Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-29 Thread Natanael Copa
On Wed, 23 Apr 2014 19:00:41 +0100 Peter Maydell wrote: > On 23 April 2014 15:59, Natanael Copa wrote: > > Avoid using glibc specific internals. > > > > Calculate the sigevent pad size is calculated in similar way as kernel > > does it. > > > > Thi

[Qemu-devel] [PATCH] linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct

2014-04-29 Thread Natanael Copa
Use the public sigset_t instead of the glibc specific internal __sigset_t in _syscall. Calculate the sigevent pad size is calculated in similar way as kernel does it instead of using glibc internal field _pad. This is needed for building with musl libc. Signed-off-by: Natanael Copa --- Changes

Re: [Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-29 Thread Natanael Copa
On Wed, 23 Apr 2014 19:00:41 +0100 Peter Maydell wrote: > On 23 April 2014 15:59, Natanael Copa wrote: > > Avoid using glibc specific internals. > > > > Calculate the sigevent pad size is calculated in similar way as kernel > > does it. > > > > Thi

[Qemu-devel] [PATCH] linux-user: avoid using glibc internals

2014-04-23 Thread Natanael Copa
Avoid using glibc specific internals. Calculate the sigevent pad size is calculated in similar way as kernel does it. This is needed for building with musl libc. Signed-off-by: Natanael Copa --- linux-user/syscall.c | 2 +- linux-user/syscall_defs.h | 6 +- 2 files changed, 6

[Qemu-devel] [PATCH v5] configure: properly check if -lrt and -lm is needed

2012-09-12 Thread Natanael Copa
this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa --- Changes v4->v5: - Do not exit with error if librt fails. Apparently, mingw32 does not use those functions at all so we should not e

Re: [Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-28 Thread Natanael Copa
On Tue, 28 Aug 2012 17:16:18 + Blue Swirl wrote: > On Tue, Aug 28, 2012 at 7:33 AM, Natanael Copa > wrote: > > On Tue, 21 Aug 2012 18:12:05 + > > Blue Swirl wrote: > >> > >> Now I get this on mingw32: > >> config-host.mak is out-of-date, r

Re: [Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-28 Thread Natanael Copa
On Tue, 21 Aug 2012 18:12:05 + Blue Swirl wrote: > > Now I get this on mingw32: > config-host.mak is out-of-date, running configure > > Error: librt check failed Any news on the v4 patch, which should fix this? Thanks!

[Qemu-devel] [PATCH v4] configure: properly check if -lrt and -lm is needed

2012-08-22 Thread Natanael Copa
this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa --- Changes v3->v4: - Use $pthread_lib from previous pthread test We don't need to add it to $LIBS since it should be there already c

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-21 Thread Natanael Copa
On Mon, 20 Aug 2012 19:53:22 + Blue Swirl wrote: > >> - Do not remove the explicit add of -lm unless Haiku. This was due > >>to > >> http://www.mail-archive.com/qemu-devel@nongnu.org/msg102965.html I > >> am not sure if this is valid, though. > > > > Certainly building a linux-user targe

[Qemu-devel] [PATCH v3] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Natanael Copa
this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa --- Changes v2->v3: - Check if -lpthread is needed with static -lrt configure | 37 - 1 file changed, 36 in

Re: [Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-20 Thread Natanael Copa
On Mon, Aug 20, 2012 at 3:27 PM, Peter Maydell wrote: > On 16 August 2012 14:22, Natanael Copa wrote: >> Fixes build against uClibc. >> >> uClibc provides 2 versions of clock_gettime(), one with realtime >> support and one without (this is so you can avoid linking

[Qemu-devel] [PATCH v2] configure: properly check if -lrt and -lm is needed

2012-08-16 Thread Natanael Copa
this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. Signed-off-by: Natanael Copa --- The Xen people have nagged me to get this patch upstream so I have come up with a rebased v2 patch after consulting with pm215 on IRC. Please con

[Qemu-devel] Release Engineering: qemu-1.1.1.tar.bz2 release name and filetype mismatch

2012-07-17 Thread Natanael Copa
Hi, The qemu-1.1.1 release tarball[1] has file extention .tar.bz2 while the real file format is gzip. $ file Downloads/qemu-1.1.1.tar.bz2 Downloads/qemu-1.1.1.tar.bz2: gzip compressed data, from Unix, last modified: Thu Jul 12 21:52:36 2012 Would it be possible to add a tarball which has a fil

[Qemu-devel] [PATCH] configure: properly check if -lrt and -lm is needed

2012-06-14 Thread Natanael Copa
this function in addition. We also need check if -lm is needed for isnan(). Signed-off-by: Natanael Copa --- Makefile|4 ++-- Makefile.target |4 +--- configure | 33 +++-- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/Makef