[PATCH] hw/intc/arm_gicv3_kvm.c: Set the qemu_irq/gsi mapping for VFIO platform

2023-09-19 Thread Luca Wei
://lore.kernel.org/qemu-devel/20150706183512.15635.915.st...@gimli.home/ Signed-off-by: Luca Wei --- hw/intc/arm_gicv3_kvm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc/arm_gicv3_kvm.c index 72ad916d3d..7e90f8b723 100644 --- a/hw/intc/arm_gicv3_kvm.c +++ b

[PATCH] Fixed incorrect LLONG alignment for openrisc and cris

2023-08-02 Thread Luca Bonissi
From: Luca Bonissi Date: Thu, 3 Aug 2023 02:15:57 +0200 Subject: [PATCH] Fixed incorrect LLONG alignment for openrisc and cris OpenRISC (or1k) has long long alignment to 4 bytes, but currently not defined in abitypes.h. This lead to incorrect packing of /epoll_event/ structure and eventually

Re: [PATCH] Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space)

2023-07-19 Thread Luca Bonissi
in linux-user container and/or with cross-compiler): - cris, m68k, microblaze, nios2, or1k, sh4, x86 (32bit) See include/exec/user/abitypes.h to update the value. OK, abitypes.h should be updated with the following patch (discard the previous patch on syscall_defs.h): Signed-off-by: Luca Bonissi ---

Re: [PATCH] Missing CASA instruction handling for SPARC qemu-user

2023-07-18 Thread Luca Bonissi
, POWERDOWN, and CASA. Re-posting to add "signed-off-by" line. Removing also unused functions from qemu-sparc (32bit) building, and consequently removed helper patch (needed only by unused [removed] functions). Signed-off-by: Luca Bonissi --- diff -urp a/linux-user/syscall.c b/linux-user

Re: [PATCH] Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space)

2023-07-18 Thread Luca Bonissi
t just now: == The or1k epoll_event structure - unlike other architectures - is packed, so we need to define it as packed in qemu-user, otherwise it leads to infinite loop due to missing file descriptor in the returned data: Signed-off-by: Luca Bonissi --- diff -up a/linux-user/syscall_defs.h b/

Re: [PATCH] Wrong signed data type on pageflags_* functions - limit to 2GB memory allocation

2023-07-18 Thread Luca Bonissi
the 64bit final uint64_t parameters, leading to incorrect comparison on the RBTree (only the first call to mmap on the upper 2GB memory will be successful). Following the patch to fix the bug (re-submit to add "signed-off-by"): Signed-off-by: Luca Bonissi --- diff -up a/accel/tcg/use

Missing CASA instruction handling for SPARC qemu-user

2023-07-18 Thread Luca Bonissi
On qemu-sparc (user-space), the CASA instruction is not handled for SPARC32 even if the selected cpu (e.g. LEON3) supports it. Following the patch that works. I created "fake" ld/st_asi helpers: it seems all works fine, but I don't know if we should make real ld/st helpers like for SPARC64

Wrong unpacked structure for epoll_event on qemu-or1k (openrisc user-space)

2023-07-18 Thread Luca Bonissi
The or1k epoll_event structure - unlike other architectures - is packed, so we need to define it as packed in qemu-user, otherwise it leads to infinite loop due to missing file descriptor in the returned data: --- qemu-20230327/linux-user/syscall_defs.h.orig 2023-03-27 15:41:42.0

Wrong signed data type on pageflags_* functions - limit to 2GB memory allocation

2023-07-18 Thread Luca Bonissi
On 32bit qemu-user targets, memory allocation failed after about 2GB due to incorrect signed (instead of the correct unsigned) "last" parameter in pageflags_find and pageflags_next functions (file accel/tcg/user-exec.c). The parameter, on 32bit targets, will be signed-extent to the 64bit

Re: stat64 wrong on sparc64 user

2023-03-30 Thread Luca Bonissi
On 29/03/23 18:22, Laurent Vivier wrote: Le 28/03/2023 à 14:22, Luca Bonissi a écrit : On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user

Re: stat64 wrong on sparc64 user

2023-03-28 Thread Luca Bonissi
On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user/syscall_defs.h.new    2023-03-27 21:43:25.615115126 +0200 @@ -1450,7 +1450,7 @@ struct target_stat

stat64 wrong on sparc64 user

2023-03-28 Thread Luca Bonissi
On qemu-sparc64 (userspace) the struct "target_stat64" is not correctly padded, so the field st_rdev is not correctly aligned and will report wrong major/minor (e.g. for /dev/zero it reports 0,0x1050 instead of 1,5). Here patch to solve the issue (it also fixes incorrect size on some

Re: [PATCH] linux-user: Implement faccessat2

2022-10-18 Thread Luca Bonissi
ith Slackware-current build scripts on x86_64 host: all works fine! Thanks! Luca

Memory address of ivshmem device

2021-03-25 Thread Luca Belluardo
guest not because the OS in VM doesn't have a device PCI manager. I want to know if the device has a fixed address on KVM VM so to force read and write to that address in the application on VM. Best regards Luca Belluardo

[Bug 1895305] [NEW] pthread_cancel fails with "RT33" with musl libc

2020-09-11 Thread Luca Weiss
Public bug reported: >From my testing it seems that QEMU built against musl libc crashes on pthread_cancel cancel calls - if the binary is also built with musl libc. Minimal sample: #include #include #include void* threadfunc(void* ignored) { while (1) { pause();

[Qemu-devel] [Bug 1826401] [NEW] qemu-system-aarch64 has a high cpu usage on windows

2019-04-25 Thread Adrian Luca
Public bug reported: Running qemu-system-aarch64 leads to a high CPU consumption on windows 10. Tested with qemu: 4.0.0-rc4 & 3.1.0 & 2.11.0 Command: qemu_start_command = [ qemu-system-aarch64, "-pidfile", target_path + "/qemu" + str(instance) + ".pid",

[Qemu-devel] [Bug 1323001] Re: Netlink socket support for MIPS*

2015-01-20 Thread Luca Falavigna
** Changed in: qemu Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1323001 Title: Netlink socket support for MIPS* Status in QEMU: Fix Released Bug

[Qemu-devel] [Bug 1323001] Re: Netlink socket support for MIPS*

2014-06-28 Thread Luca Falavigna
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=480eda2eda7c464e252f17ac87ec61bccc14f285 ** Changed in: qemu Status: New = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1323001

[Qemu-devel] [Bug 1323001] Re: Netlink socket support for MIPS*

2014-06-10 Thread Luca Falavigna
This patches solves the issue for me: http://patchwork.ozlabs.org/patch/346018/ ** Tags added: patch -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1323001 Title: Netlink socket support for MIPS*

[Qemu-devel] [Bug 1256546] Re: qemu-s390x-static: segmentation fault entering chroot

2014-05-25 Thread Luca Falavigna
** Changed in: qemu (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1256546 Title: qemu-s390x-static: segmentation fault entering chroot Status

[Qemu-devel] [Bug 1323001] [NEW] Netlink socket support for MIPS*

2014-05-25 Thread Luca Falavigna
Public bug reported: It seems QEMU does not support Netlink socket support on MIPS* Trying to compile and run this simple program: #include libaudit.h #include stdio.h #include errno.h int main() { int audit_fd = audit_open (); printf(fd is %d\n, audit_fd); printf(errno

Re: [Qemu-devel] [sheepdog] [PATCH 00/11] sheepdog: reconnect server after connection failure

2013-07-23 Thread Luca Lazzeroni
Is this series of patches applyable to sheepdog-stable-0.6 band qemu 1.5.0 ? I've seen they use async i/o... MORITA Kazutaka morita.kazut...@lab.ntt.co.jp ha scritto: Currently, if a sheepdog server exits, all the connecting VMs need to be restarted. This series implements a feature to

[Qemu-devel] [Bug 829455] [NEW] user mode network stack - hostfwd not working with restrict=y

2011-08-19 Thread Luca Andreucci
Public bug reported: I find that explicit hostfwd commands do not seem to work with restrict=yes option, even if the docs clearly state that hostfwd should override restrict setting. I am using this config: -net

Re: [Qemu-devel] [RFC] QEMU Object Model

2011-07-21 Thread Luca Tettamanti
On Thu, Jul 21, 2011 at 4:49 PM, Anthony Liguori aligu...@us.ibm.com wrote: [cut] And it's really not that much nicer than the C version.  The problem with C++ is that even though the type system is much, much nicer, it still doesn't have introspection or decorators.  These two things would be

Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format

2010-09-06 Thread Luca Tettamanti
idea :) Luca

Re: [Qemu-devel] [PATCH RFC] Advertise IDE physical block size as 4K

2009-12-29 Thread Luca Tettamanti
there were plans to map sectors so that the Linux partition scheme results in nicely aligned filesystem blocks Ugh, I hope you're wrong ;-) AFAICS remapping will lead only to headaches... Linux does not have any problem with aligned partitions. Luca [1] http://thunk.org/tytso/blog/2009/02/20

Re: [Qemu-devel] qemu Changelog Makefile Makefile.target TODO ae...

2007-09-17 Thread Luca
-with-git.html Luca

Re: [Qemu-devel] Build failure on OS X - dynticks

2007-08-31 Thread Luca Tettamanti
and are supported on *BSD so I guessed they would work on OSX too... cleary that's not the case. Can you grep the headers for timer_create? Maybe the prototypes are in a different file. Luca -- Non sempre quello che viene dopo e` progresso. Alessandro Manzoni

Re: [Qemu-devel] Build failure on OS X - dynticks

2007-08-31 Thread Luca
On 8/31/07, Andreas Färber [EMAIL PROTECTED] wrote: Am 31.08.2007 um 21:45 schrieb Luca Tettamanti: Andreas Färber ha scritto: Am 25.08.2007 um 09:37 schrieb Andreas F=E4rber: One of the recent patches (dynticks) has broken compilation on Mac OS X v10.4. Should this work on OS X

Re: [kvm-devel] [Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-24 Thread Luca
listed twice? Luca

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca Tettamanti
Il Wed, Aug 22, 2007 at 08:02:07AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: Actually I'm having troubles with cyclesoak (probably it's calibration), numbers are not very stable across multiple runs... I've had good results with cyclesoak; maybe you need to run

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: Il Wed, Aug 22, 2007 at 08:02:07AM +0300, Avi Kivity ha scritto: Luca Tettamanti wrote: Actually I'm having troubles with cyclesoak (probably it's calibration), numbers are not very stable across multiple runs

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: This is QEMU, with dynticks and HPET: % time seconds usecs/call callserrors syscall -- --- --- - - 52.100.002966 0 96840

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Luca [EMAIL PROTECTED] wrote: I see a lot of sub ms timer_settime(). Many of them are the result of -expire_time being less than the current qemu_get_clock(). False alarm, this was a bug in the debug code :D Luca

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
On 8/22/07, Luca [EMAIL PROTECTED] wrote: On 8/22/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca wrote: This is QEMU, with dynticks and HPET: % time seconds usecs/call callserrors syscall -- --- --- - - 52.10

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-22 Thread Luca
to use HPET in one shot mode). Luca

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-21 Thread Luca Tettamanti
Avi Kivity ha scritto: Luca Tettamanti wrote: At 1000Hz: QEMU hpet5.5% dynticks 11.7% KVM hpet3.4% dynticks7.3% No surprises here, you can see the additional 1k syscalls per second. This is very surprising to me. The 6.2% difference

Re: [Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-21 Thread Luca
On 8/21/07, Matthew Kent [EMAIL PROTECTED] wrote: On Sat, 2007-18-08 at 01:11 +0200, Luca Tettamanti wrote: plain text document attachment (clock-hpet) Linux operates the HPET timer in legacy replacement mode, which means that the periodic interrupt of the CMOS RTC is not delivered (qemu

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-20 Thread Luca Tettamanti
Il Sun, Aug 19, 2007 at 10:31:26PM +0300, Avi Kivity ha scritto: Luca wrote: On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t nearest_delta_us = ULLONG_MAX; +uint64_t vmdelta_us; Hum, I introduced a bug

Re: [kvm-devel] [Qemu-devel] Re: [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-20 Thread Luca
On 8/20/07, malc [EMAIL PROTECTED] wrote: On Mon, 20 Aug 2007, Luca Tettamanti wrote: Il Sun, Aug 19, 2007 at 10:31:26PM +0300, Avi Kivity ha scritto: Luca wrote: On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t

[Qemu-devel] Re: [kvm-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take2

2007-08-19 Thread Luca
On 8/19/07, Luca Tettamanti [EMAIL PROTECTED] wrote: +static uint64_t qemu_next_deadline(void) { +uint64_t nearest_delta_us = ULLONG_MAX; +uint64_t vmdelta_us; Hum, I introduced a bug here... those vars should be signed. On the overhead introduced: how do you measure it? Luca

[Qemu-devel] [PATCH 1/4] Rework alarm timer infrastrucure.

2007-08-17 Thread Luca Tettamanti
Make the alarm code modular, removing #ifdef from the generic code and abstract a common interface for all the timer. The result is functionally equivalent to the old code. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- vl.c | 287

[Qemu-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take 2

2007-08-17 Thread Luca Tettamanti
precedence over other timers, but of course this can be overridden. Patch 4 introduces dynticks timer source; patch is mostly based on the work Dan Kenigsberg. dynticks is now the default alarm timer. Luca --

[Qemu-devel] [PATCH 3/4] Add support for HPET periodic timer.

2007-08-17 Thread Luca Tettamanti
in the same way as the RTC timer. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- vl.c | 57 - 1 file changed, 56 insertions(+), 1 deletion(-) Index: qemu/vl.c

[Qemu-devel] [PATCH 4/4] Add support for dynamic ticks.

2007-08-17 Thread Luca Tettamanti
] Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- configure |5 ++ vl.c | 149 +++--- 2 files changed, 148 insertions(+), 6 deletions(-) Index: qemu/vl.c

[Qemu-devel] [PATCH 2/4] Add -clock option.

2007-08-17 Thread Luca Tettamanti
Allow user to override the list of available alarm timers and their priority. The format of the options is -clock clk1,clk2,... Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- vl.c | 72 +++ 1 file changed, 72 insertions

Re: [kvm-devel] [Qemu-devel] [PATCH 0/4] Rework alarm timer infrastrucure - take 2

2007-08-17 Thread Luca
running on a windows host ? The improvements - beyond the refactoring - are either specific to Linux (HPET timer) or to UNIX in general (dynticks - POSIX timers are used). It may be possible to use one-shot timer on windows too, but I'm not really familiar with win32 API. Luca

[Qemu-devel] [PATCH/RFC 2/4] Add -clock option.

2007-08-16 Thread Luca Tettamanti
Allow user to override the list of available alarm timers and their priority. The format of the options is -clock clk1,clk2,... Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 90 -- 1 files changed, 72 insertions(+), 18

[Qemu-devel] [PATCH/RFC 0/4] Rework alarm timer infrastrucure.

2007-08-16 Thread Luca Tettamanti
Hello, in reply to this mail I will send a serie of 4 patches that cleans up and expands the alarm timer handling in QEMU. Patches apply to current kvm-userspace tree, but I think I can rebase it to QEMU svn if desired. Patch 1 is mostly a cleanup of the existing code; instead of having multiple

[Qemu-devel] [PATCH/RFC 1/4] Rework alarm timer infrastrucure.

2007-08-16 Thread Luca Tettamanti
Make the alarm code modular, removing #ifdef from the generic code and abstract a common interface for all the timer. The result is functionally equivalent to the old code. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 292

[Qemu-devel] [PATCH/RFC 4/4] Add support for dynamic ticks.

2007-08-16 Thread Luca Tettamanti
] Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/configure |5 ++ qemu/vl.c | 149 -- 2 files changed, 148 insertions(+), 6 deletions(-) diff --git a/qemu/configure b/qemu/configure index 365b7fb..38373db 100755 --- a/qemu/configure

[Qemu-devel] [PATCH/RFC 3/4] Add support for HPET periodic timer.

2007-08-16 Thread Luca Tettamanti
in the same way as the RTC timer. Signed-off-by: Luca Tettamanti [EMAIL PROTECTED] --- qemu/vl.c | 57 ++- 1 files changed, 56 insertions(+), 1 deletions(-) diff --git a/qemu/vl.c b/qemu/vl.c index f0b4896..0373beb 100644 --- a/qemu/vl.c +++ b/qemu

[Qemu-devel] Re: [kvm-devel] [PATCH] Add support for HPET periodic timer.

2007-08-13 Thread Luca
On 8/13/07, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Mon, Aug 13, 2007 at 11:04:46AM +0300, Avi Kivity wrote: Luca Tettamanti wrote: Something like: - try to use HPET (unless -no-rtc selected) - try to use RTC (unless -no-rtc selected) - fallback to normal unix facilities

[Qemu-devel] Re: [kvm-devel] [PATCH] Dynamic ticks

2007-08-13 Thread Luca Tettamanti
; +break; +#endif } } } Luca -- Se non puoi convincerli, confondili.

[Qemu-devel] Re: [kvm-devel] PIIX/IDE: ports disabled in PCI config space?

2007-06-05 Thread Luca
On 6/5/07, Avi Kivity [EMAIL PROTECTED] wrote: Luca Tettamanti wrote: Hello, I'm testing the new Fedora7 under KVM. As you may know Fedora has migrated to the new libata drivers. ata_piix is unhappy with the PIIX IDE controller provided by QEmu/KVM: [...] The following patch fixes

[Qemu-devel] PIIX/IDE: ports disabled in PCI config space?

2007-06-04 Thread Luca Tettamanti
; // enable port 1 } void pci_piix_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn) It has been run-time tested with KVM-27. Applies cleanly to qemu 0.9 and with offset to qemu-snapshot (I've not tested it though). Luca -- This message will self destruct in 5 seconds.

Re: [Qemu-devel] QEMU GUI

2006-07-12 Thread Luca Barbato
on Windows, not very native. gtk/cocoa exists. Or platforms other than Windows and Unix. name them, macosx has X and cocoa mostly supported by major toolkits. tk+tile works everywhere and is also looking good. =) lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero

Re: [Qemu-devel] QEMU GUI

2006-07-05 Thread Luca Barbato
managers. -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

Re: [Qemu-devel] QEMU GUI

2006-06-22 Thread Luca Barbato
Fabrice Bellard wrote: Hi, Concerning the QEMU GUI, my mind slightly evolved since my last posts on the topic: I think that a wxWidgets GUI would be the best as it is reasonnably portable and because it uses the native GUIs. wx is nasty at best. -- Luca Barbato Gentoo/linux Gentoo/PPC