[PATCH RESEND] Recognize PCID feature

2012-07-20 Thread Mao, Junjie
This patch makes Qemu recognize the PCID feature specified from configuration or command line options. Signed-off-by: Junjie Mao junjie@intel.com --- target-i386/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index

Re: [RFC PATCH v2 03/21][SeaBIOS] acpi-dsdt: Implement functions for memory hotplug

2012-07-20 Thread Vasilis Liaskovitis
On Tue, Jul 17, 2012 at 03:23:00PM +0800, Wen Congyang wrote: +Method(MESC, 0) { +// Local5 = active memdevice bitmap +Store (MES, Local5) +// Local2 = last read byte from bitmap +Store (Zero, Local2) +// Local0 =

Re: [PATCH v5 0/4] kvm: level irqfd and new eoifd

2012-07-20 Thread Michael S. Tsirkin
On Thu, Jul 19, 2012 at 12:48:07PM -0600, Alex Williamson wrote: On Thu, 2012-07-19 at 20:45 +0300, Michael S. Tsirkin wrote: On Thu, Jul 19, 2012 at 11:29:38AM -0600, Alex Williamson wrote: On Thu, 2012-07-19 at 19:59 +0300, Michael S. Tsirkin wrote: On Mon, Jul 16, 2012 at 02:33:38PM

Re: [PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-20 Thread Stefan Hajnoczi
On Thu, Jul 19, 2012 at 2:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Jul 19, 2012 at 08:05:42AM -0500, Anthony Liguori wrote: Of course, the million dollar question is why would using AIO in the kernel be faster than using AIO in userspace? Actually for me a more important

Re: [PATCH] KVM: PIC: call ack notifiers for irqs that are dropped form irr

2012-07-20 Thread Marcelo Tosatti
On Tue, Jul 17, 2012 at 02:59:11PM +0300, Gleb Natapov wrote: After commit 242ec97c358256 PIT interrupts are no longer delivered after PIC reset. It happens because PIT injects interrupt only if previous one was acked, but since on PIC reset it is dropped from irr it will never be delivered

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 11:45:59AM +0800, Xiao Guangrong wrote: BTW, they are some bug fix patches on -master branch, but it is not existed on -next branch: commit: f411930442e01f9cf1bf4df41ff7e89476575c4d commit: 85b7059169e128c57a3a8a3e588fb89cb2031da1 It causes code conflict if we do the

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 10:17:36AM +0800, Xiao Guangrong wrote: On 07/20/2012 07:58 AM, Marcelo Tosatti wrote: - } + rc = ctxt-ops-read_emulated(ctxt, addr, mc-data + mc-end, size, +ctxt-exception); + if (rc != X86EMUL_CONTINUE) + return rc;

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 10:34:28AM +0800, Xiao Guangrong wrote: On 07/20/2012 08:39 AM, Marcelo Tosatti wrote: On Tue, Jul 17, 2012 at 09:53:29PM +0800, Xiao Guangrong wrote: If it have no indirect shadow pages we need not protect any gfn, this is always true for direct mmu without nested

Re: [RFC-v3 4/4] tcm_vhost: Initial merge for vhost level target fabric driver

2012-07-20 Thread Michael S. Tsirkin
On Wed, Jul 18, 2012 at 02:20:58PM -0700, Nicholas A. Bellinger wrote: On Wed, 2012-07-18 at 19:09 +0300, Michael S. Tsirkin wrote: On Wed, Jul 18, 2012 at 12:59:32AM +, Nicholas A. Bellinger wrote: SNIP Changelog v2 - v3: Unlock on error in tcm_vhost_drop_nexus()

Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread Prem Karat
Folks, Please find the result of upstream testing. This time we got a kernel panic error while compiling mainline kernel (3.5.rc7). Hence we could verify only mainline qemu-kvm. We are analysing the failures and we will raise the bugs with the appropriate community. Host Kernel: Kernel:

Re: [net-next RFC V5 5/5] virtio_net: support negotiating the number of queues through ctrl vq

2012-07-20 Thread Michael S. Tsirkin
On Thu, Jul 05, 2012 at 06:29:54PM +0800, Jason Wang wrote: This patch let the virtio_net driver can negotiate the number of queues it wishes to use through control virtqueue and export an ethtool interface to let use tweak it. As current multiqueue virtio-net implementation has

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-20 Thread Xiao Guangrong
On 07/20/2012 06:58 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 10:17:36AM +0800, Xiao Guangrong wrote: On 07/20/2012 07:58 AM, Marcelo Tosatti wrote: - } + rc = ctxt-ops-read_emulated(ctxt, addr, mc-data + mc-end, size, +ctxt-exception); + if (rc

Re: [PATCH] KVM: PIC: call ack notifiers for irqs that are dropped form irr

2012-07-20 Thread Gleb Natapov
On Fri, Jul 20, 2012 at 08:58:56AM -0300, Marcelo Tosatti wrote: On Tue, Jul 17, 2012 at 02:59:11PM +0300, Gleb Natapov wrote: After commit 242ec97c358256 PIT interrupts are no longer delivered after PIC reset. It happens because PIT injects interrupt only if previous one was acked, but

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-20 Thread Xiao Guangrong
On 07/20/2012 07:09 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 10:34:28AM +0800, Xiao Guangrong wrote: On 07/20/2012 08:39 AM, Marcelo Tosatti wrote: On Tue, Jul 17, 2012 at 09:53:29PM +0800, Xiao Guangrong wrote: If it have no indirect shadow pages we need not protect any gfn, this

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-20 Thread Michael S. Tsirkin
On Thu, Jul 05, 2012 at 06:29:53PM +0800, Jason Wang wrote: This patch converts virtio_net to a multi queue device. After negotiated VIRTIO_NET_F_MULTIQUEUE feature, the virtio device has many tx/rx queue pairs, and driver could read the number from config space. The driver expects the

Re: Unexpected host I/O load

2012-07-20 Thread Brian Conry
After some additional troubleshooting under the guidance of a friend, this appears to be a libvirt issue. I have opened the following bug for it: https://bugzilla.redhat.com/show_bug.cgi?id=841918. Thanks to any who spent time looking at this. Brian -- To unsubscribe from this list: send the

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
Hi seems there is no virtio_console testing.which I have no one pass and why some of the below cases is mannual, and they are not in the defalut tests.cfg Lei On Fri, Jul 20, 2012 at 8:20 PM, Prem Karat prem.ka...@linux.vnet.ibm.com wrote: Folks, Please find the result of upstream testing.

Re: [PATCH v9 01/16] ARM: add mem_type prot_pte accessor

2012-07-20 Thread Andreas Färber
Am 03.07.2012 10:59, schrieb Christoffer Dall: From: Marc Zyngier marc.zyng...@arm.com The KVM hypervisor mmu code requires requires access to the code requires access Andreas mem_type prot_pte field when setting up page tables pointing to a device. Unfortunately, the mem_type structure

Re: [PATCH] KVM: MMU: Fix mmu_shrink() so that it can free mmu pages as intended

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 10:04:34AM +0900, Takuya Yoshikawa wrote: On Wed, 18 Jul 2012 17:52:46 -0300 Marcelo Tosatti mtosa...@redhat.com wrote: Can't understand, can you please expand more clearly? I think mmu pages are not worth freeing under usual memory pressure, especially when we

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread Qingtang Zhou
* On 2012-07-20 22:52:21 +0800, lei yang (yanglei.f...@gmail.com) wrote: Hi seems there is no virtio_console testing.which I have no one pass and why some of the below cases is mannual, and they are not in the Because we have no guest agent test case in autotest now. though I'm working on it.

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
On Fri, Jul 20, 2012 at 11:18 PM, Qingtang Zhou qz...@redhat.com wrote: * On 2012-07-20 22:52:21 +0800, lei yang (yanglei.f...@gmail.com) wrote: Hi seems there is no virtio_console testing.which I have no one pass and why some of the below cases is mannual, and they are not in the Because we

[PATCH v6 0/2] kvm: level irqfd and new eoifd

2012-07-20 Thread Alex Williamson
v6: So we're back to just the first two patches, unfortunately the diffstat got bigger though. The reason for that is that I discovered we don't do anything on release of an eoifd. We cleanup if the kvm vm is released, but we're dealing with a constrained resource of irq source IDs, so I think

[PATCH v6 1/2] kvm: Extend irqfd to support level interrupts

2012-07-20 Thread Alex Williamson
In order to inject a level interrupt from an external source using an irqfd, we need to allocate a new irq_source_id. This allows us to assert and (later) de-assert an interrupt line independently from users of KVM_IRQ_LINE and avoid lost interrupts. We also add what may appear like a bit of

[PATCH v6 2/2] kvm: KVM_EOIFD, an eventfd for EOIs

2012-07-20 Thread Alex Williamson
This new ioctl enables an eventfd to be triggered when an EOI is written for a specified irqchip pin. The first user of this will be external device assignment through VFIO, using a level irqfd for asserting a PCI INTx interrupt and this interface for de-assert and notification once the interrupt

[PATCH 2/2] kvm: kvmclock: eliminate kvmclock offset when time page count goes to zero

2012-07-20 Thread Bruce Rogers
When a guest is migrated, a time offset is generated in order to maintain the correct kvmclock based time for the guest. Detect when all kvmclock time pages are deleted so that the kvmclock offset can be safely reset to zero. Cc: Glauber Costa glom...@redhat.com Cc: Zachary Amsden

[PATCH 0/2] kvm: kvmclock: fix kvmclock reboot after migrate issues

2012-07-20 Thread Bruce Rogers
When a linux guest live migrates to a new host and subsequently reboots, the guest no longer has the correct time. This is due to a failure to apply the kvmclock offset to the wall clock time. The first patch addresses this failure directly, while the second patch detects when the offset is no

[PATCH 1/2] kvm: kvmclock: apply kvmclock offset to guest wall clock time

2012-07-20 Thread Bruce Rogers
When a guest migrates to a new host, the system time difference from the previous host is used in the updates to the kvmclock system time visible to the guest, resulting in a continuation of correct kvmclock based guest timekeeping. The wall clock component of the kvmclock provided time is

Re: [PATCH RFC V5 0/3] kvm: Improving directed yield in PLE handler

2012-07-20 Thread Marcelo Tosatti
On Wed, Jul 18, 2012 at 07:07:17PM +0530, Raghavendra K T wrote: Currently Pause Loop Exit (PLE) handler is doing directed yield to a random vcpu on pl-exit. We already have filtering while choosing the candidate to yield_to. This change adds more checks while choosing a candidate to

Re: [RFC-v3 4/4] tcm_vhost: Initial merge for vhost level target fabric driver

2012-07-20 Thread Nicholas A. Bellinger
On Fri, 2012-07-20 at 15:03 +0300, Michael S. Tsirkin wrote: On Wed, Jul 18, 2012 at 02:20:58PM -0700, Nicholas A. Bellinger wrote: On Wed, 2012-07-18 at 19:09 +0300, Michael S. Tsirkin wrote: On Wed, Jul 18, 2012 at 12:59:32AM +, Nicholas A. Bellinger wrote: SNIP

Re: [RFC-v3 4/4] tcm_vhost: Initial merge for vhost level target fabric driver

2012-07-20 Thread Nicholas A. Bellinger
On Fri, 2012-07-20 at 11:00 -0700, Nicholas A. Bellinger wrote: On Fri, 2012-07-20 at 15:03 +0300, Michael S. Tsirkin wrote: On Wed, Jul 18, 2012 at 02:20:58PM -0700, Nicholas A. Bellinger wrote: On Wed, 2012-07-18 at 19:09 +0300, Michael S. Tsirkin wrote: On Wed, Jul 18, 2012 at

Re: [PATCHv2] kvm: fix race with level interrupts

2012-07-20 Thread Marcelo Tosatti
On Thu, Jul 19, 2012 at 01:45:20PM +0300, Michael S. Tsirkin wrote: When more than 1 source id is in use for the same GSI, we have the following race related to handling irq_states race: CPU 0 clears bit 0. CPU 0 read irq_state as 0. CPU 1 sets level to 1. CPU 1 calls kvm_ioapic_set_irq(1).

Re: [PATCH] kvm: drop parameter validation

2012-07-20 Thread Marcelo Tosatti
On Thu, Jul 19, 2012 at 02:13:13PM +0300, Michael S. Tsirkin wrote: We validate irq pin number when routing is setup, so code handling illegal irq # in pic and ioapic on each injection is never called. Drop it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Note: this is on top

Re: [PATCH RESEND 0/5] Add vhost-blk support

2012-07-20 Thread Michael S. Tsirkin
On Fri, Jul 13, 2012 at 04:55:06PM +0800, Asias He wrote: Hi folks, [I am resending to fix the broken thread in the previous one.] This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device accelerator. Compared to userspace virtio-blk implementation, vhost-blk

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 09:15:44PM +0800, Xiao Guangrong wrote: On 07/20/2012 06:58 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 10:17:36AM +0800, Xiao Guangrong wrote: On 07/20/2012 07:58 AM, Marcelo Tosatti wrote: -} +rc = ctxt-ops-read_emulated(ctxt, addr,

[PATCH 1/2] kvm: kvmclock: apply kvmclock offset to guest wall clock time

2012-07-20 Thread Bruce Rogers
When a guest migrates to a new host, the system time difference from the previous host is used in the updates to the kvmclock system time visible to the guest, resulting in a continuation of correct kvmclock based guest timekeeping. The wall clock component of the kvmclock provided time is

[PATCH 2/2] kvm: kvmclock: eliminate kvmclock offset when time page count goes to zero

2012-07-20 Thread Bruce Rogers
When a guest is migrated, a time offset is generated in order to maintain the correct kvmclock based time for the guest. Detect when all kvmclock time pages are deleted so that the kvmclock offset can be safely reset to zero. Cc: Glauber Costa glom...@redhat.com Cc: Zachary Amsden

[PATCH 0/2] kvm: kvmclock: fix kvmclock reboot after migrate issues

2012-07-20 Thread Bruce Rogers
When a linux guest live migrates to a new host and subsequently reboots, the guest no longer has the correct time. This is due to a failure to apply the kvmclock offset to the wall clock time. The first patch addresses this failure directly, while the second patch detects when the offset is no

Re: [PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-20 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: On Thu, Jul 19, 2012 at 08:05:42AM -0500, Anthony Liguori wrote: Of course, the million dollar question is why would using AIO in the kernel be faster than using AIO in userspace? Actually for me a more important question is how does it compare

Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation

2012-07-20 Thread Scott Wood
On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_WDT) ioctl. The kernel timer are used for watchdog emulation and emulates h/w watchdog state machine. On watchdog timer expiry, it exit

Re: [PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-20 Thread Asias He
On 07/21/2012 04:56 AM, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Thu, Jul 19, 2012 at 08:05:42AM -0500, Anthony Liguori wrote: Of course, the million dollar question is why would using AIO in the kernel be faster than using AIO in userspace? Actually for me a

Re: [PATCH 2/2 v5] KVM: PPC: booke: Add watchdog emulation

2012-07-20 Thread Scott Wood
On 07/20/2012 12:00 AM, Bharat Bhushan wrote: This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_WDT) ioctl. The kernel timer are used for watchdog emulation and emulates h/w watchdog state machine. On watchdog timer expiry, it exit