[PATCH] hmp: allow filtering `info tlb` entries by address on i386

2024-08-24 Thread Josh Junon
This change adds an optional virtual address parameter to the `info tlb` monitor command on i386 targets, only printing a specific entry if found. Signed-off-by: Josh Junon --- hmp-commands-info.hx | 5 + target/i386/monitor.c | 45 +++ 2 files

Re: [PATCH v3] qmp: Use unsigned integers for address parameters

2024-08-02 Thread Josh Junon
On Fri, Aug 02, 2024 at 04:18:40PM +0200, Markus Armbruster wrote: > Let's go back to v1's title > > qmp: Fix higher half vaddrs for [p]memsave > > Josh Junon writes: > > > Fixes higher-half address parsing for QMP commands > > `[p]mem

[PATCH v3] qmp: Use unsigned integers for address parameters

2024-08-02 Thread Josh Junon
Fixes higher-half address parsing for QMP commands `[p]memsave`. Signed-off-by: Josh Junon --- qapi/machine.json | 11 +-- system/cpus.c | 10 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/qapi/machine.json b/qapi/machine.json index fcfd249e2d

[PATCH v2] qmp: Use unsigned integers for address parameters

2024-08-02 Thread Josh Junon
Fixes higher-half address parsing for QMP commands `[p]memsave` and `dump-guest-memory`. Signed-off-by: Josh Junon --- dump/dump.c | 4 ++-- qapi/dump.json| 2 +- qapi/machine.json | 11 +-- system/cpus.c | 8 4 files changed, 16 insertions(+), 9 deletions

Re: [PATCH] qmp: Fix higher half vaddrs for [p]memsave

2024-08-02 Thread Josh Junon
On Fri, Aug 02, 2024 at 01:39:15PM +0200, Markus Armbruster wrote: > Josh Junon writes: > > > Previously, int64_t's were used when parsing virtual / physical > > addresses for the [p]memsave commands over QMP (HMP was unaffected). > > This caused issues when the

[PATCH] qmp: Fix higher half vaddrs for [p]memsave

2024-07-31 Thread Josh Junon
Previously, int64_t's were used when parsing virtual / physical addresses for the [p]memsave commands over QMP (HMP was unaffected). This caused issues when the virtual addresses were in the higher half of a 64-bit address space, as various portions of the parsing code would consider them out of bo

[PATCH] qmp: Add 'memtranslate' QMP command

2024-07-30 Thread Josh Junon
perly handling higher-half virtual addresses correctly, namely when used over QMP/the monitor. The use and assumption of signed integers caused issues when parsing otherwise valid virtual addresses that instead caused signed integer overflow or ERANGE errors. Signed-off-by: Josh Junon --- docs/devel/

[RFC] linux-newbie thread on dev setup using Qemu

2024-04-18 Thread Josh Marshall
Hello all, I started a thread a thread at https://lore.kernel.org/linux-newbie/CAFkJGRcg+ThJ-xUve0=WorChW=-6prelhxem8ywtwzwpkht...@mail.gmail.com/T/#m563ab52dd2bfe7ac8d85f838f866a1a9d1a6d0a9 . It is using Qemu, but both Linux and Qemu and rather complex pieces of software. I was wondering if som

Re: [PATCH v7 4/7] mac_newworld: Add machine types for different mac99 configs

2023-01-22 Thread Josh Juran
t > g4mercury so I'm open to votes on naming but hard to be convinced there's > anything simpler and more straightforward than using machine id which is > usually also listed everywhere for these. g4tibook1stgen? ("TiBook" being an affectionate abbreviation for "Titanium PowerBook") Cheers, Josh

[PATCH 2/2] Limit lockdown to qemu

2022-01-09 Thread Josh Soref
Signed-off-by: Josh Soref --- .github/workflows/lockdown.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml index 37c6065..b924b25 100644 --- a/.github/workflows/lockdown.yml +++ b/.github/workflows/lockdown.yml @@ -12,6 +12,7

[PATCH 1/2] Fix lockdown comment argument

2022-01-09 Thread Josh Soref
Signed-off-by: Josh Soref --- .github/workflows/lockdown.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml index ad8b8f7..37c6065 100644 --- a/.github/workflows/lockdown.yml +++ b/.github/workflows/lockdown.yml

[PATCH 0/2] GitHub workflow fixes

2022-01-09 Thread Josh Soref
The current workflow fails to provide a comment explaining why it has closed a PR. This is not friendly. Also, while it's perfectly reasonable to close PRs to the qemu organization, it's a bit much to close them in forks. These patches address both of these issues. Josh Soref

Re: [PATCH] trace/simple: Enable tracing on startup only if the user specifies a trace option

2020-10-20 Thread Josh DuBois
t; On Sun, Aug 16, 2020 at 12:46:10PM -0500, dubo...@gmail.com wrote: >>>> From: Josh DuBois >>>> >>>> Tracing can be enabled at the command line or via the >>>> monitor. Command-line trace options are recorded during >>>> trace_opt_par

Re: [PATCH] trace/simple: Allow enabling simple traces from command line

2020-08-04 Thread Josh DuBois
On Aug 3, 2020, at 4:08 AM, Markus Armbruster wrote: > >> >> - prior to db25d56c014aa1a96319c663e0a60346a223b31e, just like today, >> QEMU built with simple tracing will always produce a trace- file, >> regardless of whether the user asks for traces at runtime. > > When you send a patch with a

RE: [PATCH v2 0/5] virtio mmio specification enhancement

2020-08-03 Thread Pincus, Josh
Hi Alex, Thank you for the reply. Please see my inline response below. -Original Message- From: Alex Bennée Sent: Friday, July 31, 2020 8:45 AM To: Pincus, Josh Cc: linux-ker...@vger.kernel.org; zha...@linux.alibaba.com; virtio-...@lists.oasis-open.org; qemu-devel@nongnu.org Subject

Re: [PATCH] trace/simple: Allow enabling simple traces from command line

2020-07-30 Thread Josh DuBois
If I resubmit, I'll try to test a little more next time.  I just wanted my traces to work. ;) On 7/29/20 8:05 AM, Stefan Hajnoczi wrote: On Thu, Jul 23, 2020 at 12:33:59AM -0500, Josh DuBois wrote: The simple trace backend is enabled / disabled with a call to st_set_trace_file_enabled(

Re: [PATCH v2 0/5] virtio mmio specification enhancement

2020-07-30 Thread Pincus, Josh
Hi, We were looking into a similar enhancement for the Virt I/O MMIO transport and came across this project. This enhancement would be perfect for us. Has there been any progress since Feb, 2020? It looks like the effort might have stalled? Thanks, JP

[PATCH] trace/simple: Allow enabling simple traces from command line

2020-07-23 Thread Josh DuBois
enabled tracing.) Fixes: db25d56c014aa1a96319c663e0a60346a223b31e Signed-off-by: Josh DuBois --- trace/control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trace/control.c b/trace/control.c index 2ffe000818..6558b5c906 100644 --- a/trace/control.c +++ b/trace/control.c @@ -225,6 +225,7

[PATCH] linux-user: Add several IFTUN ioctls

2020-07-10 Thread Josh Kunz
/dcde237b9b0eb1d19306e6f48c0a4e058907619f/include/uapi/linux/if_tun.h#L31 Signed-off-by: Josh Kunz --- linux-user/ioctls.h | 20 linux-user/syscall.c | 1 + linux-user/syscall_defs.h | 21 + 3 files changed, 42 insertions(+) diff --git a/linux

Re: [PATCH 4/5] linux-user: Support CLONE_VM and extended clone options

2020-07-08 Thread Josh Kunz
Sorry for the late reply, response inline. Also I noticed a couple mails ago I seemed to have removed the devel list and maintainers. I've re-added them to the CC line. On Wed, Jun 24, 2020 at 3:17 AM Alex Bennée wrote: > > > Josh Kunz writes: > > > On Tue, Jun 23, 20

[PATCH] linux-user: Use EPROTONOSUPPORT for unimplemented netlink protocols

2020-07-06 Thread Josh Kunz
linux-user targets on x86. [1]: https://github.com/torvalds/linux/blob/bfe91da29bfad9941d5d703d45e29f0812a20724/net/netlink/af_netlink.c#L683 Signed-off-by: Josh Kunz --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user

Re: [PATCH 4/5] linux-user: Support CLONE_VM and extended clone options

2020-06-22 Thread Josh Kunz
usly, since it seems like a pretty heavyweight approach. Especially compared to the solution included in this series. Do you think there's a simpler approach that involves using a daemon to do coordination? Thanks again for your reviews. -- Josh Kunz

Re: [PATCH 0/5] linux-user: Support extended clone(CLONE_VM)

2020-06-16 Thread Josh Kunz
t be an interesting test of whether we have > accidental dependencies on the libc internals. I agree it would be interesting to test against musl. I'm pretty sure it would work (this patch only relies on POSIX APIs + Platform ABIs for TLS), but it would be interesting to confirm. -- Josh Kunz

Re: [PATCH 4/5] linux-user: Support CLONE_VM and extended clone options

2020-06-12 Thread Josh Kunz
> +child_tid = atomic_fetch_or(&mgr->managed_tid, 0); > +/* > + * Check if the child has already terminated by this point. If not, wait > + * for the child to exit. As long as the trampoline is not killed by > + * a signal, the kernel guarantees that the memory at &mgr->managed_

[PATCH 5/5] linux-user: Add PDEATHSIG test for clone process hierarchy.

2020-06-11 Thread Josh Kunz
Certain process-level linux features like subreapers, and PDEATHSIG, depend on the guest's process hierarchy being emulated correctly on the host. This change adds a test that makes sure PDEATHSIG works for a guest process created with `clone`. Signed-off-by: Josh Kunz --- tests/tcg/mult

[PATCH 2/5] linux-user: Make fd_trans task-specific.

2020-06-11 Thread Josh Kunz
a task needs to use a different FD table. Signed-off-by: Josh Kunz --- linux-user/Makefile.objs | 2 +- linux-user/fd-trans-tbl.c | 13 +++ linux-user/fd-trans-type.h | 17 + linux-user/fd-trans.c | 3 -- linux-user/fd-trans.h | 75

[PATCH 4/5] linux-user: Support CLONE_VM and extended clone options

2020-06-11 Thread Josh Kunz
M. * CLONE_CHILD_CLEARTID + FUTEX_WAIT: Cannot detect abnormally terminated children. * Doing the child clone directly in the TLS manager thread: This saves the need for the trampoline process, but it causes the child process to be parented to the wrong kernel task (the TLS thre

[PATCH 0/5] linux-user: Support extended clone(CLONE_VM)

2020-06-11 Thread Josh Kunz
atly appreciated. * execve does not clean up the CPUs of clone'd children, for the same reasons as `exit_group`. Josh Kunz (5): linux-user: Refactor do_fork to use new `qemu_clone` linux-user: Make fd_trans task-specific. linux-user: Make sigact_table part of the task state.

[PATCH 3/5] linux-user: Make sigact_table part of the task state.

2020-06-11 Thread Josh Kunz
when cloning children. Signed-off-by: Josh Kunz --- linux-user/qemu.h| 8 linux-user/signal.c | 35 +++ linux-user/syscall.c | 17 + 3 files changed, 52 insertions(+), 8 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h

[PATCH 1/5] linux-user: Refactor do_fork to use new `qemu_clone`

2020-06-11 Thread Josh Kunz
rk) into a separate file. Signed-off-by: Josh Kunz --- linux-user/Makefile.objs | 2 +- linux-user/clone.c | 152 linux-user/clone.h | 27 +++ linux-user/syscall.c | 376 +++ 4 files changed, 365 insertions(+), 192 deletions(-) c

Re: [PATCH 0/4] linux-user: fix use of SIGRTMIN

2020-02-04 Thread Josh Kunz
e is that RT signals are very rarely used, and the only uses I can find are based off SIGRTMIN. This sounds reasonable to me. Josh

Re: [PATCH 0/4] migration: Replace gemu_log with qemu_log

2020-02-03 Thread Josh Kunz
On Mon, Jan 20, 2020 at 3:36 AM Alex Bennée wrote: > Ahh the default build target for the BSDs is "check" but as bsd-user > doesn't have any checks it doesn't end up building. You can force it > with > > make vm-build-netbsd EXTRA_CONFIGURE_OPTS="--disable-system" > BUILD_TARGET="all" > > It wo

Re: [PATCH v2 1/4] linux-user: Use `qemu_log' for non-strace logging

2020-02-03 Thread Josh Kunz
Laurent Vivier writes: > > > >> Le 17/01/2020 à 20:28, Josh Kunz a écrit : > >>> Since most calls to `gemu_log` are actually logging unimplemented > >>> features, > >>> this change replaces most non-strace calls to `gemu_log` with calls to > >>>

[PATCH v3 4/4] bsd-user: Replace gemu_log with qemu_log

2020-02-03 Thread Josh Kunz
redirection. bsd-user does not currently implement any logging redirection options, or log masking options, but this change brings it more in line with the linux-user tree. Signed-off-by: Josh Kunz --- bsd-user/main.c| 29 + bsd-user/qemu.h| 2 -- bsd-user

[PATCH v3 3/4] linux-user: remove gemu_log from the linux-user tree

2020-02-03 Thread Josh Kunz
Now that all uses have been migrated to `qemu_log' it is no longer needed. Reviewed-by: Laurent Vivier Signed-off-by: Josh Kunz --- linux-user/main.c | 9 - linux-user/qemu.h | 1 - 2 files changed, 10 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 8f1d0

Re: [PATCH v2 2/4] linux-user: Use `qemu_log' for strace

2020-02-03 Thread Josh Kunz
On Tue, Jan 28, 2020 at 7:07 AM Laurent Vivier wrote: > > Le 17/01/2020 à 20:28, Josh Kunz a écrit : > > This change switches linux-user strace logging to use the newer `qemu_log` > > logging subsystem rather than the older `gemu_log` (notice the "g") > > logger.

[PATCH v3 2/4] linux-user: Use `qemu_log' for strace

2020-02-03 Thread Josh Kunz
gging (via the QEMU_LOG environment variable or options). This change introduces a new log mask: `LOG_STRACE` which is used for logging of user-mode strace messages. Reviewed-by: Laurent Vivier Signed-off-by: Josh Kunz --- include/qemu/log.h | 2 + linux-user/main.c| 30 ++- linux-u

[PATCH v3 1/4] linux-user: Use `qemu_log' for non-strace logging

2020-02-03 Thread Josh Kunz
is slightly backwards incompatible, since now these "unimplemented" log messages will not be logged by default. Signed-off-by: Josh Kunz --- linux-user/arm/cpu_loop.c | 5 ++-- linux-user/fd-trans.c | 55 +-- linux-user/syscall.c

[PATCH v3 0/4] migration: Replace gemu_log with qemu_log

2020-02-03 Thread Josh Kunz
logging to stderr. Tested: * Built with clang 9 and g++ 8.3 * `make check` run with clang 9 build * Verified: * QEMU_STRACE/-strace still works for linux-user * `make vm-build-netbsd EXTRA_CONFIGURE_OPTS="--disable-system" \ BUILD_TARGET="all"` passed. Josh

Re: [PATCH 0/4] linux-user: fix use of SIGRTMIN

2020-02-03 Thread Josh Kunz
On Sat, Feb 1, 2020 at 4:27 AM Laurent Vivier wrote: > This has been tested with Go (golang 1.10.1 linux/arm64, bionic) on x86_64 > fedora 31. We can avoid the failure in this case allowing the unsupported > signals when we don't provide the "act" parameters to sigaction, only the > "oldact" one.

Re: [PATCH 2/4] linux-user: Use `qemu_log' for strace

2020-01-17 Thread Josh Kunz
On Tue, Jan 14, 2020 at 2:56 AM Alex Bennée wrote: > Could we cut out the middle-man and just qemu_add_log(LOG_STRACE) here > and drop the enable_strace variable. This code has been re-factored based on Laurent's comments. In v2 `enable_strace` is still needed to avoid QEMU_LOG/-d overwriting the

Re: [PATCH 2/4] linux-user: Use `qemu_log' for strace

2020-01-17 Thread Josh Kunz
On Tue, Jan 14, 2020 at 1:09 AM Laurent Vivier wrote: > This is really a special case as the flags are all given at the same > time, could you use directly qemu_set_log() in main()? Fixed in v2. > > +/* Remove (subtract) the given log flags from the current log mask. */ > > +static inline void q

Re: [PATCH 1/4] linux-user: Use `qemu_log' for non-strace logging

2020-01-17 Thread Josh Kunz
On Tue, Jan 14, 2020 at 2:43 AM Alex Bennée wrote: > > As Laurent said I think LOG_UNIMP is perfectly fine for stuff we haven't > done. I don't think any of the cases warrant LOG_GUEST_ERROR. I've replaced `LOG_USER` with `LOG_UNIMP`. Didn't catch that mask at first, LOG_UNIMP is indeed a better

[PATCH v2 4/4] bsd-user: Replace gemu_log with qemu_log

2020-01-17 Thread Josh Kunz
redirection. bsd-user does not currently implement any logging redirection options, or log masking options, but this change brings it more in line with the linux-user tree. Signed-off-by: Josh Kunz --- bsd-user/main.c| 13 ++--- bsd-user/qemu.h| 2 -- bsd-user/strace.c | 32

[PATCH v2 1/4] linux-user: Use `qemu_log' for non-strace logging

2020-01-17 Thread Josh Kunz
is slightly backwards incompatible, since now these "unimplemented" log messages will not be logged by default. Signed-off-by: Josh Kunz --- linux-user/arm/cpu_loop.c | 5 ++-- linux-user/fd-trans.c | 55 +-- linux-user/syscall.c

[PATCH v2 2/4] linux-user: Use `qemu_log' for strace

2020-01-17 Thread Josh Kunz
gging (via the QEMU_LOG environment variable or options). This change introduces a new log mask: `LOG_STRACE` which is used for logging of user-mode strace messages. Signed-off-by: Josh Kunz --- include/qemu/log.h | 2 + linux-user/main.c| 30 ++- linux-user/qemu.h| 1 - linux-use

[PATCH v2 0/4] migration: Replace gemu_log with qemu_log

2020-01-17 Thread Josh Kunz
passed. Not tested: * Build/logging with bsd-user. I do not have easy access to a BSD system. Josh Kunz (4): linux-user: Use `qemu_log' for non-strace logging linux-user: Use `qemu_log' for strace linux-user: remove gemu_log from the linux-user tree bsd-user: Replace

[PATCH v2 3/4] linux-user: remove gemu_log from the linux-user tree

2020-01-17 Thread Josh Kunz
Now that all uses have been migrated to `qemu_log' it is no longer needed. Signed-off-by: Josh Kunz --- linux-user/main.c | 9 - linux-user/qemu.h | 1 - 2 files changed, 10 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 8f1d07cdd6..22578b1633 100644 --- a/

Re: [PATCH 0/4] migration: Replace gemu_log with qemu_log

2020-01-16 Thread Josh Kunz
On Mon, Jan 13, 2020 at 7:06 PM Warner Losh wrote: > The bsd-user that is in tree doesn't work. I've been trying to catch up to > qemu head of tree, but I'm only up to 3.2... chances are the bsd-user > changes will not change the state of things... > Ah good to know. Would you all prefer I don't

Re: [PATCH 0/4] migration: Replace gemu_log with qemu_log

2020-01-16 Thread Josh Kunz
On Tue, Jan 14, 2020 at 3:02 AM Alex Bennée wrote: > > Josh Kunz writes: > > > > > > Not tested: > > * Build/logging with bsd-user. I do not have easy access to a BSD > > system. > > If you have the time we have vm-build-netbsd: > > make

[PATCH 4/4] bsd-user: Replace gemu_log with qemu_log

2020-01-13 Thread Josh Kunz
redirection. bsd-user does not currently implement any logging redirection options, or log masking options, but this change brings it more in line with the linux-user tree. Signed-off-by: Josh Kunz --- bsd-user/main.c| 13 ++--- bsd-user/qemu.h| 2 -- bsd-user/strace.c | 32

[PATCH 2/4] linux-user: Use `qemu_log' for strace

2020-01-13 Thread Josh Kunz
gging (via the QEMU_LOG environment variable or options). Signed-off-by: Josh Kunz --- include/qemu/log.h | 13 ++ linux-user/main.c| 17 +- linux-user/qemu.h| 1 - linux-user/signal.c | 3 +- linux-user/strace.c | 479 ++- linux-user

[PATCH 1/4] linux-user: Use `qemu_log' for non-strace logging

2020-01-13 Thread Josh Kunz
nd to mask out these log messages if they desire. Signed-off-by: Josh Kunz --- include/qemu/log.h| 2 ++ linux-user/arm/cpu_loop.c | 5 ++-- linux-user/fd-trans.c | 55 +-- linux-user/main.c | 24 + linux-user

[PATCH 3/4] linux-user: remove gemu_log from the linux-user tree

2020-01-13 Thread Josh Kunz
Now that all uses have been migrated to `qemu_log' it is no longer needed. Signed-off-by: Josh Kunz --- linux-user/main.c | 9 - linux-user/qemu.h | 1 - 2 files changed, 10 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 0bf40c4d27..945b6adf3a 100644 --- a/

[PATCH 0/4] migration: Replace gemu_log with qemu_log

2020-01-13 Thread Josh Kunz
ied: * QEMU_STRACE/-strace still works for linux-user * -no-force-user-mode-logging uses QEMU_LOG + `user_mode` or `strace` can be set in QEMU_LOG to trigger the appropriate logging. Not tested: * Build/logging with bsd-user. I do not have easy access to a BSD system. Jo

Re: [PATCH] linux-user: Support for NETLINK socket options

2019-11-05 Thread Josh Kunz
Thanks for the fixes Laurent, sorry for the delay. Josh On Tue, Nov 5, 2019 at 1:25 AM Laurent Vivier wrote: > Le 29/10/2019 à 23:43, Josh Kunz a écrit : > > This change includes support for all AF_NETLINK socket options up to > about > > kernel version 5.4 (5.4 is not formal

[PATCH] linux-user: Support for NETLINK socket options

2019-10-29 Thread Josh Kunz
change has been built under gcc 8.3, and clang 9.0, and it passes `make check`. The netlink options have been tested by emulating some non-trival software that uses NETLINK socket options, but they have not been exaustively verified. Signed-off-by: Josh Kunz --- linux-user/syscall.c | 98

Re: [EXTERNAL]Re: [Qemu-devel] patch to swap SIGRTMIN + 1 and SIGRTMAX - 1

2019-10-02 Thread Josh Kunz
range, this is unavoidable; but for the SIGRTMIN, SIGRTMIN+1 case, I’m not sure it’s worth it. After considering these drawbacks, do the QEMU maintainers still think this is the right approach for handling these libc reserved signals? On Fri, Aug 30, 2019 at 6:26 PM Josh Kunz wrote: > I can t

Re: [Qemu-devel] [PATCH] linux-user: Support gdb 'qOffsets' query for ELF

2019-09-03 Thread Josh Kunz via Qemu-devel
/gdb/General-Query-Packets.html#General-Query-Packets On Mon, Aug 26, 2019 at 1:29 AM Laurent Vivier wrote: > Le 17/08/2019 à 01:34, Josh Kunz via Qemu-devel a écrit : > > This is needed to support debugging PIE ELF binaries running under QEMU > > user mode. Currently, `c

Re: [Qemu-devel] [EXTERNAL]Re: patch to swap SIGRTMIN + 1 and SIGRTMAX - 1

2019-08-30 Thread Josh Kunz via Qemu-devel
I can take over the series. I'll rebase the patch set, and update it to address the SIGRTMIN - 1 issue. I should have an update sometime next week. On Wed, Aug 28, 2019 at 10:31 AM Aleksandar Markovic wrote: > > From: Laurent Vivier > > Sent: Wednesday, August 28, 2019 10:5

Re: [Qemu-devel] patch to swap SIGRTMIN + 1 and SIGRTMAX - 1

2019-08-26 Thread Josh Kunz via Qemu-devel
On Wed, Aug 21, 2019 at 2:28 AM Laurent Vivier wrote: > Le 19/08/2019 à 23:46, Josh Kunz via Qemu-devel a écrit : > > Hi all, > > > > I have also experienced issues with SIGRTMIN + 1, and am interested in > > moving this patch forwards. Anything I can do here to help

Re: [Qemu-devel] patch to swap SIGRTMIN + 1 and SIGRTMAX - 1

2019-08-19 Thread Josh Kunz via Qemu-devel
is a link to the original thread this message is in reply to in-case my mail-client doesn't set up the reply properly: https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg01303.html Thanks, Josh Kunz

Re: [Qemu-devel] [PATCH] linux-user: Support gdb 'qOffsets' query for ELF

2019-08-16 Thread Josh Kunz via Qemu-devel
+cc: riku.voi...@iki.fi, I typoed the email on the first go. On Fri, Aug 16, 2019 at 4:34 PM Josh Kunz wrote: > This is needed to support debugging PIE ELF binaries running under QEMU > user mode. Currently, `code_offset` and `data_offset` remain unset for > all ELF binaries, so GDB

[Qemu-devel] [PATCH] linux-user: Support gdb 'qOffsets' query for ELF

2019-08-16 Thread Josh Kunz via Qemu-devel
erved. Buglink: https://bugs.launchpad.net/qemu/+bug/1528239 Signed-off-by: Josh Kunz --- linux-user/elfload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 3365e192eb..ceac035208 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfl

Re: [Qemu-devel] [PATCH] MAINTAINERS: update RBD block maintainer

2019-06-28 Thread Josh Durgin
On 6/28/19 6:55 AM, jdill...@redhat.com wrote: From: Jason Dillaman Remove Josh as per his request since he is no longer the upstream RBD tech lead. Add myself as the maintainer since I am the current RBD tech lead. Signed-off-by: Jason Dillaman --- MAINTAINERS | 2 +- 1 file changed, 1

[Qemu-devel] [Bug 1656711] [NEW] GTK3 interface doesn't zoom-to-fit by default

2017-01-15 Thread Josh Triplett
Public bug reported: The SDL interface automatically scales the video output to match the window size. The GTK3 interface has an off-by-default option "Zoom To Fit" for that. As far as I can tell, no command-line option exists to turn that option on. That makes it harder to quickly zoom a fresh

[Qemu-devel] [Bug 1656710] [NEW] Please support Ctrl-Alt-= to zoom in

2017-01-15 Thread Josh Triplett
Public bug reported: With the GTK3 interface, qemu-system supports pressing Ctrl-Alt-plus to zoom in and Ctrl-Alt-minus to zoom out. However, unlike many programs that support similar zoom hotkeys, qemu-system actually requires using '+', making the hotkey Ctrl-Alt-Shift-= . Most programs with s

Re: [Qemu-devel] [PATCH] rbd : disable rbd_cache_writethrough_until_flush for cache=unsafe

2016-09-21 Thread Josh Durgin
default Signed-off-by: Alexandre Derumier Sorry for the delay - this is correct and needed since this option appeared by default in Ceph hammer. Reviewed-by: Josh Durgin --- block/rbd.c | 4 1 file changed, 4 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 0106fea..f3af6c8

[Qemu-devel] [Bug 1583421] [NEW] Please provide an option to print the default hardware configuration as command-line options, to make -nodefaults easier to use

2016-05-18 Thread Josh Triplett
Public bug reported: For full customization of the default set of hardware qemu supports, a user can pass -nodefaults and then manually specify each device they want. Many specific options document what they translate to in terms of the full configuration model; however, the defaults for any give

[Qemu-devel] [Bug 1583420] [NEW] Please support "-soundhw none"

2016-05-18 Thread Josh Triplett
Public bug reported: qemu currently provides a default set of sound hardware. The -soundhw option can change that default set, such as by using "-soundhw pcspkr" to disable most of it, but no "-soundhw none" option exists to disable all of it. As far as I can tell, disabling the default sound ha

Re: [Qemu-devel] [PATCH v2] rbd:change error_setg() to error_setg_errno()

2016-05-17 Thread Josh Durgin
, 23 insertions(+), 15 deletions(-) Looks good, thanks! Reviewed-by: Josh Durgin diff --git a/block/rbd.c b/block/rbd.c index 5bc5b32..5226b6f 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -290,7 +290,8 @@ static int qemu_rbd_set_conf(rados_t cluster, const char *conf, if

Re: [Qemu-devel] [PATCH] block/rbd: add .bdrv_reopen_prepare() stub

2016-05-17 Thread Josh Durgin
On 05/17/2016 03:03 AM, Sebastian Färber wrote: Hi Kevin, A correct reopen implementation must consider all options and flags that .bdrv_open() looked at. The options are okay, as both "filename" and "password-secret" aren't things that we want to allow a reopen to change. However, in the flag

[Qemu-devel] [Bug 1581334] Re: qemu + librbd takes high %sy cpu under high random io workload

2016-05-13 Thread Josh Durgin
Since this works fine with krbd, it sounds like the bug may be in librbd. Could you install debug symbols (the librbd1-dbg package) and when this occurs, attach to the qemu process with gdb and get a backtrace of all threads (there will be a lot of them) via 'gdb -p $pid' and in gdb 'thread apply a

Re: [Qemu-devel] [PATCH v2 1/3] rbd: add support for getting password from QCryptoSecret object

2015-12-21 Thread Josh Durgin
ey.b64 $QEMU -object secret,id=secret0,file=poolkey.b64,format=base64 \ -drive driver=rbd,filename=rbd:pool/image:id=myname:\ auth_supported=cephx,passwordid=secret0 Signed-off-by: Daniel P. Berrange Looks good to me, thanks! Reviewed-by: Josh Durgin

Re: [Qemu-devel] [PATCH 03/17] rbd: add support for getting password from QCryptoSecret object

2015-10-19 Thread Josh Durgin
On 10/19/2015 08:09 AM, Daniel P. Berrange wrote: Currently RBD passwords must be provided on the command line via $QEMU -drive file=rbd:pool/image:id=myname:\ key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:\ auth_supported=cephx This is insecure because the key is visibl

Re: [Qemu-devel] where can i customize rbd object size?

2015-09-08 Thread Josh Durgin
EFAULT_OBJ_ORDER <https://lxr.missinglinkelectronics.com/qemu+v2.1.0/+code=OBJ_DEFAULT_OBJ_ORDER>, if someone knows , please tell me. Thanks a lot. I have CCed the rbd.c maintainer for you: $ scripts/get_maintainer.pl -f block/rbd.c Josh Durgin (supporter:RBD) Thanks for CCing me, I missed it before. You can s

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-04 Thread josh
ould also take advantage of the ability to directly mmap a file from outside the VM into the VM's address space. In any case, we're getting a bit far afield for the original thread. :) - Josh Triplett

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 07:19:40PM +0200, Laszlo Ersek wrote: > On 09/03/15 18:41, j...@joshtriplett.org wrote: > > On Thu, Sep 03, 2015 at 05:53:45PM +0200, Laszlo Ersek wrote: > >> On 09/03/15 16:50, Josh Triplett wrote: > > >>> Do you virtualize those I/O ports

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 05:53:45PM +0200, Laszlo Ersek wrote: > On 09/03/15 16:50, Josh Triplett wrote: > > On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > >> Then this payload is passed to the guest firmware (SeaBIOS or OVMF) over > >> "fw_

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 07:50:07AM -0700, Josh Triplett wrote: > On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > > I'm excited because for virtualization we might have the reverse use > > case: use BITS to test / debug / develop the ACPI generator of QEMU. :)

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread Josh Triplett
On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > Hi Josh, > > I just found the LWN.net article with the title in the subject: > > http://lwn.net/SubscriberLink/655992/04701db2bbb7e716/ > > ("Thank you LWN", of course. :)) > > This got me

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-27 Thread Josh Durgin
he main culprit here is rbd cache letting itself burst too large, rather than the bounce buffers. Andrey, does this still occur with caching off? Josh

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-26 Thread Josh Durgin
On 08/26/2015 04:47 PM, Andrey Korolyov wrote: On Thu, Aug 27, 2015 at 2:31 AM, Josh Durgin wrote: On 08/26/2015 10:10 AM, Andrey Korolyov wrote: On Thu, May 14, 2015 at 4:42 PM, Andrey Korolyov wrote: On Wed, Aug 27, 2014 at 9:43 AM, Chris Friesen wrote: On 08/25/2014 03:50 PM, Chris

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-26 Thread Josh Durgin
7;re seeing. In-flight requests do have buffers and structures allocated for them in librbd, but these should have lower overhead than cow. If these are the problem, it seems to me a generic limit on in flight ops in qemu would be a reasonable fix. Other backends have resources tied up by in-flight ops as well. Josh [1] https://github.com/ceph/ceph/pull/3410

Re: [Qemu-devel] [Qemu-block] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-07-14 Thread Josh Durgin
On 07/14/2015 07:20 AM, Kevin Wolf wrote: Am 09.07.2015 um 11:59 hat Stefan Hajnoczi geschrieben: On Tue, Jun 30, 2015 at 11:28:18AM -0700, Josh Durgin wrote: Ping On 06/10/2015 08:28 PM, Josh Durgin wrote: Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and

Re: [Qemu-devel] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-06-30 Thread Josh Durgin
Ping On 06/10/2015 08:28 PM, Josh Durgin wrote: Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and ceph settings. The cache option precedence in particular is important due to the potential for misconfigurations (ceph.conf setting rbd_cache=true, qemu setting

[Qemu-devel] [PATCH 2/4] MAINTAINERS: update email address

2015-06-11 Thread Josh Durgin
The old one still works for now, but will not work indefinitely. Signed-off-by: Josh Durgin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4ed8215..34eeb88 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1135,7 +1135,7 @@ S

[Qemu-devel] [PATCH 1/4] rbd: remove unused constants and fields

2015-06-11 Thread Josh Durgin
RBDAIOCB.status was only used for cancel, which was removed in 7691e24dbebb46658e89b3f950fda6ec78bbb823. RBDAIOCB.sector_num was never used. RADOSCB.done and rcbid were never used. RBD_FD* are obsolete since the pipe was removed in e04fb07fd1676e9facd7f3f878c1bbe03bccd26b. Signed-off-by: Josh

[Qemu-devel] [PATCH 4/4] rbd: fix ceph settings precedence

2015-06-11 Thread Josh Durgin
Apply the ceph settings from a config file before any ceph settings from the command line. Since the ceph config file location may be specified on the command line, parse it once to read the config file, and do a second pass to apply the rest of the command line ceph options. Signed-off-by: Josh

[Qemu-devel] [PATCH 3/4] rbd: make qemu's cache setting override any ceph setting

2015-06-11 Thread Josh Durgin
, although this would just be a performance problem. Fix this by changing rbd's cache setting to match qemu after all other ceph settings have been applied. Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/

[Qemu-devel] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-06-11 Thread Josh Durgin
Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and ceph settings. The cache option precedence in particular is important due to the potential for misconfigurations (ceph.conf setting rbd_cache=true, qemu setting cache=none) to accidentally put data at risk. Josh

Re: [Qemu-devel] [PATCH] rbd: print a clear error message when write beyond EOF

2014-12-10 Thread Josh Durgin
n EINVAL from rbd_aio_{read,write,discard} in rbd_start_aio() to avoid duplicating the check. An out of bounds i/o is the only way EINVAL can be returned from these functions in librbd. Josh

Re: [Qemu-devel] qcow2: Can create qcow2 image format on rbd server

2014-12-09 Thread Josh Durgin
On 12/09/2014 01:49 AM, Stefan Hajnoczi wrote: On Tue, Dec 9, 2014 at 3:52 AM, Josh Durgin wrote: On 12/08/2014 05:58 AM, Jun Li wrote: On Fri, 12/05 18:01, Max Reitz wrote: On 2014-12-05 at 16:32, Jun Li wrote: Currently, qemu-img can not create qcow2 image format on rbd server

Re: [Qemu-devel] qcow2: Can create qcow2 image format on rbd server

2014-12-08 Thread Josh Durgin
rbd already supports snapshots, cloning, thin provisioning, and differential backup natively, so putting qcow2 on top tends to just add overhead. Josh So use "-o preallocation=falloc or -o preallocation=full", it not a good solution. Regards, Jun Li I can't say a lot about makin

Re: [Qemu-devel] [PATCH] rbd: Add support for bdrv_invalidate_cache

2014-10-09 Thread Josh Durgin
) +{ +BDRVRBDState *s = bs->opaque; +int r = rbd_invalidate_cache(s->image); +if (r < 0) { +error_setg_errno(errp, -r, "Failed to invalidate the cache"); +} +return r; No return needed here. With that fixed: Reviewed-by: Josh Durgin +} +#endif +

Re: [Qemu-devel] [PATCH v2] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Josh Durgin
o_release(acb); return NULL; } Reviewed-by: Josh Durgin FWIW this error path can only happen in certain combinations of odd circumstances, including specific forms of disk corruption of certain objects in concert with other factors, so it's quite unlikely to occur in practice.

Re: [Qemu-devel] [PATCH v3 18/25] rbd: use BlockDriverState's AioContext

2014-05-08 Thread Josh Durgin
imers, or BHs stay registered when requests have been drained. Cc: Josh Durgin Signed-off-by: Stefan Hajnoczi --- block/rbd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index dbc79f4..41f7bdc 100644 --- a/block/rbd.c +++ b/block/

Re: [Qemu-devel] [ceph-users] qemu + rbd block driver with cache=writeback, is live migration safe ?

2014-04-18 Thread Josh Durgin
g into its cache before the destination starts 4) raw format images have no extra metadata that needs invalidation If librbd populated its cache when the disk was opened, the rbd driver would need to implement bdrv_invalidate(), but since it does not, it's unnecessary. Is this correct K

Re: [Qemu-devel] ?????? ?????? ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-16 Thread Josh Durgin
On 01/15/2014 10:12 PM, ?? wrote: Hi Josh # strings /usr/bin/qemu-system-x86_64 | grep rbd_aio rbd_aio_write rbd_aio_flush rbd_aio_read rbd_aio_create_completion rbd_aio_release rbd_aio_discard rbd_aio_get_return_value So, librbd's asynchronous flush is being used. I set log set

Re: [Qemu-devel] ?????? ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-15 Thread Josh Durgin
On 01/15/2014 01:40 AM, ?? wrote: Hi Josh there is some issues 1. use 'none' cache mode in xml, and unset 'rbd cache=true' in ceph.conf, the network latency issue not show. 2. use 'writethrough' cache mode in xml, and unset 'rbd cache=true' in ceph.

  1   2   >