RE: [PATCH] kvm/ppc/booke64: fix build breakage from Altivec, and disable e6500

2013-05-30 Thread Caraman Mihai Claudiu-B02008
> > Depending on guest behavior it could look like things are working > > even though they aren't (e.g. a guest just enables MSR[VEC] and uses > > altivec instructions, not relying on exceptions). This really isn't > > worth spending a lot of time debating... Once Altivec is fixed > > properly (y

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Gleb Natapov
On Thu, May 30, 2013 at 04:15:35PM +0200, Paolo Bonzini wrote: > Il 30/05/2013 15:35, Gleb Natapov ha scritto: > > On Thu, May 30, 2013 at 03:23:35PM +0200, Paolo Bonzini wrote: > >> Il 30/05/2013 15:10, Gleb Natapov ha scritto: > >>> On Thu, May 30, 2013 at 02:58:09PM +0200, Paolo Bonzini wrote: >

Re: Why some test suite in kvm-unit-tests designed for 64bit only?

2013-05-30 Thread Jan Kiszka
On 2013-05-30 19:58, 李春奇 wrote: > Hi there, > I'm now reading codes of kvm-unit-tests and I found that some of the > test cases for x86 is only designed for x86_64 (including access.flat, > apic.flat, emulator.flat, idt_test.flat and so on). I wonder why these > cases are not designed for i386? Or

Re: KVM call agenda for 2013-05-28

2013-05-30 Thread Kevin O'Connor
On Tue, May 28, 2013 at 07:53:09PM -0400, Kevin O'Connor wrote: > There were discussions on potentially introducing a middle component > to generate the tables. Coreboot was raised as a possibility, and > David thought it would be okay to use coreboot for both OVMF and > SeaBIOS. The possibility

Re: [PATCH 3/2] vfio: Provide module option to disable vfio_iommu_type1 hugepage support

2013-05-30 Thread Chegu Vinod
On 5/28/2013 9:27 AM, Alex Williamson wrote: Add a module option to vfio_iommu_type1 to disable IOMMU hugepage support. This causes iommu_map to only be called with single page mappings, disabling the IOMMU driver's ability to use hugepages. This option can be enabled by loading vfio_iommu_type1

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 30, 2013, at 1:11 PM, Paolo Bonzini wrote: > Il 30/05/2013 20:35, Sanjay Lal ha scritto: >> +#endif >> +local_irq_save(flags); >> +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) < >> 0) { >> +run->exit_reas

[PATCH v8 03/11] KVM: MMU: fast invalidate all pages

2013-05-30 Thread Xiao Guangrong
The current kvm_mmu_zap_all is really slow - it is holding mmu-lock to walk and zap all shadow pages one by one, also it need to zap all guest page's rmap and all shadow page's parent spte list. Particularly, things become worse if guest uses more memory or vcpus. It is not good for scalability In

[PATCH v8 11/11] KVM: MMU: reduce KVM_REQ_MMU_RELOAD when root page is zapped

2013-05-30 Thread Xiao Guangrong
From: Gleb Natapov Quote Gleb's mail: | why don't we check for sp->role.invalid in | kvm_mmu_prepare_zap_page before calling kvm_reload_remote_mmus()? and | Actually we can add check for is_obsolete_sp() there too since | kvm_mmu_invalidate_all_pages() already calls kvm_reload_remote_mmus() | a

[PATCH v8 09/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-30 Thread Xiao Guangrong
kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break We can reload mmu on all vcpus after updating the generation number so that the obsolete pages are not used on any vcpus, after that we do not need to flush tlb when obsolete pages a

[PATCH v8 08/11] KVM: MMU: zap pages in batch

2013-05-30 Thread Xiao Guangrong
Zap at lease 10 pages before releasing mmu-lock to reduce the overload caused by requiring lock After the patch, kvm_zap_obsolete_pages can forward progress anyway, so update the comments [ It improves the case 0.6% ~ 1% that do kernel building meanwhile read PCI ROM. ] Note: i am not sure tha

[PATCH v8 01/11] KVM: x86: drop calling kvm_mmu_zap_all in emulator_fix_hypercall

2013-05-30 Thread Xiao Guangrong
Quote Gleb's mail: | Back then kvm->lock protected memslot access so code like: | | mutex_lock(&vcpu->kvm->lock); | kvm_mmu_zap_all(vcpu->kvm); | mutex_unlock(&vcpu->kvm->lock); | | which is what 7aa81cc0 does was enough to guaranty that no vcpu will | run while code is patched. This is no longer

[PATCH v8 06/11] KVM: MMU: add tracepoint for kvm_mmu_invalidate_all_pages

2013-05-30 Thread Xiao Guangrong
It is good for debug and development Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |1 + arch/x86/kvm/mmutrace.h | 20 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index c8063b9..3fd060a 100644 ---

[PATCH v8 04/11] KVM: x86: use the fast way to invalidate all pages

2013-05-30 Thread Xiao Guangrong
Replace kvm_mmu_zap_all by kvm_mmu_invalidate_zap_all_pages Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 15 --- arch/x86/kvm/x86.c |4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d71bf8f..c8063b9

[PATCH v8 00/11] KVM: MMU: fast zap all shadow pages

2013-05-30 Thread Xiao Guangrong
Hi Gleb, Paolo, Marcelo, I have putted the potential controversial patches to the latter that are patch 8 ~ 10, patch 11 depends on patch 9. Other patches are fully reviewed, I think its are ready for being merged. If not luck enough, further discussion is needed, could you please apply that patch

[PATCH v8 07/11] KVM: MMU: do not reuse the obsolete page

2013-05-30 Thread Xiao Guangrong
The obsolete page will be zapped soon, do not reuse it to reduce future page fault Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 3fd060a..0880b9b4 100644 --- a/arch/x86

[PATCH v8 02/11] KVM: MMU: drop unnecessary kvm_reload_remote_mmus

2013-05-30 Thread Xiao Guangrong
It is the responsibility of kvm_mmu_zap_all that keeps the consistent of mmu and tlbs. And it is also unnecessary after zap all mmio sptes since no mmio spte exists on root shadow page and it can not be cached into tlb Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c |5 + 1 files ch

[PATCH v8 10/11] KVM: MMU: reclaim the zapped-obsolete page first

2013-05-30 Thread Xiao Guangrong
As Marcelo pointed out that | "(retention of large number of pages while zapping) | can be fatal, it can lead to OOM and host crash" We introduce a list, kvm->arch.zapped_obsolete_pages, to link all the pages which are deleted from the mmu cache but not actually freed. When page reclaiming is need

[PATCH v8 05/11] KVM: MMU: show mmu_valid_gen in shadow page related tracepoints

2013-05-30 Thread Xiao Guangrong
Show sp->mmu_valid_gen Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmutrace.h | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/x86/kvm/mmutrace.h b/arch/x86/kvm/mmutrace.h index b8f6172..697f466 100644 --- a/arch/x86/kvm/mmutrace.h +++ b/arc

Re: [PATCH] kvm/ppc/booke64: fix build breakage from Altivec, and disable e6500

2013-05-30 Thread Scott Wood
On 05/10/2013 02:15:34 PM, Scott Wood wrote: On 05/10/2013 02:06:53 PM, Caraman Mihai Claudiu-B02008 wrote: > > > I didn't see Tiejun's patch... My goal was just to fix the build > > break > > > without exposing problems, and to encourage a patch to fix it > > properly > > > to happen sooner

Re: Preemptable Ticket Spinlock

2013-05-30 Thread Thomas Gleixner
On Thu, 30 May 2013, Raghavendra K T wrote: > Here is the branch with pvpspinlock V9 version in github reabsed to 3.10-rc > > https://github.com/ktraghavendra/linux/tree/pvspinlock_v9 > > planning post a formal email in a separate thread with link a to this > branch (instead of spamming with 19

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 20:35, Sanjay Lal ha scritto: >>> >> +#endif >>> >> +local_irq_save(flags); >>> >> +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) < >>> >> 0) { >>> >> +run->exit_reason = KVM_EXIT_INTERNAL_ERROR; >>> >> +

[PATCH] pci: Enable overrides for missing ACS capabilities

2013-05-30 Thread Alex Williamson
PCIe ACS (Access Control Services) is the PCIe 2.0+ feature that allows us to control whether transactions are allowed to be redirected in various subnodes of a PCIe topology. For instance, if two endpoints are below a root port or downsteam switch port, the downstream port may optionally redirect

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 28, 2013, at 9:14 AM, Paolo Bonzini wrote: > Il 19/05/2013 07:47, Sanjay Lal ha scritto: >> +#endif >> +local_irq_save(flags); >> +if (kvm_mips_handle_vz_root_tlb_fault(badvaddr, vcpu) < 0) { >> +run->exit_reason = KVM_EXIT_INTERNAL_ERROR; >> +

Re: [PATCH 10/18] KVM/MIPS32-VZ: Add API for VZ-ASE Capability

2013-05-30 Thread David Daney
On 05/30/2013 10:51 AM, Paolo Bonzini wrote: Il 30/05/2013 19:07, David Daney ha scritto: On 05/28/2013 09:34 AM, Paolo Bonzini wrote: Il 19/05/2013 07:47, Sanjay Lal ha scritto: - Add API to allow clients (QEMU etc.) to check whether the H/W supports the MIPS VZ-ASE. Why does this matte

Re: [PATCH 06/18] KVM/MIPS32-VZ: VZ-ASE related callbacks to handle guest exceptions that trap to the Root context.

2013-05-30 Thread Sanjay Lal
On May 28, 2013, at 8:04 AM, Paolo Bonzini wrote: > Il 19/05/2013 07:47, Sanjay Lal ha scritto: >> +static int kvm_vz_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs >> *regs) >> +{ >> +struct mips_coproc *cop0 = vcpu->arch.cop0; >> + >> +/* some registers are not restored >> +

Re: [PATCH 10/18] KVM/MIPS32-VZ: Add API for VZ-ASE Capability

2013-05-30 Thread Sanjay Lal
On May 30, 2013, at 10:07 AM, David Daney wrote: > On 05/28/2013 09:34 AM, Paolo Bonzini wrote: >> Il 19/05/2013 07:47, Sanjay Lal ha scritto: >>> - Add API to allow clients (QEMU etc.) to check whether the H/W >>> supports the MIPS VZ-ASE. >> >> Why does this matter to userspace? Do the user

Re: [PATCH 10/18] KVM/MIPS32-VZ: Add API for VZ-ASE Capability

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 19:07, David Daney ha scritto: > On 05/28/2013 09:34 AM, Paolo Bonzini wrote: >> Il 19/05/2013 07:47, Sanjay Lal ha scritto: >>> - Add API to allow clients (QEMU etc.) to check whether the H/W >>>supports the MIPS VZ-ASE. >> >> Why does this matter to userspace? Do the userspace

[PATCH kvm-unit-tests v2] pmu: fixes for Sandy Bridge hosts

2013-05-30 Thread Paolo Bonzini
This patch includes two fixes for SB: * the 3rd fixed counter ("ref cpu cycles") can sometimes report less than the number of iterations * there is an 8th counter which causes out of bounds accesses to gp_event or check_counters_many's cnt array There is still a bug in KVM, because the "pmu

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 09:57:10AM -0700, Jordan Justen wrote: > On Thu, May 30, 2013 at 9:41 AM, Laszlo Ersek wrote: > > On 05/30/13 18:20, Jordan Justen wrote: > >> I think ACPI table generation lives in firmware on real products, > >> because on real products the firmware is the point that best

Re: [PATCH] pmu: fixes for Sandy Bridge hosts

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 19:43, Paolo Bonzini ha scritto: > @@ -395,6 +396,14 @@ int main(int ac, char **av) > printf("Fixed counters: %d\n", edx.split.num_counters_fixed); > printf("Fixed counter width: %d\n", edx.split.bit_width_fixed); > > + num_counters = eax.split.num_counters; > +

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 09:20:42AM -0700, Jordan Justen wrote: > On Thu, May 30, 2013 at 5:19 AM, David Woodhouse wrote: > > On Thu, 2013-05-30 at 13:13 +0200, Laszlo Ersek wrote: > >> Where is CorebootPkg available from? > > > > https://github.com/pgeorgi/edk2/tree/coreboot-pkg > > Is the licens

[PATCH] pmu: fixes for Sandy Bridge hosts

2013-05-30 Thread Paolo Bonzini
This patch includes two fixes for SB: * the 3rd fixed counter ("ref cpu cycles") can sometimes report less than the number of iterations * there is an 8th counter which causes out of bounds accesses to gp_event or check_counters_many's cnt array There is still a bug in KVM, because the "pmu

[PATCH kvm-unit-tests] pmu: fixes for Sandy Bridge hosts

2013-05-30 Thread Paolo Bonzini
This patch includes two fixes for SB: * the 3rd fixed counter ("ref cpu cycles") can sometimes report less than the number of iterations * there is an 8th counter which causes out of bounds accesses to gp_event or check_counters_many's cnt array There is still a bug in KVM, because the "pmu

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Laszlo Ersek
On 05/30/13 18:57, Jordan Justen wrote: > On Thu, May 30, 2013 at 9:41 AM, Laszlo Ersek wrote: >> On 05/30/13 18:20, Jordan Justen wrote: >>> I think ACPI table generation lives in firmware on real products, >>> because on real products the firmware is the point that best >>> understands the actua

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-30 Thread Takuya Yoshikawa
On Fri, 31 May 2013 01:24:43 +0900 Takuya Yoshikawa wrote: > On Thu, 30 May 2013 03:53:38 +0300 > Gleb Natapov wrote: > > > On Wed, May 29, 2013 at 09:19:41PM +0800, Xiao Guangrong wrote: > > > On 05/29/2013 08:39 PM, Marcelo Tosatti wrote: > > > > On Wed, May 29, 2013 at 11:03:19AM +0800, Xiao

Re: [PATCH 10/18] KVM/MIPS32-VZ: Add API for VZ-ASE Capability

2013-05-30 Thread David Daney
On 05/28/2013 09:34 AM, Paolo Bonzini wrote: Il 19/05/2013 07:47, Sanjay Lal ha scritto: - Add API to allow clients (QEMU etc.) to check whether the H/W supports the MIPS VZ-ASE. Why does this matter to userspace? Do the userspace have some way to detect if the kernel is unmodified or mini

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Jordan Justen
On Thu, May 30, 2013 at 9:41 AM, Laszlo Ersek wrote: > On 05/30/13 18:20, Jordan Justen wrote: >> I think ACPI table generation lives in firmware on real products, >> because on real products the firmware is the point that best >> understands the actual hardware layout for the machine. In qemu, I

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Laszlo Ersek
On 05/30/13 18:20, Jordan Justen wrote: > I think ACPI table generation lives in firmware on real products, > because on real products the firmware is the point that best > understands the actual hardware layout for the machine. In qemu, I > would say that qemu best knows the hardware layout, give

Re: [PATCH] KVM: fix sil/dil/bpl/spl in the mod/rm fields

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 17:34, Paolo Bonzini ha scritto: > Il 30/05/2013 16:35, Paolo Bonzini ha scritto: >> The x86-64 extended low-byte registers were fetched correctly from reg, >> but not from mod/rm. >> >> This fixes another bug in the boot of RHEL5.9 64-bit, but it is still >> not enough. > > Well, it

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-30 Thread Takuya Yoshikawa
On Thu, 30 May 2013 03:53:38 +0300 Gleb Natapov wrote: > On Wed, May 29, 2013 at 09:19:41PM +0800, Xiao Guangrong wrote: > > On 05/29/2013 08:39 PM, Marcelo Tosatti wrote: > > > On Wed, May 29, 2013 at 11:03:19AM +0800, Xiao Guangrong wrote: > > > the pages since other vcpus may be doing lock

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Jordan Justen
On Thu, May 30, 2013 at 5:19 AM, David Woodhouse wrote: > On Thu, 2013-05-30 at 13:13 +0200, Laszlo Ersek wrote: >> Where is CorebootPkg available from? > > https://github.com/pgeorgi/edk2/tree/coreboot-pkg Is the license on this actually BSD as the License.txt indicates? Is this planned to be u

[PATCH 1/2] KVM: x86: handle hardware breakpoints during emulation

2013-05-30 Thread Paolo Bonzini
This lets debugging work better during emulation of invalid guest state. The check is done before emulating the instruction, and (in the case of guest debugging) reuses EMULATE_DO_MMIO to exit with KVM_EXIT_DEBUG. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 3 +- arch/x8

[PATCH 2/2] KVM: x86: handle singlestep during emulation

2013-05-30 Thread Paolo Bonzini
This lets debugging work better during emulation of invalid guest state. This time the check is done after emulation, but before writeback of the flags; we need to check the flags *before* execution of the instruction, we cannot check singlestep_rip because the CS base may have already been modifi

[PATCH 0/2] KVM: x86: minimal debugging support during emulation

2013-05-30 Thread Paolo Bonzini
The switch to emulate_invalid_guest_state brought one slightly unwelcome change; the debugging interface does not work in the initial boot phase because KVM_SET_GUEST_DEBUG is basically ignored. These two patches bring some initial support for debugging, namely for hardware breakpoints and single-

Re: [PATCH] KVM: fix sil/dil/bpl/spl in the mod/rm fields

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 16:35, Paolo Bonzini ha scritto: > The x86-64 extended low-byte registers were fetched correctly from reg, > but not from mod/rm. > > This fixes another bug in the boot of RHEL5.9 64-bit, but it is still > not enough. Well, it is enough but it takes 2 minutes to reach the point wher

Re: [GIT PULL] KVM/ARM Fixes for 3.10

2013-05-30 Thread Christoffer Dall
On Thu, May 30, 2013 at 07:20:23AM -0700, Christoffer Dall wrote: > On Wed, May 29, 2013 at 10:45 PM, Paolo Bonzini wrote: > > > Il 30/05/2013 03:39, Christoffer Dall ha scritto: > > > The following changes since commit > > e47a5f5fb715b90b40747e9e235de557c6abd56c: > > > > > > KVM: x86 emulator

Re: updated: kvm networking todo wiki

2013-05-30 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Thu, May 30, 2013 at 08:40:47AM -0500, Anthony Liguori wrote: >> Stefan Hajnoczi writes: >> >> > On Thu, May 30, 2013 at 7:23 AM, Rusty Russell >> > wrote: >> >> Anthony Liguori writes: >> >>> Rusty Russell writes: >> On Fri, May 24, 2013 at 08:47:58AM

[PATCH] KVM: fix sil/dil/bpl/spl in the mod/rm fields

2013-05-30 Thread Paolo Bonzini
The x86-64 extended low-byte registers were fetched correctly from reg, but not from mod/rm. This fixes another bug in the boot of RHEL5.9 64-bit, but it is still not enough. Cc: gnata...@redhat.com Cc: kvm@vger.kernel.org Cc: # 3.9 Signed-off-by: Paolo Bonzini --- arch/x86/kvm/emulate.c | 5 +

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 15:35, Gleb Natapov ha scritto: > On Thu, May 30, 2013 at 03:23:35PM +0200, Paolo Bonzini wrote: >> Il 30/05/2013 15:10, Gleb Natapov ha scritto: >>> On Thu, May 30, 2013 at 02:58:09PM +0200, Paolo Bonzini wrote: Il 30/05/2013 14:34, Gleb Natapov ha scritto: > > A

Re: [PATCH RFC] virtio-pci: new config layout: using memory BAR

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 08:53:45AM -0500, Anthony Liguori wrote: > Rusty Russell writes: > > > Anthony Liguori writes: > >> Forcing a guest driver change is a really big > >> deal and I see no reason to do that unless there's a compelling reason > >> to. > >> > >> So we're stuck with the 1.0 con

Re: [PATCH RFC] virtio-pci: new config layout: using memory BAR

2013-05-30 Thread Anthony Liguori
Rusty Russell writes: > Anthony Liguori writes: >> Forcing a guest driver change is a really big >> deal and I see no reason to do that unless there's a compelling reason >> to. >> >> So we're stuck with the 1.0 config layout for a very long time. > > We definitely must not force a guest change.

Re: updated: kvm networking todo wiki

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 08:40:47AM -0500, Anthony Liguori wrote: > Stefan Hajnoczi writes: > > > On Thu, May 30, 2013 at 7:23 AM, Rusty Russell > > wrote: > >> Anthony Liguori writes: > >>> Rusty Russell writes: > On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: > > F

Re: updated: kvm networking todo wiki

2013-05-30 Thread Anthony Liguori
Stefan Hajnoczi writes: > On Thu, May 30, 2013 at 7:23 AM, Rusty Russell wrote: >> Anthony Liguori writes: >>> Rusty Russell writes: On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: > FWIW, I think what's more interesting is using vhost-net as a networking > backen

Re: updated: kvm networking todo wiki

2013-05-30 Thread Anthony Liguori
Rusty Russell writes: > Anthony Liguori writes: >> Rusty Russell writes: >>> On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: FWIW, I think what's more interesting is using vhost-net as a networking backend with virtio-net in QEMU being what's guest facing.

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Gleb Natapov
On Thu, May 30, 2013 at 03:23:35PM +0200, Paolo Bonzini wrote: > Il 30/05/2013 15:10, Gleb Natapov ha scritto: > > On Thu, May 30, 2013 at 02:58:09PM +0200, Paolo Bonzini wrote: > >> Il 30/05/2013 14:34, Gleb Natapov ha scritto: > >>> > >>> Ah, we check kvm_apic_has_events() in runnable. Th

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 15:10, Gleb Natapov ha scritto: > On Thu, May 30, 2013 at 02:58:09PM +0200, Paolo Bonzini wrote: >> Il 30/05/2013 14:34, Gleb Natapov ha scritto: >>> >>> Ah, we check kvm_apic_has_events() in runnable. Then yes, we will not >>> lose the event. > > Ok, then I'd pref

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Gleb Natapov
On Thu, May 30, 2013 at 02:58:09PM +0200, Paolo Bonzini wrote: > Il 30/05/2013 14:34, Gleb Natapov ha scritto: > >>> > > > >>> > > Ah, we check kvm_apic_has_events() in runnable. Then yes, we will not > >>> > > lose the event. > >> > > >> > Ok, then I'd prefer to have the cmpxchg directly in the i

Re: Unable to boot from SCSI disk

2013-05-30 Thread Alexandre DERUMIER
hello, I can boot on lsi scsi with qemu 1.4 with -device scsi-hd -drive file=/dev/ but not -device scsi-block -drive file=/dev/ - Mail original - De: "Daniel Guillermo Bareiro" À: kvm@vger.kernel.org Envoyé: Mercredi 29 Mai 2013 13:11:42 Objet: Re: Unable to boot from SCSI disk

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 14:34, Gleb Natapov ha scritto: >>> > > >>> > > Ah, we check kvm_apic_has_events() in runnable. Then yes, we will not >>> > > lose the event. >> > >> > Ok, then I'd prefer to have the cmpxchg directly in the if, as in >> > http://article.gmane.org/gmane.comp.emulators.kvm.devel/11050

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Laszlo Ersek
On 05/30/13 14:19, David Woodhouse wrote: > Yeah, but if we're shoving a lot of hardware-specific ACPI table > generation into the guest's firmware, instead of just doing it on the > qemu side where a number of us seem to think it belongs, then there *is* > a benefit to using Coreboot. When stuff

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Gleb Natapov
On Thu, May 30, 2013 at 09:30:41AM +0200, Paolo Bonzini wrote: > Il 30/05/2013 09:09, Gleb Natapov ha scritto: > > On Thu, May 30, 2013 at 08:31:11AM +0200, Paolo Bonzini wrote: > >> Il 30/05/2013 08:01, Gleb Natapov ha scritto: > >>> On Thu, May 30, 2013 at 07:41:05AM +0200, Paolo Bonzini wrote: >

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 01:19:18PM +0100, David Woodhouse wrote: > Yeah, but if we're shoving a lot of hardware-specific ACPI table > generation into the guest's firmware, instead of just doing it on the > qemu side where a number of us seem to think it belongs, Hopefully this is not yet set in st

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread David Woodhouse
On Thu, 2013-05-30 at 13:13 +0200, Laszlo Ersek wrote: > Where is CorebootPkg available from? https://github.com/pgeorgi/edk2/tree/coreboot-pkg > > And it helps to dispel the stupid misconception in some quarters that > > Coreboot *competes* with UEFI and thus cannot possibly be supported > > bec

Re: Preemptable Ticket Spinlock

2013-05-30 Thread Raghavendra K T
On 04/23/2013 07:12 AM, Raghavendra K T wrote: On 04/23/2013 01:19 AM, Peter Zijlstra wrote: On Mon, 2013-04-22 at 08:52 -0400, Rik van Riel wrote: On 04/22/2013 07:51 AM, Peter Zijlstra wrote: On Sun, 2013-04-21 at 17:12 -0400, Rik van Riel wrote: If we always incremented the ticket number

[PATCH] KVM: Emulate multibyte NOP

2013-05-30 Thread Paolo Bonzini
This is encountered when booting RHEL5.9 64-bit. There is another bug after this one that is not a simple emulation failure, but this one lets the boot proceed a bit. Cc: # 3.9 Signed-off-by: Paolo Bonzini --- arch/x86/kvm/emulate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif

Re: [Qemu-devel] [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread Laszlo Ersek
On 05/30/13 11:23, David Woodhouse wrote: > On Wed, 2013-05-29 at 11:18 -0500, Anthony Liguori wrote: >> >>> Certainly an option, but that is a long-term project. >> >> Out of curiousity, are there other benefits to using coreboot as a core >> firmware in QEMU? >> >> Is there a payload we would eve

Why some test suite in kvm-unit-tests designed for 64bit only?

2013-05-30 Thread 李春奇
Hi there, I'm now reading codes of kvm-unit-tests and I found that some of the test cases for x86 is only designed for x86_64 (including access.flat, apic.flat, emulator.flat, idt_test.flat and so on). I wonder why these cases are not designed for i386? Or is there any other concerns? Thanks, Arth

Re: [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-30 Thread David Woodhouse
On Wed, 2013-05-29 at 11:18 -0500, Anthony Liguori wrote: > > > Certainly an option, but that is a long-term project. > > Out of curiousity, are there other benefits to using coreboot as a core > firmware in QEMU? > > Is there a payload we would ever plausibly use besides OVMF and SeaBIOS? I li

Re: [PATCH RFC] virtio-pci: new config layout: using memory BAR

2013-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2013 at 01:28:26PM +0930, Rusty Russell wrote: > >> Yet the structure definitions are descriptive, capturing layout, size > >> and endianness in natural a format readable by any C programmer. > > > >>From an API design point of view, here are the problems I see: > > > > 1) C makes n

Re: updated: kvm networking todo wiki

2013-05-30 Thread Rusty Russell
Stefan Hajnoczi writes: > On Thu, May 30, 2013 at 7:23 AM, Rusty Russell wrote: >> On the receive side, what can we do better than readv? If we need to >> return to userspace to tell the guest that we've got a new packet, we >> don't win on latency. We might reduce syscall overhead with a >> mu

Re: [PATCH RFC] virtio-pci: new config layout: using memory BAR

2013-05-30 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 03:41:09PM +0200, Paolo Bonzini wrote: > Il 29/05/2013 15:24, Michael S. Tsirkin ha scritto: > > You expect a compiler to pad this structure: > > > > struct foo { > > uint8_t a; > > uint8_t b; > > uint16_t c; > > uint32_t d; > > }; > > > > I'm guessing any

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Paolo Bonzini
Il 30/05/2013 09:09, Gleb Natapov ha scritto: > On Thu, May 30, 2013 at 08:31:11AM +0200, Paolo Bonzini wrote: >> Il 30/05/2013 08:01, Gleb Natapov ha scritto: >>> On Thu, May 30, 2013 at 07:41:05AM +0200, Paolo Bonzini wrote: Il 30/05/2013 03:20, Gleb Natapov ha scritto: > On Tue, May 28,

Re: virtio-rng only returns zeros with CONFIG_HW_RANDOM=m

2013-05-30 Thread Jens Axboe
On Thu, May 30 2013, Rusty Russell wrote: > Jens Axboe writes: > > On Wed, Feb 27 2013, Rusty Russell wrote: > >> Aurelien Jarno writes: > >> > Hi, > >> > > >> > I have noticed that virtio-rng only returns zero for kernels >= 2.6.33 > >> > built with CONFIG_HW_RANDOM=m. This is a bit much too pre

Re: [PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-30 Thread Gleb Natapov
On Thu, May 30, 2013 at 08:31:11AM +0200, Paolo Bonzini wrote: > Il 30/05/2013 08:01, Gleb Natapov ha scritto: > > On Thu, May 30, 2013 at 07:41:05AM +0200, Paolo Bonzini wrote: > >> Il 30/05/2013 03:20, Gleb Natapov ha scritto: > >>> On Tue, May 28, 2013 at 06:33:39PM +0200, Paolo Bonzini wrote: >