Re: virtio-blk performance regression and qemu-kvm

2012-02-29 Thread Stefan Hajnoczi
On Tue, Feb 28, 2012 at 5:15 PM, Martin Mailand mar...@tuxadero.com wrote: Hi Stefan, I was bisecting qemu-kvm.git. qemu-kvm.git regularly merges from qemu.git. The history of the qemu-kvm.git repository is not linear because of these periodic merges from the qemu.git tree. I think what

Re: [PATCH 3/4] KVM: Switch to srcu-less get_dirty_log()

2012-02-29 Thread Avi Kivity
On 02/29/2012 09:49 AM, Takuya Yoshikawa wrote: Avi Kivity a...@redhat.com wrote: The key part of the implementation is the use of xchg() operation for clearing dirty bits atomically. Since this allows us to update only BITS_PER_LONG pages at once, we need to iterate over the dirty

Re: Reconciling qemu-kvm and qemu's PIT

2012-02-29 Thread Avi Kivity
On 02/28/2012 11:47 PM, Jan Kiszka wrote: Looks like isa-pit has zero gpio pins, so it fails when crashing. I must have mismerged it, but where is the gpio pin count set? In pit_initfn. Does -no-kvm-irqchip work fine? It's a bit tricky to discuss this without seeing your code. pushed

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Dave Martin
On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: On Tue, 28 Feb 2012, Ian Campbell wrote: On Tue, 2012-02-28 at 10:20 +, Dave Martin wrote: On Mon, Feb 27, 2012 at 07:33:39PM +, Ian Campbell wrote: On Mon, 2012-02-27 at 18:03 +, Dave Martin wrote:

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 09:08:52AM +0800, Wen Congyang wrote: At 02/28/2012 06:45 PM, Gleb Natapov Wrote: On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote:

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 11:49:58AM +0200, Avi Kivity wrote: On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Ian Campbell
On Wed, 2012-02-29 at 09:34 +, Dave Martin wrote: On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: I don't have a very strong opinion on which register we should use, but I would like to avoid r7 if it is already actively used by gcc. But there is no framepointer

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Daniel P. Berrange
On Wed, Feb 29, 2012 at 11:49:58AM +0200, Avi Kivity wrote: On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). Isn't it unreliable after the guest panicked? So is calling hypercalls, or dumping, or writing to the screen. Of

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be done from the host OS using libvirt's core dump mechanism. The

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). Isn't it unreliable after the guest panicked?

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself).

Re: [PATCH 3/4] KVM: Switch to srcu-less get_dirty_log()

2012-02-29 Thread Takuya Yoshikawa
Avi Kivity a...@redhat.com wrote: Okay. But note you don't need the alignment check; simply allocate the array aligned, and a multiple of 16 bytes, in the first place. OKay, then we can do something like: for each (x = bitmap[i], y = bitmap[i+1]) if (!x !y)

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 05:36 PM, Gleb Natapov Wrote: On Wed, Feb 29, 2012 at 09:08:52AM +0800, Wen Congyang wrote: At 02/28/2012 06:45 PM, Gleb Natapov Wrote: On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote:

Re: [Qemu-devel] blockdev operations [was: KVM call agenda for Tuesday 28th]

2012-02-29 Thread Kevin Wolf
Am 28.02.2012 17:07, schrieb Eric Blake: On 02/28/2012 07:58 AM, Stefan Hajnoczi wrote: On Tue, Feb 28, 2012 at 2:47 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 28/02/2012 15:39, Stefan Hajnoczi ha scritto: I'm not a fan of transactions or freeze/thaw (if used to atomically perform other

Re: Reconciling qemu-kvm and qemu's PIT

2012-02-29 Thread Jan Kiszka
On 2012-02-29 10:29, Avi Kivity wrote: On 02/28/2012 11:47 PM, Jan Kiszka wrote: Looks like isa-pit has zero gpio pins, so it fails when crashing. I must have mismerged it, but where is the gpio pin count set? In pit_initfn. Does -no-kvm-irqchip work fine? It's a bit tricky to discuss this

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:08 PM, Avi Kivity Wrote: On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Daniel P. Berrange
On Wed, Feb 29, 2012 at 12:05:32PM +0200, Avi Kivity wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:05 PM, Avi Kivity Wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be done from the host OS using

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call single hypercall instruction. Why

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:19 PM, Daniel P. Berrange wrote: On Wed, Feb 29, 2012 at 12:05:32PM +0200, Avi Kivity wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself).

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:08:19PM +0200, Avi Kivity wrote: On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:31 PM, Wen Congyang wrote: At 02/29/2012 06:05 PM, Avi Kivity Wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:44 PM, Gleb Natapov wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call single hypercall instruction.

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:48:57PM +0200, Avi Kivity wrote: On 02/29/2012 12:44 PM, Gleb Natapov wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS

Re: [SeaBIOS] [PATCH RFC] seabios: add OSHP method stub

2012-02-29 Thread Gerd Hoffmann
diff --git a/src/ssdt-pcihp.dsl b/src/ssdt-pcihp.dsl index 442e7a8..3f50169 100644 --- a/src/ssdt-pcihp.dsl +++ b/src/ssdt-pcihp.dsl @@ -24,6 +24,7 @@ DefinitionBlock (ssdt-pcihp.aml, SSDT, 0x01, BXPC, BXSSDTPCIHP, 0x1) ACPI_EXTRACT_METHOD_STRING aml_ej0_name \

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Dave Martin
On Wed, Feb 29, 2012 at 09:56:02AM +, Ian Campbell wrote: On Wed, 2012-02-29 at 09:34 +, Dave Martin wrote: On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: I don't have a very strong opinion on which register we should use, but I would like to avoid r7 if it

Re: [PATCH 3/4] KVM: Switch to srcu-less get_dirty_log()

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:16 PM, Takuya Yoshikawa wrote: We may see partial display updates if we do not hold the mmu_lock during xchg loop: it is possible that pages near the end of the framebuffer alone gets updated sometimes - I noticed this problem when I fixed the TLB flush issue. I

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Dave Martin
On Wed, Feb 29, 2012 at 09:56:02AM +, Ian Campbell wrote: On Wed, 2012-02-29 at 09:34 +, Dave Martin wrote: On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: I don't have a very strong opinion on which register we should use, but I would like to avoid r7 if it

Re: virtio-blk performance regression and qemu-kvm

2012-02-29 Thread Martin Mailand
Hi Stefan, you are right, the performance for the commits 0b9b128530b and 4fefc55ab04d are both good. What is the best approach to stay in the qemu-kvm.git history? -martin On 29.02.2012 09:38, Stefan Hajnoczi wrote: I suggest testing both of the qemu-kvm.git merge commits, 0b9b128530b and

Re: [PATCH] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Joerg Roedel
On Tue, Feb 28, 2012 at 07:38:34PM +0200, Avi Kivity wrote: On 02/28/2012 07:36 PM, David Ahern wrote: I was to suggest the reverse: since this patch addesses an AMD bug, why not push those functions into perf_event_amd.c and make them dependent on CONFIG_CPU_SUP_AMD as well. It depends

[PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of supported PCI devices: 1 * 32 * 8 = 256. The maximum of coalesced mmio zone is 100, each zone has an iobus devices.

Re: Reconciling qemu-kvm and qemu's PIT

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:14 PM, Jan Kiszka wrote: On 2012-02-29 10:29, Avi Kivity wrote: On 02/28/2012 11:47 PM, Jan Kiszka wrote: Looks like isa-pit has zero gpio pins, so it fails when crashing. I must have mismerged it, but where is the gpio pin count set? In pit_initfn. Does

Re: virtio-blk performance regression and qemu-kvm

2012-02-29 Thread Stefan Hajnoczi
On Wed, Feb 29, 2012 at 1:12 PM, Martin Mailand mar...@tuxadero.com wrote: Hi Stefan, you are right, the performance for the commits 0b9b128530b and 4fefc55ab04d are both good. What is the best approach to stay in the qemu-kvm.git history? I didn't know the answer so I asked on #git on

Re: virtio-blk performance regression and qemu-kvm

2012-02-29 Thread Stefan Hajnoczi
On Wed, Feb 29, 2012 at 1:44 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Feb 29, 2012 at 1:12 PM, Martin Mailand mar...@tuxadero.com wrote: Hi Stefan, you are right, the performance for the commits 0b9b128530b and 4fefc55ab04d are both good. What is the best approach to stay in the

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-02-29 Thread Jamal Hadi Salim
On Tue, 2012-02-28 at 20:40 -0800, John Fastabend wrote: OK back to this. The last piece is where to put these messages... we could take PF_ROUTE:RTM_*NEIGH PF_ROUTE:RTM_NEWNEIGH - Add a new FDB entry to an offloaded switch. PF_ROUTE:RTM_DELNEIGH -

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-02-29 Thread Jamal Hadi Salim
On Tue, 2012-02-28 at 21:14 -0800, John Fastabend wrote: Just checked looks like the DSA infrastructure has commands to enable STP so guess it is doing learning. IIRC, Lennert built some of this stuff tied to the kernel. cheers, jamal -- To unsubscribe from this list: send the line

[PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Joerg Roedel
It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is disabled in EFER. This patch works around this issue by masking out the HO bit in the performance counter control register when SVM is not enabled. The GO bit is

Re: [PATCH 3/4] KVM: Switch to srcu-less get_dirty_log()

2012-02-29 Thread Takuya Yoshikawa
Avi Kivity a...@redhat.com wrote: We cannot get a complete snapshot without mmu_lock; if the guest faults on the Nth page during xchg'ing i = 1, 2, ... then the i = N alone will become newer. Ah, so there is no data corruption (missed dirty bits), just the display is updated

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Jan Kiszka
On 2012-02-29 14:30, Amos Kong wrote: kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of supported PCI devices: 1 * 32 * 8 = 256. The maximum of coalesced mmio

Re: Reconciling qemu-kvm and qemu's PIT

2012-02-29 Thread Jan Kiszka
On 2012-02-29 14:45, Avi Kivity wrote: On 02/29/2012 12:14 PM, Jan Kiszka wrote: On 2012-02-29 10:29, Avi Kivity wrote: On 02/28/2012 11:47 PM, Jan Kiszka wrote: Looks like isa-pit has zero gpio pins, so it fails when crashing. I must have mismerged it, but where is the gpio pin count set?

Re: Reconciling qemu-kvm and qemu's PIT

2012-02-29 Thread Avi Kivity
On 02/29/2012 04:24 PM, Jan Kiszka wrote: On 2012-02-29 14:45, Avi Kivity wrote: On 02/29/2012 12:14 PM, Jan Kiszka wrote: On 2012-02-29 10:29, Avi Kivity wrote: On 02/28/2012 11:47 PM, Jan Kiszka wrote: Looks like isa-pit has zero gpio pins, so it fails when crashing. I must have

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Ian Campbell
On Wed, 2012-02-29 at 12:58 +, Dave Martin wrote: On Wed, Feb 29, 2012 at 09:56:02AM +, Ian Campbell wrote: On Wed, 2012-02-29 at 09:34 +, Dave Martin wrote: On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: I don't have a very strong opinion on which

Re: [PATCH-WIP 01/13] xen/arm: use r12 to pass the hypercall number to the hypervisor

2012-02-29 Thread Stefano Stabellini
On Wed, 29 Feb 2012, Dave Martin wrote: On Wed, Feb 29, 2012 at 09:56:02AM +, Ian Campbell wrote: On Wed, 2012-02-29 at 09:34 +, Dave Martin wrote: On Tue, Feb 28, 2012 at 12:28:29PM +, Stefano Stabellini wrote: I don't have a very strong opinion on which register we

Re: [PATCH v4] KVM: Allow host IRQ sharing for assigned PCI 2.3 devices

2012-02-29 Thread Alex Williamson
On Tue, 2012-02-28 at 14:19 +0100, Jan Kiszka wrote: PCI 2.3 allows to generically disable IRQ sources at device level. This enables us to share legacy IRQs of such devices with other host devices when passing them to a guest. The new IRQ sharing feature introduced here is optional, user

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
- Original Message - On 2012-02-29 14:30, Amos Kong wrote: kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of supported PCI devices: 1 * 32 * 8 =

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Jan Kiszka
On 2012-02-29 16:22, Amos Kong wrote: - Original Message - On 2012-02-29 14:30, Amos Kong wrote: kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of

Re: [PATCH v4] KVM: Allow host IRQ sharing for assigned PCI 2.3 devices

2012-02-29 Thread Jan Kiszka
On 2012-02-29 16:22, Alex Williamson wrote: On Tue, 2012-02-28 at 14:19 +0100, Jan Kiszka wrote: PCI 2.3 allows to generically disable IRQ sources at device level. This enables us to share legacy IRQs of such devices with other host devices when passing them to a guest. The new IRQ sharing

[PATCH] kvm: fill in padding to help valgrind

2012-02-29 Thread Michael S. Tsirkin
valgrind warns about padding fields which are passed to vcpu ioctls uninitialized. This is not an error in practice because kvm ignored padding. Since the ioctls in question are off data path and the cost is zero anyway, initialize padding to 0 to suppress these errors. Signed-off-by: Michael S.

Re: [PATCH v4] KVM: Allow host IRQ sharing for assigned PCI 2.3 devices

2012-02-29 Thread Alex Williamson
On Wed, 2012-02-29 at 16:38 +0100, Jan Kiszka wrote: On 2012-02-29 16:22, Alex Williamson wrote: On Tue, 2012-02-28 at 14:19 +0100, Jan Kiszka wrote: PCI 2.3 allows to generically disable IRQ sources at device level. This enables us to share legacy IRQs of such devices with other host

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
- Original Message - On 2012-02-29 16:22, Amos Kong wrote: - Original Message - On 2012-02-29 14:30, Amos Kong wrote: kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Avi Kivity
On 02/29/2012 03:57 PM, Joerg Roedel wrote: It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is disabled in EFER. This patch works around this issue by masking out the HO bit in the performance counter control

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 07:00:09PM +0200, Avi Kivity wrote: On 02/29/2012 03:57 PM, Joerg Roedel wrote: It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is disabled in EFER. This patch works around this

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Joerg Roedel
On Wed, Feb 29, 2012 at 07:00:09PM +0200, Avi Kivity wrote: On 02/29/2012 03:57 PM, Joerg Roedel wrote: It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is disabled in EFER. This patch works around this

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Avi Kivity
On 02/29/2012 07:05 PM, Joerg Roedel wrote: On Wed, Feb 29, 2012 at 07:00:09PM +0200, Avi Kivity wrote: On 02/29/2012 03:57 PM, Joerg Roedel wrote: It turned out that a performance counter on AMD does not count at all when the GO or HO bit is set in the control register and SVM is

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Peter Zijlstra
On Wed, 2012-02-29 at 18:05 +0100, Joerg Roedel wrote: Once northbridge counters are implemented for Fam15h this check can go away again. Nope, northbridge on fam15 is completely disjoint from the regular pmu and should thus be a separate driver. The only reason the old amd driver has them

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-02-29 Thread John Fastabend
On 2/29/2012 5:56 AM, Jamal Hadi Salim wrote: On Tue, 2012-02-28 at 20:40 -0800, John Fastabend wrote: OK back to this. The last piece is where to put these messages... we could take PF_ROUTE:RTM_*NEIGH PF_ROUTE:RTM_NEWNEIGH - Add a new FDB entry to an offloaded

Re: [PATCH v2] perf/x86: Fix HO/GO counting with SVM disabled

2012-02-29 Thread Peter Zijlstra
On Wed, 2012-02-29 at 14:57 +0100, Joerg Roedel wrote: diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu/perf_event.h index 8944062..2c581b9 100644 --- a/arch/x86/kernel/cpu/perf_event.h +++ b/arch/x86/kernel/cpu/perf_event.h @@ -148,6 +148,8 @@ struct cpu_hw_events {

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that. This fixes CPU overcommit scenarios where vCPUs could hang forever

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-02-29 Thread Stephen Hemminger
On Wed, 29 Feb 2012 09:25:56 -0800 John Fastabend john.r.fastab...@intel.com wrote: On 2/29/2012 5:56 AM, Jamal Hadi Salim wrote: On Tue, 2012-02-28 at 20:40 -0800, John Fastabend wrote: OK back to this. The last piece is where to put these messages... we could take PF_ROUTE:RTM_*NEIGH

Re: [RFC PATCH v0 1/2] net: bridge: propagate FDB table into hardware

2012-02-29 Thread John Fastabend
On 2/29/2012 9:52 AM, Stephen Hemminger wrote: On Wed, 29 Feb 2012 09:25:56 -0800 John Fastabend john.r.fastab...@intel.com wrote: On 2/29/2012 5:56 AM, Jamal Hadi Salim wrote: On Tue, 2012-02-28 at 20:40 -0800, John Fastabend wrote: OK back to this. The last piece is where to put these

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Alexander Graf
On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that.

Re: [PATCH V2] Quirk for IVB graphics FLR errata

2012-02-29 Thread Jesse Barnes
On Wed, 29 Feb 2012 03:11:24 + Hao, Xudong xudong@intel.com wrote: For IvyBridge Mobile platform, a system hang may occur if a FLR(Function Level Reset) is asserted to internal graphics. This quirk patch is workaround for the IVB FLR errata issue. We are disabling the FLR reset

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/29/2012 12:28 PM, Alexander Graf wrote: On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different

Re: RFC: Device isolation groups

2012-02-29 Thread Alex Williamson
On Thu, 2012-02-02 at 12:24 +1100, David Gibson wrote: On Wed, Feb 01, 2012 at 01:08:39PM -0700, Alex Williamson wrote: On Wed, 2012-02-01 at 15:46 +1100, David Gibson wrote: This patch series introduces a new infrastructure to the driver core for representing device isolation groups.

RE: [PATCH V2] Quirk for IVB graphics FLR errata

2012-02-29 Thread Hao, Xudong
-Original Message- From: Jesse Barnes [mailto:jbar...@virtuousgeek.org] Sent: Thursday, March 01, 2012 2:32 AM To: Hao, Xudong Cc: linux-...@vger.kernel.org; linux-ker...@vger.kernel.org; kvm@vger.kernel.org; Kay, Allen M; Zhang, Xiantao Subject: Re: [PATCH V2] Quirk for IVB

[PATCH v2 1/2] powerpc/e500: make load_up_spe a normal fuction

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com So that we can call it when improving SPE switch like book3e did for fp switch. Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Olivia Yin hong-hua@freescale.com --- v2: add Signed-off-by arch/powerpc/kernel/head_fsl_booke.S | 23

[PATCH v2 2/2] KVM: booke: Improve SPE switch

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com Like book3s did for fp switch, instead of switch SPE between host and guest, the patch switch SPE state between qemu and guest. In this way, we can simulate a host loadup SPE when load guest SPE state, and let host to decide when to giveup SPE state. Therefor it

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:39 PM, Avi Kivity Wrote: On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call

[PATCH V3] Quirk for IVB graphics FLR errata

2012-02-29 Thread Hao, Xudong
For IvyBridge Mobile platform, a system hang may occur if a FLR(Function Level Reset) is asserted to internal graphics. This quirk patch is workaround for the IVB FLR errata issue. We are disabling the FLR reset handshake between the PCH and CPU display, then manually powering down the panel

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
On 01/03/12 00:34, Amos Kong wrote: - Original Message - On 2012-02-29 16:22, Amos Kong wrote: - Original Message - On 2012-02-29 14:30, Amos Kong wrote: kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it

Re: [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:39 PM, Avi Kivity Wrote: On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call

[PATCH v4] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of supported PCI devices: 1 * 32 * 8 = 256. One virtio-blk takes one iobus device, one virtio-net(vhost=on) takes two

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that. This fixes CPU overcommit scenarios where vCPUs could hang forever

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Alexander Graf
On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that.

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/29/2012 12:28 PM, Alexander Graf wrote: On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different

[PATCH v2 1/2] powerpc/e500: make load_up_spe a normal fuction

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com So that we can call it when improving SPE switch like book3e did for fp switch. Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Olivia Yin hong-hua@freescale.com --- v2: add Signed-off-by arch/powerpc/kernel/head_fsl_booke.S | 23

[PATCH v2 2/2] KVM: booke: Improve SPE switch

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com Like book3s did for fp switch, instead of switch SPE between host and guest, the patch switch SPE state between qemu and guest. In this way, we can simulate a host loadup SPE when load guest SPE state, and let host to decide when to giveup SPE state. Therefor it