Re: [PATCHv7] add mergeable buffers support to vhost_net

2010-04-30 Thread David Stevens
Michael S. Tsirkin m...@redhat.com wrote on 04/29/2010 06:45:15 AM: On Wed, Apr 28, 2010 at 01:57:12PM -0700, David L Stevens wrote: This patch adds mergeable receive buffer support to vhost_net. Signed-off-by: David L Stevens dlstev...@us.ibm.com I have applied this, thanks very much!

Fedora 13 Beta - Cannot Read HD on WinXP 2003 64bit Installs

2010-04-30 Thread Jonathan Hoover
Hello, I came across a message someone posted elsewhere at http://article.gmane.org/gmane.comp.emulators.qemu/66135 while trying to determine why Windows XP and 2003 guest machines are not installing under Fedora 13 Beta. I would think others have run into this problem, but see no discussion in

Re: qemu-kvm.0.12.2 aborts on linux

2010-04-30 Thread Gleb Natapov
On Wed, Apr 28, 2010 at 10:19:37AM -0700, K D wrote: Am using yahoo mail and my mails to this mailer gets rejected every time saying message has HTML content etc. Should I use some other mail tool? Below is my issue. I am trying to get KVM/qemu running on linux. I compiled 2.6.27.10 by

Re: [PATCH 0/5] Fix EFER.NX=0 with EPT

2010-04-30 Thread Marcelo Tosatti
On Wed, Apr 28, 2010 at 04:47:14PM +0300, Avi Kivity wrote: Currently we run with EFER.NX=1 on the guest even if the guest value is 0. This is fine with shadow, since we check bit 63 when instantiating a page table, and fault if bit 63 is set while EFER.NX is clear. This doesn't work with

Re: 32-bit color graphic on KVM virtual machines

2010-04-30 Thread Andy Lutomirski
shacky wrote: Hi. Is it possible to have 32-bit color graphic on KVM virtual machines? I installed a Windows virtual machine, but it allows me to configure only 24-bit color display and it does not have any display driver installed. 24-bit means 8 bits per RGB channel. 32-bit means 8 bits per

[PATCH 1/1] KVM: X86: add the support of XSAVE/XRSTOR to guest

2010-04-30 Thread Dexuan Cui
When the host enables XSAVE/XRSTOR, the patch exposes the XSAVE/XRSTOR related CPUID leaves to guest by fixing up kvm_emulate_cpuid() and the patch allows guest to set CR4.OSXSAVE to enable XSAVE. The patch adds per-vcpu host/guest xstate image/mask and enhances the current FXSAVE/FRSTOR with the

Re: [PATCH] kvm mmu: reduce 50% memory usage

2010-04-30 Thread Avi Kivity
On 04/30/2010 05:25 AM, Lai Jiangshan wrote: It's unrelated to TDP, same issue with shadow. I think the calculation is correct. For example the 4th spte for a level=2 page will yield gfn=4*512. Avi, Marcelo Thank you very much. The calculation I used is correct. Yes. btw, can

Re: [PATCH 1/4] KVM MMU: fix race in invlpg code

2010-04-30 Thread Avi Kivity
On 04/30/2010 12:00 PM, Xiao Guangrong wrote: It has race in invlpg code, like below sequences: A: hold mmu_lock and get 'sp' B: release mmu_lock and do other things C: hold mmu_lock and continue use 'sp' if other path freed 'sp' in stage B, then kernel will crash This patch checks 'sp'

kvm io-performance with smp

2010-04-30 Thread Udo Lembke
Hello, i'm new on this list and hope this topic isn't discuss several times before. I use kvm with proxmox ve and kvm work very well, but the io-performance with windows-guests is only good with one (guest)cpu. The testings are based on kvm 0.12.3 (with the same result on 0.11.1). Here is my

Re: [PATCH 3/4] KVM MMU: allow shadow page become unsync at creating time

2010-04-30 Thread Avi Kivity
On 04/30/2010 12:03 PM, Xiao Guangrong wrote: Allow new shadow page become unsync when is created, then we no need write-protect the 'sp-gfn', this idea is from Avi: |Another interesting case is to create new shadow pages in the unsync |state. That can help when the guest starts a short lived

Re: [PATCH] kvm mmu: reduce 50% memory usage

2010-04-30 Thread Avi Kivity
On 04/30/2010 11:54 AM, Lai Jiangshan wrote: Avi Kivity wrote: On 04/30/2010 05:25 AM, Lai Jiangshan wrote: It's unrelated to TDP, same issue with shadow. I think the calculation is correct. For example the 4th spte for a level=2 page will yield gfn=4*512. Avi,

Re: [PATCHv2 00/23] next round of emulator cleanups

2010-04-30 Thread Avi Kivity
On 04/28/2010 07:15 PM, Gleb Natapov wrote: This is the next round of emulator cleanups. Make it even more detached from kvm. First patch introduces IO read cache which is needed to correctly emulate instructions that require more then one IO read exit during emulation. Reviewed-by: Avi

Re: [PATCH 15/23] KVM: do not inject #PF in (read|write)_emulated() callbacks

2010-04-30 Thread Avi Kivity
On 04/28/2010 12:21 PM, Gleb Natapov wrote: On Wed, Apr 28, 2010 at 12:11:41PM +0300, Avi Kivity wrote: On 04/27/2010 03:15 PM, Gleb Natapov wrote: Return error to x86 emulator instead of injection exception behind its back. Signed-off-by: Gleb Natapovg...@redhat.com ---

Re: [PATCH V3] drivers/uio/uio_pci_generic.c: allow access for non-privileged processes

2010-04-30 Thread Michael S. Tsirkin
On Thu, Apr 29, 2010 at 12:29:40PM -0700, Tom Lyon wrote: Michael, et al - sorry for the delay, but I've been digesting the comments and researching new approaches. I think the plan for V4 will be to take things entirely out of the UIO framework, and instead have a driver which supports

FYI: WinKVM (Windows kernel-based virtual machine)

2010-04-30 Thread kazushi takahashi
Hi there, I have ported Linux KVM to the Microsoft Windows XP and already succeeded in executing Linux guest OS which is attached in QEMU. I have named this virtual machine WinKVM. I introduced a daring and original means to develop WinKVM. More specifically, I implemented a software abstraction

Re: [PATCH 5/5] KVM: VMX: Atomically switch efer if EPT !EFER.NX

2010-04-30 Thread Marcelo Tosatti
Avi, This patch breaks WinVista.64 install. On Wed, Apr 28, 2010 at 04:47:19PM +0300, Avi Kivity wrote: When EPT is enabled, we cannot emulate EFER.NX=0 through the shadow page tables. This causes accesses through ptes with bit 63 set to succeed instead of failing a reserved bit check.

Re: [PATCH 5/5] KVM: VMX: Atomically switch efer if EPT !EFER.NX

2010-04-30 Thread Avi Kivity
On 04/30/2010 08:37 PM, Marcelo Tosatti wrote: Avi, This patch breaks WinVista.64 install. Please back it out then (the entire patchset). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCHv7] add mergeable buffers support to vhost_net

2010-04-30 Thread Michael S. Tsirkin
On Wed, Apr 28, 2010 at 01:57:12PM -0700, David L Stevens wrote: This patch adds mergeable receive buffer support to vhost_net. Signed-off-by: David L Stevens dlstev...@us.ibm.com I have applied this, thanks very much! I have also applied some tweaks on top, please take a look. Thanks, MSt

Re: [PATCH] kvm mmu: reduce 50% memory usage

2010-04-30 Thread Marcelo Tosatti
On Wed, Apr 28, 2010 at 07:57:01PM +0800, Lai Jiangshan wrote: I think users will enable tdp when their hardwares support ept or npt. This patch can reduce about 50% kvm mmu memory usage for they. This simple patch use the fact that: When sp-role.direct is set, sp-gfns does not contain

Re: [PATCH] kvm mmu: reduce 50% memory usage

2010-04-30 Thread Avi Kivity
On 04/29/2010 09:09 PM, Marcelo Tosatti wrote: You missed quadrant on 4mb large page emulation with shadow (see updated patch below). Good catch. Also for some reason i can't understand the assumption does not hold for large sptes with TDP, so reverted for now. It's unrelated to TDP,

VT-d passing a Raid Controller in KVM

2010-04-30 Thread Yushu Yao
Hi Experts, I have successfully used VD-t pci passthrough for PCI-E based NICs in KVM. I'm trying to pass a PCI-E x8 MegaRaid 9240 SAS raid card to a KVM guest. However, the device driver in the guest can't initialize the Card. It seems that the driver is trying to RESET the card, however,

Re: [PATCHv7] add mergeable buffers support to vhost_net

2010-04-30 Thread Michael S. Tsirkin
On Wed, Apr 28, 2010 at 01:57:12PM -0700, David L Stevens wrote: This patch adds mergeable receive buffer support to vhost_net. Signed-off-by: David L Stevens dlstev...@us.ibm.com You can find the latest version on the following net-next based tree:

Re: [PATCH 4/4] KVM MMU: do not intercept invlpg if 'oos_shadow' is disabled

2010-04-30 Thread Avi Kivity
On 04/30/2010 12:05 PM, Xiao Guangrong wrote: If 'oos_shadow' == 0, intercepting invlpg command is really unnecessary. And it's good for us to compare the performance between enable 'oos_shadow' and disable 'oos_shadow' @@ -74,8 +74,9 @@ static int dbg = 0; module_param(dbg, bool, 0644);

Re: [PATCH] kvm mmu: reduce 50% memory usage

2010-04-30 Thread Marcelo Tosatti
On Thu, Apr 29, 2010 at 09:43:40PM +0300, Avi Kivity wrote: On 04/29/2010 09:09 PM, Marcelo Tosatti wrote: You missed quadrant on 4mb large page emulation with shadow (see updated patch below). Good catch. Also for some reason i can't understand the assumption does not hold for large

Re: Regression in vga performance between 0.11.1 and 0.12.1.1

2010-04-30 Thread Avi Kivity
On 04/28/2010 10:33 PM, Adam Greenblatt wrote: Hi, I noticed that certain guests (for example, Ubuntu 9.04, Ubuntu 9.10, and the Ubuntu 10.04 release candidate) show dramatically (~100x) slower graphical output when running under qemu-kvm-0.12.1.1 than under qemu-kvm-0.11.1. Other guests,

KVM hook for code integrity checking

2010-04-30 Thread Suen Chun Hui
Dear KVM developers, I'm currently working on an open source security patch to use KVM to implement code verification on a guest VM in runtime. Thus, it would be very helpful if someone can point to me the right function or place to look at for adding 2 hooks into the KVM paging code to: 1.

Re: [PATCH 0/5] Fix EFER.NX=0 with EPT

2010-04-30 Thread Avi Kivity
On 04/29/2010 02:22 AM, Marcelo Tosatti wrote: On Wed, Apr 28, 2010 at 04:47:14PM +0300, Avi Kivity wrote: Currently we run with EFER.NX=1 on the guest even if the guest value is 0. This is fine with shadow, since we check bit 63 when instantiating a page table, and fault if bit 63 is set

[PATCH] KVM: Document KVM_SET_BOOT_CPU_ID

2010-04-30 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- Documentation/kvm/api.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/kvm/api.txt b/Documentation/kvm/api.txt index 0f96e52..159b4ef 100644 --- a/Documentation/kvm/api.txt +++

Re: Can I simulate a virtual Dual-Head Graphiccard?

2010-04-30 Thread Avi Kivity
On 04/28/2010 11:08 PM, Axel Kittenberger wrote: Hello, This is a question I was not able to answer with a search. I've been using kvm now quite successfully as server side solution. Now I want to use it on a particular desktop to have a Windows 7 Guest on a native Linux system. Well this

Re: Potential thread synchronization issue in qcow2.c and qcow2-cluster.c

2010-04-30 Thread Stefan Hajnoczi
I profiled all executions of qemu_mutex_lock_iothread(), and found that it only protects the vl.c:main_loop_wai() thread but does NOT protect the qemu-kvm.c:kvm_cpu_exec() thread. Did I miss something or is this a defect? Hi again, I took another look at qemu-kvm 0.12.3 and here is how I

Re: [PATCH V3] drivers/uio/uio_pci_generic.c: allow access for non-privileged processes

2010-04-30 Thread Tom Lyon
Michael, et al - sorry for the delay, but I've been digesting the comments and researching new approaches. I think the plan for V4 will be to take things entirely out of the UIO framework, and instead have a driver which supports user mode use of well-behaved PCI devices. I would like to use

Re: Potential thread synchronization issue in qcow2.c and qcow2-cluster.c

2010-04-30 Thread Chunqiang (CQ) Tang
You are absolute right and this solved the puzzle. I also did profiling to confirm your observation. Thank you for all the help! Hi again, I took another look at qemu-kvm 0.12.3 and here is how I read it: The mutex which is supposed to protect IO emulation is qemu-kvm.c:qemu_mutex. The cpu

[PATCH] intel_txt: enable VMXON check with SMX in KVM

2010-04-30 Thread Shane Wang
Per document, for feature control MSR Bit 1 enables VMXON in SMX operation. If the bit is clear, execution of VMXON in SMX operation causes a general-protection exception. Bit 2 enables VMXON outside SMX operation. If the bit is clear, execution of VMXON outside SMX operation causes a

--no-kvm support is still broken - Will this ever be supported again?

2010-04-30 Thread Trevor Orsztynowicz
Hi everyone, KVM-0.12.3 and the latest version from the git repository no longer support the '--no-kvm' option. This seems to be related to virt-io and the boot=on flag. The last version that this worked in to my knowledge was KVM-0.11.0. Many distributions don't include straight QEMU versions

Re: [PATCH v3 7/10] KVM MMU: allow more page become unsync at gfn mapping time

2010-04-30 Thread Marcelo Tosatti
On Wed, Apr 28, 2010 at 11:55:49AM +0800, Xiao Guangrong wrote: In current code, shadow page can become asynchronous only if one shadow page for a gfn, this rule is too strict, in fact, we can let all last mapping page(i.e, it's the pte page) become unsync, and sync them at invlpg or flush tlb

Re: Can I simulate a virtual Dual-Head Graphiccard?

2010-04-30 Thread FinnTux
Is this possible with kvm? Either simulate a dual head mapping to one wide SDL/VNC display. Or having two SDL/VNC displays? No. It was brought up before on the qemu list I believe. I think the gist was that qemu didn't support more than one vga card. Spice (www.spice-space.org) can do

What changed since kvm-72 resulting in winNT to fail to boot (STOP 0x0000001E) ?

2010-04-30 Thread Michael Tokarev
I've a bugreport handy, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575439 about the apparent problem booting winNT 4 in kvm 0.12. At least 2 people were hit by this issue. In short, when booting winNT 4.0, it BSODs with error code 0x001E, which means inaccessible boot device. Note

Re: [qemu-kvm tests PATCH v2 0/3] qemu-kvm tests cleanup

2010-04-30 Thread Marcelo Tosatti
On Tue, Apr 27, 2010 at 03:57:42PM +0300, Naphtali Sprei wrote: changes v1 - v2 single trailing whitespace cleanup Cleanup, mostly x86 oriented. Patches against 'next' branch. Naphtali Sprei (3): qemu-kvm tests cleanup qemu-kvm tests cleanup: adapt stringio test to kernel-mode run

Re: What changed since kvm-72 resulting in winNT to fail to boot (STOP 0x0000001E) ?

2010-04-30 Thread Michael Tokarev
01.05.2010 00:06, Michael Tokarev wrote: I've a bugreport handy, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575439 about the apparent problem booting winNT 4 in kvm 0.12. At least 2 people were hit by this issue. In short, when booting winNT 4.0, it BSODs with error code 0x001E,

Booting/installing WindowsNT

2010-04-30 Thread Michael Tokarev
Apparently with current kvm stable (0.12.3) Windows NT 4.0 does not install anymore. With default -cpu, it boots, displays the Inspecting your hardware configuration message and BSODs with STOP: 0x003E error as shown here: http://www.corpit.ru/mjt/winnt4_1.gif With -cpu pentium the

Re: High CPU load on target host after migration

2010-04-30 Thread Thomas Beinicke
I forgot to mention that I am using qemu-kvm-0.12.3 on all of my machines. I am also using bridged networking on all hosts. Is anyone else on the list doing life migration and is facing the same problems I mentioned below? I would really like to debug this further but I need some assistance on

[PATCH 1/2] IOzone test: Introduce postprocessing module

2010-04-30 Thread Lucas Meneghel Rodrigues
This module contains code to postprocess IOzone data in a convenient way so we can generate performance graphs and condensed data. The graph generation part depends on gnuplot, but if the utility is not present, functionality will gracefully degrade. The reason why this was created as a separate

[PATCH 2/2] IOzone test: Introduce additional results postprocessing

2010-04-30 Thread Lucas Meneghel Rodrigues
Using the postprocessing module introduced on the previous patch, use it to analyze results and write performance graphs and performance tables. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/iozone/iozone.py | 24 +++- 1 files changed, 19

Re: [Autotest] [PATCH 1/2] IOzone test: Introduce postprocessing module

2010-04-30 Thread Martin Bligh
I'm slightly surprised this isn't called from postprocess in the test? Any downside to doing that? On Fri, Apr 30, 2010 at 2:20 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: This module contains code to postprocess IOzone data in a convenient way so we can generate performance graphs and

Re: [Autotest] [PATCH 1/2] IOzone test: Introduce postprocessing module

2010-04-30 Thread Lucas Meneghel Rodrigues
On Fri, 2010-04-30 at 14:23 -0700, Martin Bligh wrote: I'm slightly surprised this isn't called from postprocess in the test? Any downside to doing that? In the second patch I do the change to make the test to use the postprocessing module. On Fri, Apr 30, 2010 at 2:20 PM, Lucas Meneghel

Re: Booting/installing WindowsNT

2010-04-30 Thread Michael Tokarev
01.05.2010 00:59, Michael Tokarev wrote: Apparently with current kvm stable (0.12.3) Windows NT 4.0 does not install anymore. With default -cpu, it boots, displays the Inspecting your hardware configuration message and BSODs with STOP: 0x003E error as shown here:

Re: [Autotest] [PATCH 1/2] IOzone test: Introduce postprocessing module

2010-04-30 Thread Martin Bligh
On Fri, Apr 30, 2010 at 2:37 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On Fri, 2010-04-30 at 14:23 -0700, Martin Bligh wrote: I'm slightly surprised this isn't called from postprocess in the test? Any downside to doing that? In the second patch I do the change to make the test to

[ kvm-Bugs-2980197 ] qemu-kvm.h:845: error: expected ‘)’ before ‘start_addr’

2010-04-30 Thread SourceForge.net
Bugs item #2980197, was opened at 2010-03-31 19:45 Message generated for change (Settings changed) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2980197group_id=180599 Please note that this message will contain a full copy of the comment