Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-08 Thread Michael S. Tsirkin
On Thu, Oct 29, 2015 at 05:18:56PM +0100, David Woodhouse wrote: > On Thu, 2015-10-29 at 11:01 +0200, Michael S. Tsirkin wrote: > > > > Example: you have a mix of assigned devices and virtio devices. You > > don't trust your assigned device vendor not to corrupt your memory so > > you want to limi

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-08 Thread Joerg Roedel
On Sun, Nov 08, 2015 at 12:37:47PM +0200, Michael S. Tsirkin wrote: > I have no problem with that. For example, can we teach > the DMA API on intel x86 to use PT for virtio by default? > That would allow merging Andy's patches with > full compatibility with old guests and hosts. Well, the only inc

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-08 Thread David Woodhouse
On Sun, 2015-11-08 at 12:37 +0200, Michael S. Tsirkin wrote: > On Thu, Oct 29, 2015 at 05:18:56PM +0100, David Woodhouse wrote: > > On Thu, 2015-10-29 at 11:01 +0200, Michael S. Tsirkin wrote: > > > > > > But you trust your hypervisor (you have no choice anyway), > > > and you don't want the overh

Re: [PATCH V6 0/6] Fast mmio eventfd fixes

2015-11-08 Thread Michael S. Tsirkin
On Tue, Sep 15, 2015 at 02:41:53PM +0800, Jason Wang wrote: > Hi: > > This series fixes two issues of fast mmio eventfd: > > 1) A single iodev instance were registerd on two buses: KVM_MMIO_BUS >and KVM_FAST_MMIO_BUS. This will cause double in >ioeventfd_destructor() > 2) A zero length io

[PATCH] kvmtool: Makefile: remove LDFLAGS from guest_init linking

2015-11-08 Thread Andre Przywara
Looking back at the HEAD from a few commits ago, it's obvious that using the LDFLAGS variable for linking the guest_init binary was rather pointless, as it was zeroed in the beginning and then never set. As guest_init is a rather special binary that does not cope well with arbitrary linker flags,

Re: [PATCH v6 25/33] nvdimm acpi: build ACPI nvdimm devices

2015-11-08 Thread Michael S. Tsirkin
On Fri, Oct 30, 2015 at 01:56:19PM +0800, Xiao Guangrong wrote: > NVDIMM devices is defined in ACPI 6.0 9.20 NVDIMM Devices > > There is a root device under \_SB and specified NVDIMM devices are under the > root device. Each NVDIMM device has _ADR which returns its handle used to > associate MEMDE

Re: [PATCH v6 32/33] nvdimm acpi: support _FIT method

2015-11-08 Thread Michael S. Tsirkin
On Fri, Oct 30, 2015 at 01:56:26PM +0800, Xiao Guangrong wrote: > FIT buffer is not completely mapped into guest address space, so a new > function, Read FIT, function index 0x, is reserved by QEMU to > read the piece of FIT buffer. The buffer is concatenated before _FIT > return > > Refer

Re: [PATCH v2 00/12] KVM: x86: add support for VMX TSC scaling

2015-11-08 Thread haozhong . zhang
On 11/06/15 21:40, Paolo Bonzini wrote: > > > On 06/11/2015 13:42, Haozhong Zhang wrote: > > On 11/06/15 11:49, Paolo Bonzini wrote: > >> > >> > >> On 20/10/2015 09:39, Haozhong Zhang wrote: > >>> This patchset adds support for VMX TSC scaling feature which is > >>> available on Intel Skylake CPU

Re: [PATCH v3 2/3] target-i386: calculate vcpu's TSC rate to be migrated

2015-11-08 Thread haozhong . zhang
On 11/06/15 13:12, Eduardo Habkost wrote: > On Fri, Nov 06, 2015 at 10:32:24AM +0800, haozhong.zh...@intel.com wrote: > > On 11/05/15 14:05, Eduardo Habkost wrote: > > > On Thu, Nov 05, 2015 at 09:30:51AM +0800, Haozhong Zhang wrote: > > > > On 11/04/15 19:42, Eduardo Habkost wrote: > [...] > > > >

Re: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization

2015-11-08 Thread Jian Zhou
Hi Paolo, May I ask that any suggestion about the version 2 of VMX LBRV? This version is updated following your advices in version 1. BTW the kvm-unit-test for this feature has sent too, and I have tested the CPUs emulated by QEMU. Thanks, Jian On 2015/10/23 17:15, Jian Zhou wrote: Changelog i

[PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-11-08 Thread Feng Wu
Use vector-hashing to handle lowest-priority interrupts for posted-interrupts. As an example, modern Intel CPUs use this method to handle lowest-priority interrupts. Signed-off-by: Feng Wu --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/irq_comm.c | 52 +

Re: [PATCH V6 0/6] Fast mmio eventfd fixes

2015-11-08 Thread Jason Wang
On 11/09/2015 01:11 AM, Michael S. Tsirkin wrote: > On Tue, Sep 15, 2015 at 02:41:53PM +0800, Jason Wang wrote: >> Hi: >> >> This series fixes two issues of fast mmio eventfd: >> >> 1) A single iodev instance were registerd on two buses: KVM_MMIO_BUS >>and KVM_FAST_MMIO_BUS. This will cause d

Re: [PATCH v7 07/35] util: introduce qemu_file_get_page_size()

2015-11-08 Thread Xiao Guangrong
On 11/06/2015 11:36 PM, Eduardo Habkost wrote: On Mon, Nov 02, 2015 at 05:13:09PM +0800, Xiao Guangrong wrote: There are three places use the some logic to get the page size on the file path or file fd Windows did not support file hugepage, so it will return normal page for this case. And thi

Re: [PATCH v7 11/35] util: introduce qemu_file_getlength()

2015-11-08 Thread Xiao Guangrong
On 11/06/2015 11:50 PM, Eduardo Habkost wrote: As this patch affects raw_getlength(), CCing the raw block driver maintainer and the qemu-block mailing list. Eduardo, thanks for your reminder. I will keep CCing Kevin and qemu-block mail list for future version. On Mon, Nov 02, 2015 at 05:13

Re: [PATCH v7 12/35] util: let qemu_fd_getlength support block device

2015-11-08 Thread Xiao Guangrong
On 11/06/2015 11:54 PM, Eduardo Habkost wrote: On Mon, Nov 02, 2015 at 05:13:14PM +0800, Xiao Guangrong wrote: lseek can not work for all block devices as the man page says: | Some devices are incapable of seeking and POSIX does not specify | which devices must support lseek(). This patch tri

Re: [PATCH v6 25/33] nvdimm acpi: build ACPI nvdimm devices

2015-11-08 Thread Xiao Guangrong
On 11/09/2015 01:38 AM, Michael S. Tsirkin wrote: On Fri, Oct 30, 2015 at 01:56:19PM +0800, Xiao Guangrong wrote: NVDIMM devices is defined in ACPI 6.0 9.20 NVDIMM Devices There is a root device under \_SB and specified NVDIMM devices are under the root device. Each NVDIMM device has _ADR whi

Re: [PATCH v6 32/33] nvdimm acpi: support _FIT method

2015-11-08 Thread Xiao Guangrong
On 11/09/2015 01:50 AM, Michael S. Tsirkin wrote: On Fri, Oct 30, 2015 at 01:56:26PM +0800, Xiao Guangrong wrote: FIT buffer is not completely mapped into guest address space, so a new function, Read FIT, function index 0x, is reserved by QEMU to read the piece of FIT buffer. The buffe

RE: [PATCH] ARM/arm64: KVM: test properly for a PTE's uncachedness

2015-11-08 Thread Pavel Fedin
Hello! I have tested this patch, it also fixes the crash on Exynos5410, and is indeed a better approach. Tested-by: Pavel Fedin CC'ed general KVM mailing list too. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia > -Original Message- > From: kvm