[Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-11 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary --- ui/vnc-enc-tight.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 9f83235..b0181ff 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-

[Qemu-devel] Re: Unmaintained QEMU builds

2010-08-11 Thread Paolo Bonzini
On 08/11/2010 03:37 PM, Stefan Weil wrote: With these changes, build succeeds with SDL. For example, qemu-system-sparc.exe can boot from a Sparc32 CD under Wine. Yes, that's a possible solution. You could also take these patches which I sent to qemu-devel: http://patchwork.ozlabs.org/patch/49

Re: [Qemu-devel] [PATCH 1/2] Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

2010-08-11 Thread Paolo Bonzini
On 08/11/2010 02:32 PM, Cam Macdonell wrote: On Wed, Aug 11, 2010 at 2:28 PM, Stefan Weil wrote: Am 11.08.2010 20:16, schrieb Cam Macdonell: --- kvm-stub.c | 5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kvm-stub.c b/kvm-stub.c index 3378bd3..d45f9fa 100644 --- a/kvm-

[Qemu-devel] [PATCH] make -qmp stdio usable

2010-08-11 Thread Paolo Bonzini
Currently -qmp stdio (or the equivalent -mon/-chardev combination) sets up the terminal attributes even though it does not go through readline to actually do I/O. As a result, echo is disabled and you cannot see anything you type. This patch fixes it by adding a "cooked" option to the stdio chard

Re: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Stefan Weil
Am 11.08.2010 21:19, schrieb Blue Swirl: On Wed, Aug 11, 2010 at 6:51 PM, Blue Swirl wrote: On Wed, Aug 11, 2010 at 6:18 PM, Stefan Weil wrote: Am 11.08.2010 18:34, schrieb Blue Swirl: On Wed, Aug 11, 2010 at 10:58 AM, Stefan Weil wrote: Hi, since several months

Re: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Blue Swirl
On Wed, Aug 11, 2010 at 6:51 PM, Blue Swirl wrote: > On Wed, Aug 11, 2010 at 6:18 PM, Stefan Weil wrote: >> Am 11.08.2010 18:34, schrieb Blue Swirl: >>> >>> On Wed, Aug 11, 2010 at 10:58 AM, Stefan Weil >>> wrote: Hi, since several months, QEMU for Windows (and mingw32 cross

Re: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Blue Swirl
On Wed, Aug 11, 2010 at 6:18 PM, Stefan Weil wrote: > Am 11.08.2010 18:34, schrieb Blue Swirl: >> >> On Wed, Aug 11, 2010 at 10:58 AM, Stefan Weil >> wrote: >>> >>> Hi, >>> >>> since several months, QEMU for Windows (and mingw32 cross builds) >>> no longer builds without error. >> >> Not true for

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Natalia Portillo
You can check how NetBSD does that. NetBSD is able to run executables from other UNIXes and POSIX-compatible systems, including, Linux, IRIX, Darwin. They do that with a series of syscall conversions and library substitutions. That should be portable to use Mac OS X as host instead of NetBSD, an

Re: [Qemu-devel] [PATCH 1/2] Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

2010-08-11 Thread Cam Macdonell
On Wed, Aug 11, 2010 at 2:28 PM, Stefan Weil wrote: > Am 11.08.2010 20:16, schrieb Cam Macdonell: >> >> --- >> kvm-stub.c | 5 + >> 1 files changed, 5 insertions(+), 0 deletions(-) >> >> diff --git a/kvm-stub.c b/kvm-stub.c >> index 3378bd3..d45f9fa 100644 >> --- a/kvm-stub.c >> +++ b/kvm-stub.

Re: [Qemu-devel] [PATCH 1/2] Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

2010-08-11 Thread Stefan Weil
Am 11.08.2010 20:16, schrieb Cam Macdonell: --- kvm-stub.c | 5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kvm-stub.c b/kvm-stub.c index 3378bd3..d45f9fa 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, ui

Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device

2010-08-11 Thread Stefan Weil
Am 11.08.2010 19:07, schrieb Paolo Bonzini: On 08/11/2010 11:49 AM, Cam Macdonell wrote: The win32 problems (missing mmap, maybe more) remain. Could you please fix them? Could that be accomplished with excluding it on Windows on the makefiles? Yes, just use obj-$(CONFIG_POSIX). Paolo O

Re: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Stefan Weil
Am 11.08.2010 18:34, schrieb Blue Swirl: On Wed, Aug 11, 2010 at 10:58 AM, Stefan Weil wrote: Hi, since several months, QEMU for Windows (and mingw32 cross builds) no longer builds without error. Not true for mingw32, it was building fine here until the latest commit. That's a big surprise

[Qemu-devel] [PATCH 2/2] Disable build of ivshmem on non-KVM systems

2010-08-11 Thread Cam Macdonell
--- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index b791492..c8281e9 100644 --- a/Makefile.target +++ b/Makefile.target @@ -191,7 +191,7 @@ obj-y += rtl8139.o obj-y += e1000.o # Inter-VM PCI shared memory -obj-y

[Qemu-devel] [PATCH 1/2] Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

2010-08-11 Thread Cam Macdonell
--- kvm-stub.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kvm-stub.c b/kvm-stub.c index 3378bd3..d45f9fa 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) { return -

[Qemu-devel] Re: [PATCH 2/2] ivshmem: Fix compilation without kvm

2010-08-11 Thread Paolo Bonzini
On 08/11/2010 01:18 PM, Blue Swirl wrote: On Wed, Aug 11, 2010 at 5:05 PM, Paolo Bonzini wrote: On 08/11/2010 03:38 AM, Stefan Weil wrote: kvm_set_ioeventfd_mmio_long is only available with CONFIG_KVM. We should just disable ivshmem for non-KVM diff --git a/Makefile.target b/Makefile.targe

Re: [Qemu-devel] [PATCH] elf: Calculate symbol size if needed

2010-08-11 Thread Stefan Weil
Am 11.08.2010 18:21, schrieb Blue Swirl: On Mon, Aug 9, 2010 at 2:43 PM, Stefan Weil wrote: Symbols with a size of 0 are unusable for the disassembler. Example: While running an arm linux kernel, no symbolic names are used in qemu.log when the cpu is executing an assembler function.

[Qemu-devel] Re: [PATCH 2/2] ivshmem: Fix compilation without kvm

2010-08-11 Thread Cam Macdonell
On Wed, Aug 11, 2010 at 1:05 PM, Paolo Bonzini wrote: > On 08/11/2010 03:38 AM, Stefan Weil wrote: >> >> kvm_set_ioeventfd_mmio_long is only available with CONFIG_KVM. > > We should just disable ivshmem for non-KVM > > diff --git a/Makefile.target b/Makefile.target > index b791492..c8281e9 100644

Re: [Qemu-devel] memory trace with qemu

2010-08-11 Thread Eduardo Cruz
Ok, I succeeded in adding the process tracker hack into qemu and linux, and also in keeping track of the memory access (thanks Yufei Chen for the tip). I also simulated a cycle counter by counting the number of instructions executed, which is equivalent to a cpu with cpi equals to 1. But, as I am s

Re: [Qemu-devel] Re: [PATCH 2/2] ivshmem: Fix compilation without kvm

2010-08-11 Thread Blue Swirl
On Wed, Aug 11, 2010 at 5:05 PM, Paolo Bonzini wrote: > On 08/11/2010 03:38 AM, Stefan Weil wrote: >> >> kvm_set_ioeventfd_mmio_long is only available with CONFIG_KVM. > > We should just disable ivshmem for non-KVM > > diff --git a/Makefile.target b/Makefile.target > index b791492..c8281e9 100644

[Qemu-devel] Re: [PATCH 2/2] ivshmem: Fix compilation without kvm

2010-08-11 Thread Paolo Bonzini
On 08/11/2010 03:38 AM, Stefan Weil wrote: kvm_set_ioeventfd_mmio_long is only available with CONFIG_KVM. We should just disable ivshmem for non-KVM diff --git a/Makefile.target b/Makefile.target index b791492..c8281e9 100644 --- a/Makefile.target +++ b/Makefile.target @@ -191,7 +191,7 @@ obj-

Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device

2010-08-11 Thread Paolo Bonzini
On 08/11/2010 11:49 AM, Cam Macdonell wrote: The win32 problems (missing mmap, maybe more) remain. Could you please fix them? Could that be accomplished with excluding it on Windows on the makefiles? Yes, just use obj-$(CONFIG_POSIX). Paolo

[Qemu-devel] [Bug 614958] Re: copy-paste between client and host

2010-08-11 Thread Steve White
Hi Paolo, Thanks for your acknowledgement! if a solution is on the way, I'm glad to hear it! I agree that it would be best to keep this report open until *after* the solution arrives and this particular feature has been tested and it has been released to the public. If this SPICE doesn't comple

Re: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Blue Swirl
On Wed, Aug 11, 2010 at 10:58 AM, Stefan Weil wrote: > Hi, > > since several months, QEMU for Windows (and mingw32 cross builds) > no longer builds without error. Not true for mingw32, it was building fine here until the latest commit. > I suspect that the same is true for QEMU on Darwin (lots o

Re: [Qemu-devel] [PATCH] elf: Calculate symbol size if needed

2010-08-11 Thread Blue Swirl
On Mon, Aug 9, 2010 at 2:43 PM, Stefan Weil wrote: > Symbols with a size of 0 are unusable for the disassembler. > > Example: > > While running an arm linux kernel, no symbolic names are > used in qemu.log when the cpu is executing an assembler function. That is a problem of the assembler functio

Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device

2010-08-11 Thread Cam Macdonell
On Wed, Aug 11, 2010 at 4:35 AM, Stefan Weil wrote: > Am 27.07.2010 18:54, schrieb Cam Macdonell: >> >> resend for bug fix related to removal of irqfd >> >> Support an inter-vm shared memory device that maps a shared-memory object >> as a >> PCI device in the guest. This patch also supports interr

Re: [Qemu-devel] [Tracing][PATCH 0/2] More Trace events

2010-08-11 Thread Stefan Hajnoczi
On Wed, Aug 11, 2010 at 12:43 PM, Prerna Saxena wrote: > Set of patches to add trace-events for tracking IO and balloon events > flagged via the monitor. http://repo.or.cz/w/qemu/stefanha.git/commitdiff/939e5dc31ec374036628986686e9d49e6cbbc33c http://repo.or.cz/w/qemu/stefanha.git/commitdiff/ed80

[Qemu-devel] [PATCH] virtio-9p: Allow O_NOCTTY flag in open().

2010-08-11 Thread Sripathi Kodi
Currently virtio-9p server doesn't allow O_NOCTTY flag in open(). However, gcc passes this flag while opening files. As a result it is now impossible to compile any C code on the 9P mount! I don't see any reason for dis-allowing O_NOCTTY flag in QEMU 9P server. AFAIK QEMU starts off with a control

Re: [Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-11 Thread Corentin Chary
On Wed, Aug 11, 2010 at 3:06 PM, Chris Krumme wrote: > Hello Corentin, > > On 08/11/2010 12:49 AM, Corentin Chary wrote: >> >> The force_jpeg threshold was too low. >> >> Signed-off-by: Corentin Chary >> --- >>  qemu-thread.c      |    1 + >>  ui/vnc-enc-tight.c |   20 ++-- >>  2 f

Re: [Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-11 Thread Chris Krumme
Hello Corentin, On 08/11/2010 12:49 AM, Corentin Chary wrote: The force_jpeg threshold was too low. Signed-off-by: Corentin Chary --- qemu-thread.c |1 + ui/vnc-enc-tight.c | 20 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/qemu-thread.c b

[Qemu-devel] [Tracing][PATCH 2/2] More Trace events

2010-08-11 Thread Prerna Saxena
[PATCH 2/2] Trace event for tracking entry point of balloon request handler. Signed-off-by: Prerna Saxena --- balloon.c|2 ++ trace-events |4 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/balloon.c b/balloon.c index 8e0b7f1..0021fef 100644 --- a/balloon.c +++

[Qemu-devel] [Tracing][PATCH 1/2] More Trace events

2010-08-11 Thread Prerna Saxena
[PATCH 1/2] Trace events for tracking port IO Signed-off-by: Prerna Saxena --- ioport.c |7 +++ trace-events |4 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index 53dd87a..ec3dc65 100644 --- a/ioport.c +++ b/ioport.c @@ -26,6 +26,7 @@

[Qemu-devel] [Tracing][PATCH 0/2] More Trace events

2010-08-11 Thread Prerna Saxena
Set of patches to add trace-events for tracking IO and balloon events flagged via the monitor. -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Thanks Stefan for the explanation ... It does not look like a pleasant thing to do though :) On Wed, Aug 11, 2010 at 3:33 PM, Stefan Weil wrote: > Am 11.08.2010 11:33, schrieb C K Kashyap: > > I was wondering if it would be easy to force build the user-emulation on > mac - as in, lets say my a.

[Qemu-devel] [PATCH v2] trace: Make trace record fields 64-bit

2010-08-11 Thread Prerna Saxena
Explicitly use 64-bit fields in trace records so that timestamps and magic numbers work for 32-bit host builds. Changelog (from initial patch posted by Stefan): 1) TraceEventID is now uint64_t to take care of same number of tracepoints on both 32 and 64 bit builds. 2) Cast arguments to uintptr_t

Fwd: [Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Matthijs ter Woord
Stefan, Sorry for directly replying. Resending to list: At least QEMU for windows has some serious bugs, related to GDB handling, and serial handling.. On Wed, Aug 11, 2010 at 12:58 PM, Stefan Weil wrote: > Hi, > > since several months, QEMU for Windows (and mingw32 cross builds) > no longer

[Qemu-devel] Unmaintained QEMU builds

2010-08-11 Thread Stefan Weil
Hi, since several months, QEMU for Windows (and mingw32 cross builds) no longer builds without error. I suspect that the same is true for QEMU on Darwin (lots of errors like darwin-user/qemu.h:149: error: cast to pointer from integer of different size), but I'm not sure here because I have no

[Qemu-devel] Re: [Tracing] More Trace events

2010-08-11 Thread Stefan Hajnoczi
On Wed, Aug 11, 2010 at 01:55:02PM +0530, Prerna Saxena wrote: > This patch adds few more trace events for tracking IO and also to trace > balloon event flagged via the monitor. > > Signed-off-by: Prerna Saxena > --- Thanks for adding these trace events. Two minor requests: 1. Please split the

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 11:33, schrieb C K Kashyap: I was wondering if it would be easy to force build the user-emulation on mac - as in, lets say my a.out from linux is really trivial - even statically linked for that matter. All it does is, say, write "hello world\n" to the screen - I'd imaging that wr

Re: [Qemu-devel] [PATCH] trace: Make trace record fields 64-bit

2010-08-11 Thread malc
On Wed, 11 Aug 2010, Prerna Saxena wrote: > On 08/09/2010 07:05 PM, Stefan Hajnoczi wrote: > > Explicitly use 64-bit fields in trace records so that timestamps and > > magic numbers work for 32-bit host builds. > > > > Signed-off-by: Stefan Hajnoczi > > --- > > simpletrace.c | 31 +++

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
I was wondering if it would be easy to force build the user-emulation on mac - as in, lets say my a.out from linux is really trivial - even statically linked for that matter. All it does is, say, write "hello world\n" to the screen - I'd imaging that write system call would be similar on mac (as fa

[Qemu-devel] Latest version in Git doesn't link - any ideas?

2010-08-11 Thread Nigel Horne
make distclean ./configure --enable-linux-aio --enable-io-thread --enable-kvm make ... LINK arm-softmmu/qemu-system-arm ivshmem.o: In function `ivshmem_mmio_map': ivshmem.c:(.text+0x80f): undefined reference to `kvm_set_ioeventfd_mmio_long' ivshmem.o: In function `ivshmem_read': ivshmem.c:(.tex

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 11:06, schrieb C K Kashyap: Let me see if I understand this right - qemu loads the a.out and begins to interpret the x86 instructions in the a.out and when a system call happens, it makes the call the host system is that right? Right. That's the way how linux user mode

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Let me see if I understand this right - qemu loads the a.out and begins to interpret the x86 instructions in the a.out and when a system call happens, it makes the call the host system is that right? On Wed, Aug 11, 2010 at 2:12 PM, Stefan Weil wrote: > Am 11.08.2010 10:31, schrieb C K

Re: [Qemu-devel] [PATCH] Add new user mode option -ignore-environment

2010-08-11 Thread Stefan Weil
Am 01.08.2010 13:48, schrieb Stefan Weil: Am 16.07.2010 15:09, schrieb Stefan Weil: Am 16.07.2010 09:04, schrieb Markus Armbruster: Stefan Weil writes: An empty environment is sometimes useful in user mode. The new option provides it for linux-user and bsd-user (darwin-user still has no envi

Re: [Qemu-devel] Running the user emulation

2010-08-11 Thread Stefan Weil
Am 11.08.2010 10:31, schrieb C K Kashyap: Hi, I've built qemu on my mac osx using this config - ./configure --prefix=/Users/ckk/local/ --target-list="i386-softmmu x86_64-softmmu" --enable-linux-user Now, I have a simple a.out built on linux - how can I run it using qemu on my mac box? -- Re

Re: [Qemu-devel] [PATCH v8 5/5] RESEND: Inter-VM shared memory PCI device

2010-08-11 Thread Stefan Weil
Am 27.07.2010 18:54, schrieb Cam Macdonell: resend for bug fix related to removal of irqfd Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by communicating over a unix domain socket. This

[Qemu-devel] Running the user emulation

2010-08-11 Thread C K Kashyap
Hi, I've built qemu on my mac osx using this config - ./configure --prefix=/Users/ckk/local/ --target-list="i386-softmmu x86_64-softmmu" --enable-linux-user Now, I have a simple a.out built on linux - how can I run it using qemu on my mac box? -- Regards, Kashyap

[Qemu-devel] [Tracing] More Trace events

2010-08-11 Thread Prerna Saxena
This patch adds few more trace events for tracking IO and also to trace balloon event flagged via the monitor. Signed-off-by: Prerna Saxena --- balloon.c|2 ++ ioport.c |7 +++ trace-events |8 3 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ball

[Qemu-devel] [PATCH 1/2] ivshmem: Fix compilation (wrong format specifier)

2010-08-11 Thread Stefan Weil
st_size is an off32_t or off64_t, so %ld does not always work. Cc: Anthony Liguori Cc: Cam Macdonell Signed-off-by: Stefan Weil --- hw/ivshmem.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index bbb5cba..ec894e9 100644 --- a/hw/ivshme

[Qemu-devel] [PATCH 2/2] ivshmem: Fix compilation without kvm

2010-08-11 Thread Stefan Weil
kvm_set_ioeventfd_mmio_long is only available with CONFIG_KVM. Cc: Anthony Liguori Cc: Cam Macdonell Signed-off-by: Stefan Weil --- hw/ivshmem.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index ec894e9..63562e1 100644 --- a/hw/ivs