Re: [patch 1/8] test: allow functions to execute on non-irq context remotely

2010-03-28 Thread Avi Kivity
On 03/25/2010 08:07 PM, Marcelo Tosatti wrote: On Thu, Mar 25, 2010 at 06:25:56PM +0200, Avi Kivity wrote: On 03/24/2010 11:24 PM, Marcelo Tosatti wrote: Which allows code to execute on remote cpus while receiving interrupts. Also move late smp initialization to common code, and the

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Michael S. Tsirkin
On Sat, Mar 27, 2010 at 08:48:34PM +0300, Avi Kivity wrote: On 03/26/2010 07:14 PM, Cam Macdonell wrote: I'm not familiar with the uio internals, but for the interface, an ioctl() on the fd to assign an eventfd to an MSI vector. Similar to ioeventfd, but instead of mapping a doorbell to an

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Avi Kivity
On 03/28/2010 10:47 AM, Michael S. Tsirkin wrote: Maybe irqcontrol could be extended? What's irqcontrol? uio accepts 32 bit writes to the char device file. We can encode the fd number there, and use the high bit to signal assign/deassign. Ugh. Very unexpandable. --

RE: KVM Test report, kernel 647e9e... qemu 7811d4...

2010-03-28 Thread Hao, Xudong
Avi Kivity wrote: You need to fold the -hda parameter into -driver, so the whole command line becomes qemu-system-x86_64 -m 512 -smp 4 -net nic,macaddr=00:16:3e:79:0c:db,model=rtl8139 -net tap,script=/etc/kvm/qemu-ifup -drive file=/share/ltp_guest.img,cache=writeback -hda is

Re: KVM Test report, kernel 647e9e... qemu 7811d4...

2010-03-28 Thread Avi Kivity
On 03/28/2010 12:03 PM, Hao, Xudong wrote: Avi Kivity wrote: You need to fold the -hda parameter into -driver, so the whole command line becomes qemu-system-x86_64 -m 512 -smp 4 -net nic,macaddr=00:16:3e:79:0c:db,model=rtl8139 -net tap,script=/etc/kvm/qemu-ifup -drive

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Michael S. Tsirkin
On Sun, Mar 28, 2010 at 11:02:11AM +0300, Avi Kivity wrote: On 03/28/2010 10:47 AM, Michael S. Tsirkin wrote: Maybe irqcontrol could be extended? What's irqcontrol? uio accepts 32 bit writes to the char device file. We can encode the fd number there, and use the high bit to

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Avi Kivity
On 03/28/2010 12:40 PM, Michael S. Tsirkin wrote: uio accepts 32 bit writes to the char device file. We can encode the fd number there, and use the high bit to signal assign/deassign. Ugh. Very unexpandable. It currently fails on any non-4 byte write. So if we need more bits in

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Michael S. Tsirkin
On Sun, Mar 28, 2010 at 12:45:02PM +0300, Avi Kivity wrote: On 03/28/2010 12:40 PM, Michael S. Tsirkin wrote: uio accepts 32 bit writes to the char device file. We can encode the fd number there, and use the high bit to signal assign/deassign. Ugh. Very unexpandable. It

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Avi Kivity
On 03/28/2010 01:31 PM, Michael S. Tsirkin wrote: Aren't ioctls a lot simpler? Multiplexing multiple functions on write()s is just ioctls done uglier. I don't have an opinion here. Writes do have an advantage that strace can show the buffer content without being patched. ioctls

Clocksource tsc unstable (delta = -4398046474878 ns)

2010-03-28 Thread Sebastian Hetze
Hi *, this message appeared in the KVM guest kern.log last night: Mar 27 22:35:30 guest kernel: [260041.559462] Clocksource tsc unstable (delta = -4398046474878 ns) The guest is running a 2.6.31-20-generic-pae ubuntu kernel with hrtimer-tune-hrtimer_interrupt-hang-logic.patch applied. If I

Re: [Qemu-devel] Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Jamie Lokier
Avi Kivity wrote: ioctls encode the buffer size into the ioctl number, so in theory strace doesn't need to be taught about an ioctl to show its buffer. Unfortunately ioctl numbers don't always follow that rule :-( But maybe that's just awful proprietary drivers that I've seen. Anyway, strace

Re: [Qemu-devel] Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread malc
On Sun, 28 Mar 2010, Jamie Lokier wrote: Avi Kivity wrote: ioctls encode the buffer size into the ioctl number, so in theory strace doesn't need to be taught about an ioctl to show its buffer. Unfortunately ioctl numbers don't always follow that rule :-( It's not a rule to begin with,

Re: [PATCH v3 1/1] Shared memory uio_pci driver

2010-03-28 Thread Cam Macdonell
On Sat, Mar 27, 2010 at 11:48 AM, Avi Kivity a...@redhat.com wrote: On 03/26/2010 07:14 PM, Cam Macdonell wrote: I'm not familiar with the uio internals, but for the interface, an ioctl() on the fd to assign an eventfd to an MSI vector.  Similar to ioeventfd, but instead of mapping a

Re: usb_linux_update_endp_table: No such file or directory

2010-03-28 Thread scar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brian Jackson @ 10/18/2008 10:23 AM: On Oct 18, 2008, at 9:57 AM, Xavier Gnata xavier.gn...@gmail.com wrote: Hi, I'm trying to plug an Ipod on a winXP guest. The host is a 2.6.27 and I'm using kvm-77. I get this (as root to avoid stupid +w

Re: usb_linux_update_endp_table: No such file or directory

2010-03-28 Thread Brian Jackson
On Sunday 28 March 2010 16:23:24 scar wrote: Brian Jackson @ 10/18/2008 10:23 AM: On Oct 18, 2008, at 9:57 AM, Xavier Gnata xavier.gn...@gmail.com wrote: Hi, I'm trying to plug an Ipod on a winXP guest. The host is a 2.6.27 and I'm using kvm-77. I get this (as root to avoid stupid

Biweekly KVM Test report, kernel 0e8e9adf... qemu 79fdb98...

2010-03-28 Thread Hao, Xudong
Hi, all, This is KVM biweekly test result against kvm.git: 0e8e9adf792446859d6906af7f09249e4d0971d7 and qemu-kvm.git: 79fdb980fa4fe40c3fba9391b83b655045af030f.    Lastest KVM based on kernel 2.6.34-rc2. There is one issue that 32PAE Windows guest can not boot up with acpi on. New issue: