Re: [PATCH V3 01/14] KVM: MIPS: Define KVM_ENTRYHI_ASID to cpu_asid_mask(_cpu_data)

2020-05-06 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.10, v5.4.38, v4.19.120, v4.14.178, v4.9.221, v4.4.221. v5.6.10: Build OK!

Re: [PATCH 03/15] KVM: MIPS: Fix VPN2_MASK definition for variable cpu_vmbits

2020-04-21 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.5, v5.5.18, v5.4.33, v4.19.116, v4.14.176, v4.9.219, v4.4.219. v5.6.5: Build

Re: [PATCH 02/15] KVM: MIPS: Define KVM_ENTRYHI_ASID to cpu_asid_mask(_cpu_data)

2020-04-21 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.5, v5.5.18, v5.4.33, v4.19.116, v4.14.176, v4.9.219, v4.4.219. v5.6.5: Build

Re: [Qemu-devel] [PATCH v4 3/6] KVM: Initialize irqfd from kvm_init().

2013-04-03 Thread Sasha Levin
On 02/28/2013 04:22 AM, Cornelia Huck wrote: Currently, eventfd introduces module_init/module_exit functions to initialize/cleanup the irqfd workqueue. This only works, however, if no other module_init/module_exit functions are built into the same module. Let's just move the initialization

Re: [Qemu-devel] [PATCH v11] kvm: notify host when the guest is panicked

2012-11-09 Thread Sasha Levin
On Mon, Nov 5, 2012 at 8:58 PM, Hu Tao hu...@cn.fujitsu.com wrote: But in the case of panic notification, more dependency means more chances of failure of panic notification. Say, if we use a virtio device to do panic notification, then we will fail if: virtio itself has problems, virtio for

Re: [Qemu-devel] [PATCH v11] kvm: notify host when the guest is panicked

2012-10-30 Thread Sasha Levin
On Tue, Oct 30, 2012 at 9:48 PM, Wen Congyang we...@cn.fujitsu.com wrote: At 10/31/2012 09:12 AM, Marcelo Tosatti Wrote: It has been asked earlier why a simple virtio device is not usable for this (with no response IIRC). 1. We can't use virtio device when the kernel is booting. So the issue

Re: [Qemu-devel] [PATCH v10] kvm: notify host when the guest is panicked

2012-08-30 Thread Sasha Levin
On 08/30/2012 04:03 AM, Wen Congyang wrote: At 08/29/2012 07:56 PM, Sasha Levin Wrote: On 08/29/2012 07:18 AM, Wen Congyang wrote: diff --git a/Documentation/virtual/kvm/pv_event.txt b/Documentation/virtual/kvm/pv_event.txt new file mode 100644 index 000..bb04de0 --- /dev/null +++ b

Re: [Qemu-devel] [PATCH v10] kvm: notify host when the guest is panicked

2012-08-29 Thread Sasha Levin
On 08/29/2012 07:18 AM, Wen Congyang wrote: We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/21/2012 10:44 AM, Wen Congyang wrote: We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 09:14 PM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/21/2012 10:44 AM, Wen Congyang wrote: We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 09:22 PM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT(0x505UL) + #ifdef __KERNEL__ #include asm/processor.h @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/22/2012 10:19 PM, Sasha Levin wrote: On 07/22/2012 09:22 PM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include asm/processor.h @@ -221,6 +223,11

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/23/2012 12:29 AM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/22/2012 10:19 PM, Sasha Levin wrote: On 07/22/2012 09:22 PM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT

Re: [Qemu-devel] [PATCH v7.5] kvm: notify host when the guest is panicked

2012-07-22 Thread Sasha Levin
On 07/23/2012 12:36 AM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/22/2012 09:14 PM, Anthony Liguori wrote: Sasha Levin levinsasha...@gmail.com writes: On 07/21/2012 10:44 AM, Wen Congyang wrote: We can know the guest is panicked when the guest runs on xen

Re: [Qemu-devel] [PATCH v7] kvm: notify host when the guest is panicked

2012-07-21 Thread Sasha Levin
On 07/21/2012 09:12 AM, Wen Congyang wrote: +#define KVM_PV_PORT (0x505UL) + #ifdef __KERNEL__ #include asm/processor.h @@ -221,6 +223,11 @@ static inline void kvm_disable_steal_time(void) } #endif +static inline unsigned int kvm_arch_pv_features(void) +{ + return

Re: [Qemu-devel] [PATCH 2/3] use gettimeofday() instead of time()

2012-01-05 Thread Sasha Levin
On Fri, 2012-01-06 at 07:37 +, Zhang, Yang Z wrote: Please refer the patch zero for the description. Each patch should have description about what it does in the changelog, otherwise you're going to lose important information about the change. Furthermore, cover letters don't get merged at

Re: [Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time

2011-11-17 Thread Sasha Levin
On Thu, 2011-11-17 at 16:36 +0200, Avi Kivity wrote: On 11/14/2011 05:56 AM, zanghongy...@huawei.com wrote: From: Hongyong Zang zanghongy...@huawei.com Ivshmem(nahanni) is a mechanism for sharing host memory with VMs running on the same host. Currently, guest notifies qemu by reading or

Re: [Qemu-devel] [PATCH] i386: derive '-cpu host' from KVM_GET_SUPPORTED_CPUID

2011-11-09 Thread Sasha Levin
On Wed, 2011-11-09 at 20:00 +0200, Avi Kivity wrote: On 11/09/2011 07:56 PM, Anthony Liguori wrote: On 11/09/2011 07:44 AM, Avi Kivity wrote: The fact that a host cpu supports a feature doesn't mean that QEMU and KVM will also support it, yet -cpuid host brings host features wholesale.

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-08 Thread Sasha Levin
On Tue, Nov 8, 2011 at 4:52 PM, Christoph Hellwig h...@infradead.org wrote: On Tue, Nov 08, 2011 at 04:41:40PM +0200, Avi Kivity wrote: On 11/06/2011 03:35 AM, Alexander Graf wrote: To quickly get going, just execute the following as user:     $ ./Documentation/run-qemu.sh -r / -a

Re: [Qemu-devel] [PATCH] KVM: Add wrapper script around QEMU to test kernels

2011-11-07 Thread Sasha Levin
On Mon, Nov 7, 2011 at 12:23 PM, Gerd Hoffmann kra...@redhat.com wrote:  Hi, It's not just about code, it's as much about culture and development process. Indeed.  The BSDs have both kernel and the base system in a single repository.  There are probably good reasons for (and against) it.

Re: [Qemu-devel] Secure KVM

2011-11-07 Thread Sasha Levin
Hi Anthony, Thank you for your comments! On Mon, 2011-11-07 at 11:37 -0600, Anthony Liguori wrote: On 11/06/2011 02:40 PM, Sasha Levin wrote: Hi all, I'm planning on doing a small fork of the KVM tool to turn it into a 'Secure KVM' enabled hypervisor. Now you probably ask yourself, Huh

Re: [Qemu-devel] [PATCH 1/1 V5 tuning] kernel/kvm: introduce KVM_SET_LINT1 and fix improper nmi emulation

2011-10-14 Thread Sasha Levin
On Fri, 2011-10-14 at 17:51 +0800, Lai Jiangshan wrote: Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even when LINT1

[Qemu-devel] [PATCH v2] tap: Add optional parameters to up/down script

2011-09-30 Thread Sasha Levin
This allows the user to add custom parameters to the up or down scripts. Extra parameters are useful in more complex networking scenarios where we would like to configure network devices when starting or stopping the guest. Cc: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Sasha Levin

[Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Sasha Levin
This allows the user to add custom parameters to the up or down scripts. Cc: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Sasha Levin levinsasha...@gmail.com --- net.c |8 net/tap.c | 37 ++--- 2 files changed, 38 insertions(+), 7

Re: [Qemu-devel] [PATCH] tap: Add optional parameters to up/down script

2011-09-29 Thread Sasha Levin
On Thu, 2011-09-29 at 17:20 +0200, Jan Kiszka wrote: On 2011-09-29 16:40, Thomas Jung wrote: On 2011-09-29 16:11 jan kiszka wrote What kind of parameters would you want to pass? Something that tells VMs apart (which can be solved without these extensions) or more? Jan In our Case:

Re: [Qemu-devel] [PATCH] pc_init: Fail on bad kernel

2011-09-14 Thread Sasha Levin
Ping? On Sat, 2011-09-03 at 22:35 +0300, Sasha Levin wrote: When providing QEMU with a bad '-kernel' parameter, such as a file which is not really a kernel, QEMU will attempt to allocate a huge amount of memory and fail either with Failed to allocate memory: Cannot allocate memory or a GLib

[Qemu-devel] [PATCH] pc_init: Fail on bad kernel

2011-09-03 Thread Sasha Levin
18446744073709529965 bytes This patch handles the case where the magic sig wasn't located in the provided kernel, and loading it as multiboot failed as well. Cc: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Sasha Levin levinsasha...@gmail.com --- hw/pc.c |8 +++- 1 files changed, 7 insertions

Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-09-01 Thread Sasha Levin
On Thu, 2011-09-01 at 16:09 +1000, David Gibson wrote: The virtio code already has memory barrier wmb() macros in the code. However they are was defined as no-ops. The comment claims that real barriers are not necessary because the code does not run concurrent. However, with kvm and io-thread

Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-09-01 Thread Sasha Levin
On Thu, 2011-09-01 at 10:37 +0300, Sasha Levin wrote: On Thu, 2011-09-01 at 16:09 +1000, David Gibson wrote: The virtio code already has memory barrier wmb() macros in the code. However they are was defined as no-ops. The comment claims that real barriers are not necessary because the code

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-29 Thread Sasha Levin
On Thu, 2011-08-25 at 16:29 +0300, Sasha Levin wrote: Hello, I am looking to implement an ivshmem device for KVM tools, the purpose is to provide same functionality as QEMU and interoperability with QEMU. [snip] 1. File handles and guest IDs are passed between the server and the peers

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-26 Thread Sasha Levin
On Thu, 2011-08-25 at 16:48 -0500, Anthony Liguori wrote: On 08/25/2011 12:21 AM, Sasha Levin wrote: Hi, Currently when we run the guest we treat it as a black box, we're not quite sure what it's going to start and whether it supports the same features we expect it to support when

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-26 Thread Sasha Levin
On Thu, 2011-08-25 at 16:25 +, Decker, Schorschi wrote: I would ask two things be done in the design if it goes forward, 1) have an explicit way to disable this feature, where the hypervisor cannot interact with the guest OS directly in any way if disablement is selected. I doubt that

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-26 Thread Sasha Levin
On Fri, 2011-08-26 at 09:04 +0100, Richard W.M. Jones wrote: On Fri, Aug 26, 2011 at 09:22:45AM +0300, Sasha Levin wrote: On Thu, 2011-08-25 at 16:25 +, Decker, Schorschi wrote: 2) implement the feature as an agent in the guest OS where the hypervisor can only query the guest OS agent

Re: [Qemu-devel] Guest kernel device compatability auto-detection

2011-08-25 Thread Sasha Levin
On Thu, 2011-08-25 at 08:32 +0100, Richard W.M. Jones wrote: On Thu, Aug 25, 2011 at 08:33:04AM +0300, Avi Kivity wrote: On 08/25/2011 08:21 AM, Sasha Levin wrote: Hi, Currently when we run the guest we treat it as a black box, we're not quite sure what it's going to start and whether

[Qemu-devel] Questions regarding ivshmem spec

2011-08-25 Thread Sasha Levin
Hello, I am looking to implement an ivshmem device for KVM tools, the purpose is to provide same functionality as QEMU and interoperability with QEMU. Going through the spec (I found here: https://gitorious.org/nahanni/guest-code/blobs/master/device_spec.txt ) and the code in QEMU I have

Re: [Qemu-devel] Questions regarding ivshmem spec

2011-08-25 Thread Sasha Levin
On Thu, 2011-08-25 at 17:40 +0300, Avi Kivity wrote: On 08/25/2011 05:39 PM, Sasha Levin wrote: On Thu, 2011-08-25 at 17:00 +0300, Avi Kivity wrote: On 08/25/2011 04:29 PM, Sasha Levin wrote: 2. The spec describes DOORBELL as an array of DWORDs, when one guest wants to poke

[Qemu-devel] Guest kernel device compatability auto-detection

2011-08-24 Thread Sasha Levin
Hi, Currently when we run the guest we treat it as a black box, we're not quite sure what it's going to start and whether it supports the same features we expect it to support when running it from the host. This forces us to start the guest with the safest defaults possible, for example: '-drive

Re: [Qemu-devel] [net-next RFC PATCH 7/7] virtio-net changes

2011-08-12 Thread Sasha Levin
On Fri, 2011-08-12 at 09:55 +0800, Jason Wang wrote: From: Krishna Kumar krkum...@in.ibm.com Implement mq virtio-net driver. Though struct virtio_net_config changes, it works with the old qemu since the last element is not accessed unless qemu sets VIRTIO_NET_F_MULTIQUEUE.

Re: [Qemu-devel] [PATCH] Introduce QEMU_NEW()

2011-07-25 Thread Sasha Levin
On Mon, 2011-07-25 at 11:32 +0200, Alexander Graf wrote: On 25.07.2011, at 10:51, Avi Kivity wrote: qemu_malloc() is type-unsafe as it returns a void pointer. Introduce QEMU_NEW() (and QEMU_NEWZ()), which return the correct type. What does this buy you over type *x =

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-20 Thread Sasha Levin
On Tue, 2011-07-19 at 21:53 -0500, Anthony Liguori wrote: QEMU does use it and it's quite important. Coalesced MMIO is really about write caching MMIO exits. It only works with devices that have registers where writing has no side effects. Moreover, it only really works well when there

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Sasha Levin
On Tue, Jul 19, 2011 at 11:51 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 07/19/2011 11:10 AM, Avi Kivity wrote: On 07/19/2011 07:05 PM, Avi Kivity wrote: On 07/19/2011 05:50 PM, Anthony Liguori wrote: There's bits I don't like about the interface Which bits are these? Nothing

[Qemu-devel] [PATCH resend] vl.c: Don't limit node count by smp count

2011-06-29 Thread Sasha Levin
[I've sent this patch couple of months ago and noticed it didn't make it's way in - so I'm sending it again] It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Tested-by: Michael Roth mdr...@linux.vnet.ibm.com Signed-off-by: Sasha Levin levinsasha

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-02 Thread Sasha Levin
Hi, On Mon, 2011-05-30 at 13:09 +0800, Zhi Yong Wu wrote: Hello, all, I have prepared to work on a feature called Disk I/O limits for qemu-kvm projeect. This feature will enable the user to cap disk I/O amount performed by a VM.It is important for some storage resources to be

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-02 Thread Sasha Levin
On Thu, 2011-06-02 at 14:29 +0800, Zhi Yong Wu wrote: On Thu, Jun 02, 2011 at 09:17:06AM +0300, Sasha Levin wrote: Date: Thu, 02 Jun 2011 09:17:06 +0300 From: Sasha Levin levinsasha...@gmail.com To: Zhi Yong Wu wu...@linux.vnet.ibm.com Cc: qemu-devel@nongnu.org, k...@vger.kernel.org, kw

[Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Sasha Levin
It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- vl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 8bcf2ae..8cc1aa8 100644 --- a/vl.c +++ b

Re: [Qemu-devel] [PATCH] Don't limit node count by smp count

2011-03-30 Thread Sasha Levin
On Wed, 2011-03-30 at 14:28 -0500, Anthony Liguori wrote: On 03/30/2011 02:14 PM, Sasha Levin wrote: It is possible to create CPU-less NUMA nodes, node amount shouldn't be limited by amount of CPUs. But does this actually work in the code today and does it work with any guests? I've