Re: [PATCH 15/15] KVM: Fix racy in kvm_free_assigned_irq

2009-01-04 Thread Sheng Yang
On Friday 02 January 2009 08:10:37 Marcelo Tosatti wrote: > On Wed, Dec 31, 2008 at 01:43:54PM +0800, Sheng Yang wrote: > > On Wednesday 31 December 2008 00:45:51 Marcelo Tosatti wrote: > > > On Tue, Dec 30, 2008 at 10:14:09AM +0800, Sheng Yang wrote: > > > > > There is one remaining issue: > > > >

Re: [PATCH 2/3] KVM: Interrupt mask notifiers for ioapic

2009-01-04 Thread Sheng Yang
On Monday 05 January 2009 00:14:44 Avi Kivity wrote: > Allow clients to request notifications when the guest masks or unmasks a > particular irq line. This complements irq ack notifications, as the guest > will not ack an irq line that is masked. > > Currently implemented for the ioapic only. Hi

How to send keyboard signal to guest vm?

2009-01-04 Thread John Wong
Hi, how do you send keyboard signal to guest vm? eg: ctrl+alt+del, ctrl+alt+back, ctrl+alt+f1 And which keyboard driver should i use on linux/bsd guest vm, i can not make the number pad work on linux/bsd guest vm, it work on winxp guest vm. Can anyone share your Xorg.conf configure file here

[ kvm-Bugs-2482759 ] Windows SCSI errors

2009-01-04 Thread SourceForge.net
Bugs item #2482759, was opened at 2009-01-02 13:03 Message generated for change (Comment added) made by ryan_harper You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2482759&group_id=180599 Please note that this message will contain a full copy of the comme

[ kvm-Bugs-2482759 ] Windows SCSI errors

2009-01-04 Thread SourceForge.net
Bugs item #2482759, was opened at 2009-01-02 14:03 Message generated for change (Comment added) made by ryandbair You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2482759&group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2482759 ] Windows SCSI errors

2009-01-04 Thread SourceForge.net
Bugs item #2482759, was opened at 2009-01-02 13:03 Message generated for change (Comment added) made by ryan_harper You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2482759&group_id=180599 Please note that this message will contain a full copy of the comme

Re: Poor Write I/O Performance on KVM-79

2009-01-04 Thread Rodrigo Campos
On Sun, Jan 4, 2009 at 5:48 PM, Avi Kivity wrote: > Rodrigo Campos wrote: >>> >>> qcow2 will surely lead to miserable performance. raw files are better. >>> best is to use lvm. >>> >>> >> >> What do you mean with best is to use lvm ? >> You just say to use raw images on an lvm partition because

Re: Mouse motion lags

2009-01-04 Thread Avi Kivity
nuit...@melchior.nuitari.net wrote: I've noticed that issue on guest load, no swapping. But even just moving the mouse around feels more laggy then under vmware. I've tried mine with just 1 guest cpu. What sort of guest load? -- I have a truly marvellous patch that fixes the bug which this sig

Re: Mouse motion lags

2009-01-04 Thread nuitari
Hi everybody, I switched to KVM some time ago from vmware and VB. Everything works great but there are noticeable lags in mouse motion in comparison with other VMs. Is this a known issue? Are there any optimizations for that? KVM: 79 Distr: Ubuntu Intrepid & Jaunty Command line: QEMU_AUD

Re: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Avi Kivity
Leendert van Doorn wrote: With a switch, please. Default behaviour should be to virtualize. One way to implement it is to pass pci devfn -> BAR hints through the firmware interface. This way you can choose which BARs to place where, and where to allow the default placement. I'm alread

[PATCH] [v2] KVM: PowerPC: Disarm old guest debug interface

2009-01-04 Thread Hollis Blanchard
On Sun, 2009-01-04 at 12:54 +0200, Avi Kivity wrote: > > This doesn't apply. What was it diffed against? Hmm, looks like a slightly older tree. This should apply. kvm: ppc: remove debug support broken by KVM debug rewrite After the rewrite of KVM's debug support, this code doesn't even build

Re: Poor Write I/O Performance on KVM-79

2009-01-04 Thread Avi Kivity
Rodrigo Campos wrote: qcow2 will surely lead to miserable performance. raw files are better. best is to use lvm. What do you mean with best is to use lvm ? You just say to use raw images on an lvm partition because you can easily resize it ? Or somehow images only use the used space of

Re: Poor Write I/O Performance on KVM-79

2009-01-04 Thread Florent
Rodrigo, KVM can use Logical Volume as a field of bytes to store the back-end of the guest HDD. Doing this, the overhead of the partition format is avoided at host side and things should be faster. - Florent -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a m

Re: Poor Write I/O Performance on KVM-79

2009-01-04 Thread Rodrigo Campos
On Sun, Jan 4, 2009 at 11:24 AM, Avi Kivity wrote: > Alexander Atticus wrote: >> >> Hello! >> >> I have been experimenting with KVM and have been experiencing poor write >> I/O >> performance. I'm not sure whether I'm doing something wrong or if this is >> just the current state of things. >> >>

Re: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Kevin O'Connor
On Sun, Jan 04, 2009 at 07:28:50PM +0200, Avi Kivity wrote: > Leendert van Doorn wrote: >> Avi wrote: >>> This is worrying as it will cause us to diverge from upstream bochs bios. >> Yep. I'll create a less invasive patch. I've been looking at SEABIOS which >> seems a much better alternative but th

RE: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Leendert van Doorn
Avi wrote: > Surely, the BIOS call interface is a GPL boundary, just like the Linux > syscall interface. Kevin, is that not the case? If it is a GPL > interface, can you add an explicit exception to make it clear? At IBM we had many discussions about what precisely constitutes a GPL boundary.

Re: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Avi Kivity
Avi Kivity wrote: Surely, the BIOS call interface is a GPL boundary, just like the Linux syscall interface. Kevin, is that not the case? If it is a GPL interface, can you add an explicit exception to make it clear? s/GPL interface/GPL boundary/. Must be clear on this lawyer talk. -- erro

Re: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Avi Kivity
Leendert van Doorn wrote: Avi wrote: This is worrying as it will cause us to diverge from upstream bochs bios. Yep. I'll create a less invasive patch. I've been looking at SEABIOS which seems a much better alternative but the GPLv3 license worries me, especially when you have propriet

RE: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Leendert van Doorn
Avi wrote: >This is worrying as it will cause us to diverge from upstream bochs bios. Yep. I'll create a less invasive patch. I've been looking at SEABIOS which seems a much better alternative but the GPLv3 license worries me, especially when you have proprietary guests that calls back into it.

[PATCH 2/3] KVM: Interrupt mask notifiers for ioapic

2009-01-04 Thread Avi Kivity
Allow clients to request notifications when the guest masks or unmasks a particular irq line. This complements irq ack notifications, as the guest will not ack an irq line that is masked. Currently implemented for the ioapic only. Signed-off-by: Avi Kivity --- include/linux/kvm_host.h | 17 +

[PATCH 3/3] KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked

2009-01-04 Thread Avi Kivity
While the PIT is masked the guest cannot ack the irq, so the reinject logic will never allow the interrupt to be injected. Fix by resetting the reinjection counters on unmask. Unbreaks Xen. Signed-off-by: Avi Kivity --- arch/x86/kvm/i8254.c | 15 +++ arch/x86/kvm/i8254.h |1 +

[PATCH 1/3] KVM: Add CONFIG_HAVE_KVM_IRQCHIP

2009-01-04 Thread Avi Kivity
Two KVM archs support irqchips and two don't. Add a Kconfig item to make selecting between the two models easier. Signed-off-by: Avi Kivity --- arch/ia64/kvm/Kconfig|4 arch/powerpc/kvm/Kconfig |3 +++ arch/s390/kvm/Kconfig|3 +++ arch/x86/kvm/Kconfig |4 4

[PATCH 0/3] Reset PIT reinjection logic on irq unmask

2009-01-04 Thread Avi Kivity
Currently, when a guest has the pit running but masked, it will accumulate pending irq injection requests but will never ack them (as the interrupts are masked). When the interrupt is finally unmasked, the reinject logic ignores pending interrupts since it sees unacked pending irqs. Add a notifie

Re: [Qemu-devel] Re: gdbstub: packet reply is too long

2009-01-04 Thread Jan Kiszka
Jamie Lokier wrote: > Jan Kiszka wrote: >> You need CR0.PE to detect if you are in real or protected mode. And then >> you need GDTR/LDTR to find the descriptor CS is pointing at, parsing it >> to detect if you are running 16, 32 or 64 bit code (by default). Those >> extensions would also be useful

Re: USB Printer does not work

2009-01-04 Thread Avi Kivity
André Roth wrote: Hello List, I'm using kvm-82 and I'm trying to attach a HP 1200 per USB to my guest system (Debian/lenny, 2.6.26-1-amd64). This works so far, the usblp module is loaded and I get a /dev/usb/lp0. I can print text/plain by catting text to the device. But using CUPS, the device

Re: [PATCH] bios: Remove duplicate call to qemu_cfg_port_probe()

2009-01-04 Thread Avi Kivity
Sebastian Herbszt wrote: qemu_cfg_port_probe is called twice in rombios32.c. Remove the second call. Applied, thanks. Please add signoff lines in the future. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in th

Re: Mouse motion lags

2009-01-04 Thread Avi Kivity
Volodymyr Buell wrote: Hi everybody, I switched to KVM some time ago from vmware and VB. Everything works great but there are noticeable lags in mouse motion in comparison with other VMs. Is this a known issue? Are there any optimizations for that? KVM: 79 Distr: Ubuntu Intrepid & Jaunty Comman

Re: Poor Write I/O Performance on KVM-79

2009-01-04 Thread Avi Kivity
Alexander Atticus wrote: Hello! I have been experimenting with KVM and have been experiencing poor write I/O performance. I'm not sure whether I'm doing something wrong or if this is just the current state of things. While writing to the local array on the node running the guests I get about 2

Re: xen-in-kvm doesn't work with kvm-81.

2009-01-04 Thread Avi Kivity
Avi Kivity wrote: Yiyi Hu wrote: Host info: h...@hs ~ $ uname -a Linux Hs 2.6.27-gentoo-r6 #1 SMP Mon Dec 15 11:43:12 CST 2008 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2350 AuthenticAMD GNU/Linux KVM is version 81. Installed from portage. The guest is 64bit debian lenny, Within guest, w

Re: 'make' is no longer producing *.ko files?

2009-01-04 Thread Avi Kivity
Michael Park wrote: Hi there, Sorry for the delay.. Very strange. Can you add 'V=1' to the line that starts with $(MAKE) -C $(KERNELDIR) in kernel/Makefile and rerun? post the log. ..sure thing, I've attached it inline below. I'm guessing this is some sort of autoconf-related error

Re: [PATCH 00 of 16] port KVM to PowerPC e500

2009-01-04 Thread Avi Kivity
Hollis Blanchard wrote: Hi Avi, these patches add support for Freescale's e500 (v2) core. I did some refactoring, but the actual port was done by Liu Yu at Freescale. Please apply. e500 is a 32-bit PowerPC "Book E" core (as is IBM/AMCC's 440) found in a variety of Freescale SoCs. It uses a softw

Re: [PATCH] KVM: PowerPC: Disarm old guest debug interface

2009-01-04 Thread Avi Kivity
Hollis Blanchard wrote: kvm: ppc: remove debug support broken by KVM debug rewrite After the rewrite of KVM's debug support, this code doesn't even build any more. Signed-off-by: Hollis Blanchard diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h --- a/ar

Re: [PATCH][v2] kvm-userspace: Load PCI option ROMs

2009-01-04 Thread Avi Kivity
Leendert van Doorn wrote: I've been experimenting with passthru graphics for KVM and for that I needed to add PCI ROM support to QEMU. I went a slightly different route than Haitoa, I enabled the BIOS to do the PCI ROM mapping and initialization and added support for QEMU to fully implement the R