[Qemu-devel] Re: [PATCH 2/7] Introduce -display argument

2011-03-15 Thread Jes Sorensen
On 03/15/11 15:53, Anthony Liguori wrote: >> -nographic is effectively a convenience shortcut which changes >> the behaviour of several different devices (display, serial, >> parallel, at least). It doesn't belong under '-display' from >> an orthogonality argument, and people who want it because it

[Qemu-devel] Re: [PATCH 2/7] Introduce -display argument

2011-03-15 Thread Jes Sorensen
On 03/15/11 15:51, Anthony Liguori wrote: >> +} else if (strstart(opts, ",window_close=",&nextopt)) { >> +opts = nextopt; >> +if (strstart(opts, "on",&nextopt)) { >> +no_quit = 0; >> +} else if (strstart(opts, "off",&ne

Re: [Qemu-devel] [PATCH 4/7] libcacard: initial commit

2011-03-15 Thread Anthony Liguori
On 03/15/2011 09:25 AM, Alon Levy wrote: On Tue, Mar 15, 2011 at 08:44:27AM -0500, Anthony Liguori wrote: On 03/15/2011 07:42 AM, Jes Sorensen wrote: On 03/14/11 17:40, Alon Levy wrote: On Mon, Mar 14, 2011 at 04:20:22PM +0100, Jes Sorensen wrote: ok, here is a note where I kinda ignored my o

Re: [Qemu-devel] [PATCH 4/7] libcacard: initial commit

2011-03-15 Thread Anthony Liguori
On 03/15/2011 09:51 AM, Jes Sorensen wrote: On 03/15/11 15:25, Alon Levy wrote: I am not sure what is the best way, if it stays in QEMU people will eventually start making modifications to it, without looking at the other copy that is being maintained. Two copies is not really practical. QEMU

Re: [Qemu-devel] [PATCH 4/7] libcacard: initial commit

2011-03-15 Thread Jes Sorensen
On 03/15/11 15:56, Anthony Liguori wrote: > On 03/15/2011 09:51 AM, Jes Sorensen wrote: >> I don't think we want a --libs option that turns the build process into >> only producing the libs. > > No, but you should be able to use options to disable everything but the > libs. Likewise, you should b

Re: [Qemu-devel] Re: [PATCH 2/7] Introduce -display argument

2011-03-15 Thread Alexander Graf
On 15.03.2011, at 15:07, Peter Maydell wrote: > On 15 March 2011 12:36, wrote: >> From: Jes Sorensen >> >> This patch introduces a -display argument which consolidates the >> setting of the display mode. Valid options are: >> sdl/curses/default/serial (serial is equivalent to -nographic) > >

Re: [Qemu-devel] [PATCH 4/7] libcacard: initial commit

2011-03-15 Thread Alon Levy
On Tue, Mar 15, 2011 at 03:59:26PM +0100, Jes Sorensen wrote: > On 03/15/11 15:56, Anthony Liguori wrote: > > On 03/15/2011 09:51 AM, Jes Sorensen wrote: > >> I don't think we want a --libs option that turns the build process into > >> only producing the libs. > > > > No, but you should be able to

[Qemu-devel] Re: [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location.

2011-03-15 Thread Arun R Bharadwaj
* Stefan Hajnoczi [2011-03-15 11:38:03]: > On Tue, Mar 15, 2011 at 10:36 AM, Arun R Bharadwaj > wrote: > > * Arun R Bharadwaj [2011-03-15 16:04:53]: > > > > Author: Arun R Bharadwaj > > Date:   Thu Mar 10 14:45:25 2011 +0530 > > > >    Move the paio_signal_handler to a generic location. > > >

[Qemu-devel] Addming new options to the QEMU monitor

2011-03-15 Thread Marco Boni
Hi. I would like to have some hints on how to implement new options in the QEMU monitor. In particular, I would like to add an instruction counter, so that I can press CTRL+ALT+2 and type something like "instruction_counter", and get the number of instructions that have been executed so far.

Re: [Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Harsh Bora [2011-03-15 17:15:48]: > On 03/15/2011 04:08 PM, Arun R Bharadwaj wrote: > >* Arun R Bharadwaj [2011-03-15 16:04:53]: > > > >Author: Arun R Bharadwaj > >Date: Thu Mar 10 15:11:49 2011 +0530 > > > > Helper routines to use GLib threadpool infrastructure in 9pfs. > > > > This

Re: [Qemu-devel] Addming new options to the QEMU monitor

2011-03-15 Thread Vincent Palatin
On Tue, Mar 15, 2011 at 11:28, Marco Boni wrote: > I would like to have some hints on how to implement new options in the QEMU > monitor. > > In particular, I would like to add an instruction counter, so that I can > press CTRL+ALT+2 and type something like "instruction_counter", and get the > num

[Qemu-devel] [PATCH v3 0/7] Introduce -display and make VNC optional

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen Hi, This is the third version of the -display patches and the option to make VNC optional. It introduces a new -display argument to consolidate the current -sdl/-curses/-nographic/-vnc arguments and I included the patch I posted last week to consolidate the DisplaySurface cod

[Qemu-devel] [PATCH 6/7] error message if user specifies curses on cmd line when curses is disabled

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-options.hx |2 -- vl.c|7 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 3e9a274..4220aad 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -632,11 +63

[Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Anthony Liguori [2011-03-15 08:13:19]: > On 03/15/2011 05:38 AM, Arun R Bharadwaj wrote: > >* Arun R Bharadwaj [2011-03-15 16:04:53]: > > > >Author: Arun R Bharadwaj > >Date: Thu Mar 10 15:11:49 2011 +0530 > > > > Helper routines to use GLib threadpool infrastructure in 9pfs. > > > >

[Qemu-devel] [PATCH 2/7] Introduce -display argument

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen This patch introduces a -display argument which consolidates the setting of the display mode. Valid options are: sdl/curses/default/serial (serial is equivalent to -nographic) Signed-off-by: Jes Sorensen --- qemu-options.hx | 20 ++ vl.c| 75 +

[Qemu-devel] [PATCH 3/7] Introduce -display none

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen New option -display none. This option differs from -display nographic by not trying to take control of stdio etc. but instead behaves as if a graphics display is enabled, except that it doesn't show one. Signed-off-by: Jes Sorensen --- qemu-options.hx |8 +++- sysemu

[Qemu-devel] [PATCH 1/7] Consolidate DisplaySurface allocation in qemu_alloc_display()

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen This removes various code duplication from console.e and sdl.c Signed-off-by: Jes Sorensen --- console.c | 46 -- console.h |2 ++ ui/sdl.c | 20 3 files changed, 34 insertions(+), 34 deletions(-) dif

[Qemu-devel] [PATCH 4/7] Add support for -display vnc

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-options.hx |5 - vl.c| 14 ++ 2 files changed, 18 insertions(+), 1 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index d4f365a..ac3c2e5 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@

[Qemu-devel] [PATCH 5/7] error message if user specifies SDL cmd line option when SDL is disabled

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- qemu-options.hx | 10 -- vl.c|8 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index ac3c2e5..3e9a274 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -

[Qemu-devel] [PATCH v2 1/3] microblaze: Compile uart 16550 serial driver

2011-03-15 Thread edgar . iglesias
From: Michal Simek Upcomming little endian platform will use 16550 serial driver. Signed-off-by: Michal Simek Signed-off-by: Edgar E. Iglesias --- default-configs/microblaze-softmmu.mak |1 + default-configs/microblazeel-softmmu.mak |1 + 2 files changed, 2 insertions(+), 0 deletion

[Qemu-devel] [PATCH v2 0/3] microblaze: Add petalogix-ml605 machine

2011-03-15 Thread edgar . iglesias
From: Edgar E. Iglesias Adds model of the petalogix-ml605 reference design. Normally this is a little endian machine allthough qemu supports it in both modes. Changes since v1: * Fix coding style issues. * Endian swap DMA descriptors on the way in/out of DMA, if needed. * Replace lots of magic n

Re: [Qemu-devel] [PATCH 2/3] xilinx: Add AXIENET & DMA models

2011-03-15 Thread Edgar E. Iglesias
On Mon, Mar 14, 2011 at 09:56:23PM +0200, Blue Swirl wrote: > On Mon, Mar 14, 2011 at 3:46 PM, wrote: > > From: Edgar E. Iglesias > > > > Signed-off-by: Edgar E. Iglesias > > --- > >  Makefile.target     |    2 + > >  hw/xilinx_axidma.c  |  463 +++ > >  hw/xilinx_axidma.

[Qemu-devel] [PATCH 7/7] Make VNC support optional

2011-03-15 Thread Jes . Sorensen
From: Jes Sorensen Per default VNC is enabled. Signed-off-by: Jes Sorensen --- Makefile.objs | 19 ++- configure | 37 + console.h | 26 -- monitor.c | 22 ++ qerror.h |

[Qemu-devel] [PATCH v2 2/3] xilinx: Add AXIENET & DMA models

2011-03-15 Thread edgar . iglesias
From: Edgar E. Iglesias Signed-off-by: Edgar E. Iglesias --- Makefile.target |2 + hw/xilinx_axidma.c | 509 + hw/xilinx_axidma.h | 39 +++ hw/xilinx_axienet.c | 898 +++ 4 files changed, 1448 insertions(+

[Qemu-devel] [PATCH 1/2] target-arm: Fix VLD of single element to all lanes

2011-03-15 Thread Peter Maydell
Fix several bugs in VLD of single element to all lanes: The "single element to all lanes" form of VLD1 differs from those for VLD2, VLD3 and VLD4 in that bit 5 indicates whether the loaded element should be written to one or two Dregs (rather than being a register stride). Handle this by special-c

Re: [Qemu-devel] KVM call minutes for Mar 15

2011-03-15 Thread Anthony Liguori
On 03/15/2011 09:53 AM, Chris Wright wrote: QAPI -- http://wiki.qemu.org/Features/QAPI - please review! - Anthony would like to see feedback and plans to commit in a week (assuming agreement and no major issues in review) - some concern about the maintainability of code generation - but sti

[Qemu-devel] [PATCH 2/2] target-arm: Don't leak TCG temp for UNDEFs in Neon load/store space

2011-03-15 Thread Peter Maydell
Move the allocation and freeing of the TCG temp used for the address for Neon load/store instructions so that we don't allocate the temporary until we've done enough decoding to know that the instruction is not an UNDEF pattern; this avoids leaking the TCG temp in these cases. Signed-off-by: Peter

[Qemu-devel] [PATCH v2 3/3] microblaze: Add PetaLogix ml605 MMU little-endian ref design

2011-03-15 Thread edgar . iglesias
From: Michal Simek Add the first Microblaze little endian platform. Platform uses uart16550, axi ethernet, timer, intc. Signed-off-by: Michal Simek Signed-off-by: Edgar E. Iglesias --- Makefile|2 +- Makefile.target |1 + hw/petalogix_ml605_mmu.c|

[Qemu-devel] [PATCH 0/2] ARM: fix VLD of one element to all lanes

2011-03-15 Thread Peter Maydell
This patchset fixes various bugs in the implementation of the Neon instructions loading a single element to all lanes. The primary bug is that VLD1's "single element to all lanes" form differs from those for VLD2, VLD3 and VLD4 in that bit 5 indicates whether the loaded element should be written t

[Qemu-devel] [PATCH] pcnet: Fix sign extension: make ipxe work with >2G RAM

2011-03-15 Thread Alex Williamson
From: Michael Brown The problem is with definitions in hw/pcnet.c such as: #define CSR_CRDA(S) ((S)->csr[28] | ((S)->csr[29] << 16)) "(S)->csr[29]" is a uint16_t, but "(S)->csr[29] << 16" gets promoted to int, so the overall CSR_CRDA(s) is a (signed) int rather than a uint32_t. This the

[Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread

2011-03-15 Thread Peter Lieven
On 14.03.2011 10:19, Corentin Chary wrote: On Thu, Mar 10, 2011 at 3:13 PM, Corentin Chary wrote: The threaded VNC servers messed up with QEMU fd handlers without any kind of locking, and that can cause some nasty race conditions. Using qemu_mutex_lock_iothread() won't work because vnc_dpy_cp

[Qemu-devel] [PATCH] pc-bios: Use iPXE ROMs

2011-03-15 Thread Alex Williamson
Refresh PXE ROMs from the iPXE project (http://ipxe.org). This includes moving eepro100 to use standard naming and including a script to easily refresh PXE ROMs from either a local git tree or the upstream project. We include the 'git describe' output in the resulting product name, making it easy

[Qemu-devel] Re: [PATCH v2 06/20] kvm: Install optimized interrupt handler

2011-03-15 Thread Marcelo Tosatti
On Tue, Mar 15, 2011 at 12:26:17PM +0100, Jan Kiszka wrote: > KVM only requires to set the raised IRQ in CPUState and to kick the > receiving vcpu if it is remote. > > Signed-off-by: Jan Kiszka > --- > kvm-all.c | 11 +++ > 1 files changed, 11 insertions(+), 0 deletions(-) > > diff --

[Qemu-devel] Re: [PATCH] pc-bios: Use iPXE ROMs

2011-03-15 Thread Anthony Liguori
On 03/15/2011 12:00 PM, Alex Williamson wrote: Refresh PXE ROMs from the iPXE project (http://ipxe.org). This includes moving eepro100 to use standard naming and including a script to easily refresh PXE ROMs from either a local git tree or the upstream project. We include the 'git describe' out

[Qemu-devel] Re: [PATCH v5] vnc: don't mess up with iohandlers in the vnc thread

2011-03-15 Thread Peter Lieven
On 15.03.2011 17:55, Peter Lieven wrote: On 14.03.2011 10:19, Corentin Chary wrote: On Thu, Mar 10, 2011 at 3:13 PM, Corentin Chary wrote: The threaded VNC servers messed up with QEMU fd handlers without any kind of locking, and that can cause some nasty race conditions. Using qemu_mutex_loc

[Qemu-devel] Re: [PATCH] simpletrace: Move st_init() error reporting

2011-03-15 Thread Blue Swirl
Thanks, applied. On Sun, Mar 13, 2011 at 10:14 PM, Stefan Hajnoczi wrote: > User emulator builds do not have error_report() so it should not be used > by simpletrace.c.  In fact, error reporting inside simpletrace.c is > inappropriate and should be done by the caller instead. > > This patch moves

[Qemu-devel] Re: [PATCH v2 00/20] [uq/master] Patch queue, part V (the rest)

2011-03-15 Thread Marcelo Tosatti
On Tue, Mar 15, 2011 at 12:26:11PM +0100, Jan Kiszka wrote: > This series catches "all the rest" to prepare QEMU's KVM support for > merging with qemu-kvm. IOW, once these bits here are applied, qemu-kvm > can switch its infrastructure to upstream and is effectively only adding > own bits for in-ke

[Qemu-devel] [PATCH STABLE 0.14] vnc: Limit r/w access to size of allocated memory

2011-03-15 Thread Stefan Weil
This fixes memory reads and writes which exceeded the upper limit of allocated memory vd->guest.ds->data and vd->server->data. Cc: Anthony Liguori Signed-off-by: Stefan Weil --- ui/vnc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index f4fea04

[Qemu-devel] [PATCH] vnc: Limit r/w access to size of allocated memory

2011-03-15 Thread Stefan Weil
This fixes memory reads and writes which exceeded the upper limit of allocated memory vd->guest.ds->data and vd->server->data. Cc: Anthony Liguori Signed-off-by: Stefan Weil --- ui/vnc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 34dc0cd

Re: [Qemu-devel] segmentation fault in qemu-kvm-0.14.0

2011-03-15 Thread Stefan Weil
Am 15.03.2011 13:53, schrieb Peter Lieven: On 09.03.2011 08:26, Stefan Weil wrote: Am 08.03.2011 23:53, schrieb Peter Lieven: Hi, during testing of qemu-kvm-0.14.0 i can reproduce the following segfault. i have seen similar crash already in 0.13.0, but had no time to debug. my guess is that

Re: [Qemu-devel] KVM call minutes for Mar 15

2011-03-15 Thread Chris Wright
* Anthony Liguori (anth...@codemonkey.ws) wrote: > On 03/15/2011 09:53 AM, Chris Wright wrote: > > QAPI > >- c library implementation is critical to have unit tests and test > > driven development > > - thread safe? > > - no shared state, no statics. > > - threading model requires lock

[Qemu-devel] Re: [PATCH] pc-bios: Use iPXE ROMs

2011-03-15 Thread Alex Williamson
On Tue, 2011-03-15 at 12:35 -0500, Anthony Liguori wrote: > On 03/15/2011 12:00 PM, Alex Williamson wrote: > > Refresh PXE ROMs from the iPXE project (http://ipxe.org). This > > includes moving eepro100 to use standard naming and including a > > script to easily refresh PXE ROMs from either a loca

[Qemu-devel] General Awarness - Unknown Facts

2011-03-15 Thread Khushi P.
Hi, Various unknown facts are listed on the website http://khushiwebworld.com . The unknown facts are really good and I have found it very useful, so thought to share the same with you. They are categorized as 1.Unknown facts 2.Health Facts 3.Ayurveda fa

[Qemu-devel] Re: [PATCH v2 06/20] kvm: Install optimized interrupt handler

2011-03-15 Thread Jan Kiszka
On 2011-03-15 18:10, Marcelo Tosatti wrote: > On Tue, Mar 15, 2011 at 12:26:17PM +0100, Jan Kiszka wrote: >> KVM only requires to set the raised IRQ in CPUState and to kick the >> receiving vcpu if it is remote. >> >> Signed-off-by: Jan Kiszka >> --- >> kvm-all.c | 11 +++ >> 1 files ch

[Qemu-devel] [PATCH 0/4] qxl: implement vga mode without locks

2011-03-15 Thread Alon Levy
This patchset removes all uses of unlock/lock in qxl and spice code. It does this by reimplementing the one path that required a lock from the spice-server thread, namely interface_get_command when in vga mode or running without a qxl device. Incidentaly it fixes the assert(cpu_single_env) that h

[Qemu-devel] [PATCH 2/4] qxl: implement get_command in vga mode without locks

2011-03-15 Thread Alon Levy
From: Uri Lublin This patch and the next drop the requirement to lose the global qemu mutex during dispatcher calls. This patch enables it, the next drops the unlock/lock pairs around dispatcher calls. The current solution of dropping the locks is buggy: * it allows multiple dispatcher calls fr

[Qemu-devel] [PATCH 3/4] qxl/spice: remove qemu_mutex_{un, }lock_iothread around dispatcher

2011-03-15 Thread Alon Levy
with the previous patch making sure get_command no longer needs to lock, there is no reason to drop the qemu iothread mutex in qxl.c and in ui/spice-display.c The only location where the lock remains are the cursor related callbacks, that path is currently broken. It is only triggered if running s

[Qemu-devel] [PATCH 4/4] hw/qxl-render: drop cursor locks, add TODO's.

2011-03-15 Thread Alon Levy
Dropping the locks prevents a deadlock when running with -sdl or -vnc in addition to -spice. When server calls get_cursor_command, and we have an active ds cursor related callback in non vga mode, we need to lock to prevent the iothread (via sdl/vnc gui_update timer) from touching the ds as well.

[Qemu-devel] [PATCH 1/4] qxl/spice-display: move pipe to ssd

2011-03-15 Thread Alon Levy
this moves the int pipe[2] and pthread_t main data from the PCIQXLDevice struct to the SimpleSpiceDisplay. This will let us reuse it in the next patch for both -spice with no -qxl usage and for vga mode from qxl. --- hw/qxl.c | 32 hw/qxl.h |

Re: [Qemu-devel] [PATCH] win32: implement missing timersub

2011-03-15 Thread Blue Swirl
On Sun, Mar 13, 2011 at 7:00 PM, Stefan Weil wrote: > Am 13.03.2011 15:49, schrieb Blue Swirl: >> >> Implement and wrap timersub() for Win32. >> >> Signed-off-by: Blue Swirl >> --- >> osdep.h | 19 +-- >> ui/vnc.c | 6 +++--- >> 2 files changed, 20 insertions(+), 5 deletions(-) >> >

Re: [Qemu-devel] OSX build issues

2011-03-15 Thread Blue Swirl
On Mon, Mar 14, 2011 at 11:21 PM, François Revol wrote: > The OSX build has been broken for some time now... > > * qemu-thread-posix.c: > both qemu_mutex_timedlock and qemu_cond_timedwait make use of clock_gettime() > and CLOCK_REALTIME, which OSX doesn't have. > It seems like both functions are

Re: [Qemu-devel] KVM call minutes for Mar 15

2011-03-15 Thread Anthony Liguori
On 03/15/2011 02:06 PM, Chris Wright wrote: * Anthony Liguori (anth...@codemonkey.ws) wrote: On 03/15/2011 09:53 AM, Chris Wright wrote: QAPI - c library implementation is critical to have unit tests and test driven development - thread safe? - no shared state, no statics. -

Re: [Qemu-devel] OSX build issues

2011-03-15 Thread François Revol
Le 15 mars 2011 à 22:03, Blue Swirl a écrit : > On Mon, Mar 14, 2011 at 11:21 PM, François Revol wrote: >> The OSX build has been broken for some time now... >> >> * qemu-thread-posix.c: >> both qemu_mutex_timedlock and qemu_cond_timedwait make use of >> clock_gettime() and CLOCK_REALTIME, whi

[Qemu-devel] [Bug 697197] Re: Empty password allows access to VNC in libvirt

2011-03-15 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/maverick-updates/qemu-kvm ** Branch linked: lp:ubuntu/lucid-updates/qemu-kvm ** Branch linked: lp:ubuntu/karmic-security/qemu-kvm -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net

[Qemu-devel] [Bug 735752] [NEW] qemu squeeze crashes "BUG: unable to handle kernel NULL pointer dereference at (null)"

2011-03-15 Thread Aidar Kamalov
Public bug reported: my virtual machine server (qemu+libvirt) regularly breaks down with such a record in the logs I can not even ping the guest, but i can ping host, but can not do something with it (cannot ssh login for example) And I dont know how to reproduce the problem :( Mar 15 17:58:04

Re: [Qemu-devel] [PATCH] vl.c: Replace -virtfs string manipulation with QemuOpts

2011-03-15 Thread Venkateswararao Jujjuri (JV)
On 3/13/2011 11:08 AM, Stefan Hajnoczi wrote: > The -virtfs option creates an fsdev representing the pass-through file > system and a guest-visible virtio-9p-pci device that can access this > file system. This patch replaces the string manipulation used to build > and reparse option lists with dir

[Qemu-devel] [PATCH 23/35] kvm: x86: Do not leave halt if interrupts are disabled

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka When an external interrupt is pending but IF is cleared, we must not leave the halt state prematurely. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/target-i386/kvm.c

[Qemu-devel] [PATCH 20/35] s390: Detect invalid invocations of qemu_ram_free/remap

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka This both detects invalid invocations of qemu_ram_free and qemu_ram_remap when mem_path is non-NULL and fixes a build error on s390 ("'area' may be used uninitialized in this function"). Signed-off-by: Jan Kiszka CC: Alexander Graf Signed-off-by: Marcelo Tosatti --- exec.c |

[Qemu-devel] [PATCH 00/35] [PULL] qemu-kvm.git uq/master queue

2011-03-15 Thread Marcelo Tosatti
The following changes since commit cc015e9a5dde2f03f123357fa060acbdfcd570a4: add Win32 IPI service (2011-03-13 14:44:22 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Huang Ying (2): Add qemu_ram_remap KVM, MCE, unpoiso

[Qemu-devel] [PATCH 18/35] Implement qemu_kvm_eat_signals only for CONFIG_LINUX

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka qemu_kvm_eat_signals requires POSIX support with realtime extensions for sigtimedwait. Not all our target platforms provide this. Moreover, undefined sigbus_reraise was referenced on non-Linux as well. Signed-off-by: Jan Kiszka CC: Andreas Färber Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 02/35] kvm: Fix build warning when KVM_CAP_SET_GUEST_DEBUG is lacking

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Original fix by David Gibson. CC: David Gibson Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index e6a7de4..7753c8a 100644 --- a/kvm-all.c +++ b/kvm-all.c

[Qemu-devel] [PATCH 04/35] x86: Perform implicit mcg_status reset

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Reorder mcg_status in CPUState to achieve automatic clearing on reset. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- target-i386/cpu.h|3 ++- target-i386/helper.c |2 -- 2 files changed, 2 insert

[Qemu-devel] [PATCH 08/35] Synchronize VCPU states before reset

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka This is required to support keeping VCPU states across a system reset. If we do not read the current state before the reset, cpu_synchronize_all_post_reset may write back incorrect state information. The first user of this will be MCE MSR synchronization which currently works ar

[Qemu-devel] [PATCH 12/35] x86: Run qemu_inject_x86_mce on target VCPU

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka We will use the current TCG-only MCE injection path for KVM as well, and then this read-modify-write of the target VCPU state has to be performed synchronously in the corresponding thread. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/helper.c | 8

[Qemu-devel] [PATCH 14/35] kvm: x86: Clean up kvm_setup_mce

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka There is nothing to abstract here. Fold kvm_setup_mce into its caller and fix up the error reporting (return code of kvm_vcpu_ioctl holds the error value). Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- targe

[Qemu-devel] [PATCH 07/35] x86: Optionally avoid injecting AO MCEs while others are pending

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Allow to tell cpu_x86_inject_mce that it should ignore Action Optional MCE events when the target VCPU is still processing another one. This will be used by KVM soon. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti

[Qemu-devel] [PATCH 24/35] kvm: Mark VCPU state dirty on creation

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka This avoids that early cpu_synchronize_state calls try to retrieve an uninitialized state from the kernel. That even causes a deadlock if io-thread is enabled. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c |1 + 1 files changed, 1 insertions(+), 0

[Qemu-devel] [PATCH 22/35] kvm: Add in-kernel irqchip awareness to cpu_thread_is_idle

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka With in-kernel irqchip support enabled, the vcpu threads sleep in kernel space while halted. Account for this difference in cpu_thread_is_idle. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- cpus.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) di

[Qemu-devel] [PATCH 16/35] Add qemu_ram_remap

2011-03-15 Thread Marcelo Tosatti
From: Huang Ying qemu_ram_remap() unmaps the specified RAM pages, then re-maps these pages again. This is used by KVM HWPoison support to clear HWPoisoned page tables across guest rebooting, so that a new page may be allocated later to recover the memory error. [ Jan: style fixlets, WIN32 fix ]

[Qemu-devel] [PATCH 19/35] x86: Unbreak TCG support for hardware breakpoints

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Commit 83f338f73e broke x86 hardware breakpoint emulation by moving the debug exception handling out of cpu_exec. Fix this by moving all TCG related bits back, only leaving the generic guest debugging parts in cpus.c. Signed-off-by: Jan Kiszka CC: TeLeMan Signed-off-by: Marcel

[Qemu-devel] [PATCH 21/35] Break up user and system cpu_interrupt implementations

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Both have only two lines in common, and we will convert the system service into a callback which is of no use for user mode operation. Signed-off-by: Jan Kiszka CC: Riku Voipio Signed-off-by: Marcelo Tosatti --- exec.c | 14 ++ 1 files changed, 10 insertions(+)

[Qemu-devel] [PATCH 25/35] x86: Properly reset PAT MSR

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Conforming to the Intel spec, set the power-on value of PAT also on reset, but save it across INIT. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/cpu.h|4 ++-- target-i386/cpuid.c |1 - target-i386/helper.c |5 + 3 files changed

[Qemu-devel] [PATCH 01/35] kvm: ppc: Fix breakage of kvm_arch_pre_run/process_irqchip_events

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Commit 7a39fe5882 failed to convert the right arch function. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-ppc/kvm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index bd4012a..3924f4b

[Qemu-devel] [PATCH 13/35] kvm: x86: Consolidate TCG and KVM MCE injection code

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka This switches KVM's MCE injection path to cpu_x86_inject_mce, both for SIGBUS and monitor initiated events. This means we prepare the MCA MSRs in the VCPUState also for KVM. We have to drop the MSRs writeback restrictions for this purpose which is now safe as every uncoordinated

[Qemu-devel] [PATCH 09/35] kvm: x86: Move MCE functions together

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Pure function suffling to avoid multiple #ifdef KVM_CAP_MCE sections, no functional changes. While at it, annotate some #ifdef sections. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 346

[Qemu-devel] [PATCH 10/35] kvm: Rename kvm_arch_process_irqchip_events to async_events

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka We will broaden the scope of this function on x86 beyond irqchip events. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c |2 +- kvm.h |2 +- target-i386/kvm.c |2 +- target-ppc/kvm.c |2 +- target-s390x/kvm.c |

[Qemu-devel] [PATCH 11/35] kvm: x86: Inject pending MCE events on state writeback

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka The current way of injecting MCE events without updating of and synchronizing with the CPUState is broken and causes spurious corruptions of the MCE-related parts of the CPUState. As a first step towards a fix, enhance the state writeback code with support for injecting events t

[Qemu-devel] [PATCH 32/35] kvm: Align kvm_arch_handle_exit to kvm_cpu_exec changes

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Make the return code of kvm_arch_handle_exit directly usable for kvm_cpu_exec. This is straightforward for x86 and ppc, just s390 would require more work. Avoid this for now by pushing the return code translation logic into s390's kvm_arch_handle_exit. Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH 05/35] x86: Small cleanups of MCE helpers

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Fix some code style issues, use proper headers, and align to cpu_x86 naming scheme. No functional changes. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- cpu-all.h|4 monitor.c

Re: [Qemu-devel] [PATCH] pc-bios: Use iPXE ROMs

2011-03-15 Thread Stefan Weil
Am 15.03.2011 18:00, schrieb Alex Williamson: Refresh PXE ROMs from the iPXE project (http://ipxe.org). This includes moving eepro100 to use standard naming and including a script to easily refresh PXE ROMs from either a local git tree or the upstream project. We include the 'git describe' output

[Qemu-devel] [PATCH 35/35] Expose thread_id in info cpus

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Based on patch by Glauber Costa: To allow management applications like libvirt to apply CPU affinities to the VCPU threads, expose their ID via info cpus. This patch provides the pre-existing and used interface from qemu-kvm. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo To

[Qemu-devel] [PATCH 26/35] x86: Save/restore PAT MSR

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/machine.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/machine.c b/target-i386/machine.c index d78eceb..6384f54 100644 --- a/target-i386/machine.c +++ b/target-i38

[Qemu-devel] [PATCH 27/35] kvm: x86: Synchronize PAT MSR with the kernel

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 3a07fce..032bc3e 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -8

[Qemu-devel] [PATCH 34/35] kvm: x86: Push kvm_arch_debug to kvm_arch_handle_exit

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka There are no generic bits remaining in the handling of KVM_EXIT_DEBUG. So push its logic completely into arch hands, i.e. only x86 so far. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c | 11 --- kvm.h |2 -- target-i3

[Qemu-devel] [PATCH 30/35] kvm: Reorder error handling of KVM_RUN

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Test for general errors first as this is the slower path. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index be235ec..8531555 100644 --- a/kvm-al

[Qemu-devel] [PATCH 33/35] kvm: x86: Reorder functions in kvm.c

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Required for next patch which will access guest debug services from kvm_arch_handle_exit. No functional changes. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 108 ++-- 1 files changed, 54 ins

[Qemu-devel] [PATCH 28/35] kvm: Consider EXIT_DEBUG unknown without CAP_SET_GUEST_DEBUG

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Without KVM_CAP_SET_GUEST_DEBUG, we neither motivate the kernel to report KVM_EXIT_DEBUG nor do we expect such exits. So fall through to the arch code which will simply report an unknown exit reason. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c |

[Qemu-devel] [PATCH 29/35] kvm: Keep KVM_RUN return value in separate variable

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Avoid using 'ret' both for the return value of KVM_RUN as well as the code kvm_cpu_exec is supposed to return. Both have no direct relation. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- kvm-all.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions

[Qemu-devel] [PATCH 17/35] KVM, MCE, unpoison memory address across reboot

2011-03-15 Thread Marcelo Tosatti
From: Huang Ying In Linux kernel HWPoison processing implementation, the virtual address in processes mapping the error physical memory page is marked as HWPoison. So that, the further accessing to the virtual address will kill corresponding processes with SIGBUS. If the error physical memory p

Re: [Qemu-devel] [PATCH] pc-bios: Use iPXE ROMs

2011-03-15 Thread Alex Williamson
On Tue, 2011-03-15 at 23:24 +0100, Stefan Weil wrote: > Am 15.03.2011 18:00, schrieb Alex Williamson: > > Refresh PXE ROMs from the iPXE project (http://ipxe.org). This > > includes moving eepro100 to use standard naming and including a > > script to easily refresh PXE ROMs from either a local git

[Qemu-devel] [Bug 584143] Re: qemu fails to set hdd serial number

2011-03-15 Thread Serge Hallyn
** Tags added: verification-needed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/584143 Title: qemu fails to set hdd serial number Status in QEMU: Fix Released Status in “qemu-kvm” package in Ub

RE: [Qemu-devel] Windows 7 on pure qemu-0.14

2011-03-15 Thread Marco Cianfriglia
Hi to all, thanks for the suggestion to make use of the -cpu nehalem switch. I try to use the option you suggest but I receive this error: Unable to find x86 CPU definition [marcian@metal x86_64-softmmu]$ ./qemu-system-x86_64 -cpu ? x86 [n270] x86 [athlon] x86

[Qemu-devel] [PATCH 31/35] kvm: Rework inner loop of kvm_cpu_exec

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka Let kvm_cpu_exec return EXCP_* values consistently and generate those codes already inside its inner loop. This means we will now re-enter the kernel while ret == 0. Update kvm_handle_internal_error accordingly, but keep kvm_arch_handle_exit untouched, it will be converted in a

[Qemu-devel] [PATCH 15/35] kvm: x86: Fail kvm_arch_init_vcpu if MCE initialization fails

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka There is no reason to continue if the kernel claims to support MCE but then fails to process our request. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 30 +-

[Qemu-devel] [PATCH 06/35] x86: Refine error reporting of MCE injection services

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka As this service is used by the human monitor, make sure that errors get reported to the right channel, and also raise the verbosity. This requires to move Monitor typedef in qemu-common.h to resolve the include dependency. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetosh

[Qemu-devel] [PATCH 03/35] x86: Account for MCE in cpu_has_work

2011-03-15 Thread Marcelo Tosatti
From: Jan Kiszka MCEs can be injected asynchronously, so they can also terminate the halt state. Signed-off-by: Jan Kiszka CC: Huang Ying CC: Hidetoshi Seto CC: Jin Dongming Signed-off-by: Marcelo Tosatti --- target-i386/exec.h | 15 ++- 1 files changed, 6 insertions(+), 9 de

[Qemu-devel] Re: [PATCH, RFC] virtio_blk: add cache control support

2011-03-15 Thread Rusty Russell
On Tue, 15 Mar 2011 15:16:44 +0100, Christoph Hellwig wrote: > Add support for the new dynamic features config space field to allow > en/disabling the write cache at runtime. The userspace interface is > a SCSI-compatible sysfs attribute. > > Signed-off-by: Christoph Hellwig Hi Christoph,

[Qemu-devel] Implement emulation of pSeries logical partitions (v3)

2011-03-15 Thread David Gibson
This patch series adds a "pseries" machine to qemu, allowing it to emulate IBM pSeries logical partitions. More specifically it implements the interface defined by the "PowerPC Architecture Platform Requirements" document (PAPR, or sPAPR for short). Along the way we add a bunch of support for mor

[Qemu-devel] [PATCH 01/26] Clean up PowerPC SLB handling code

2011-03-15 Thread David Gibson
Currently the SLB information when emulating a PowerPC 970 is storeed in a structure with the unhelpfully named fields 'tmp' and 'tmp64'. While the layout in these fields does match the description of the SLB in the architecture document, it is not convenient either for looking up the SLB, or for

[Qemu-devel] [PATCH 02/26] Allow qemu_devtree_setprop() to take arbitrary values

2011-03-15 Thread David Gibson
From: David Gibson Currently qemu_devtree_setprop() expects the new property value to be given as a uint32_t *. While property values consisting of u32s are common, in general they can have any bytestring value. Therefore, this patch alters the function to take a void * instead, allowing caller

<    1   2   3   >