[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 Cc: Zachary Amsden Signed-off-by: Bruce Rogers

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

2012-07-20 Thread Bruce Rogers
longer needed, and zeroes the offset as a matter of cleaning up migration state which is no longer relevant. Both patches address the issue, but in different ways. Bruce Rogers (2): kvm: kvmclock: apply kvmclock offset to guest wall clock time kvm: kvmclock: eliminate kvmclock offset when time

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

2012-07-20 Thread Bruce Rogers
guest time after a reboot. Cc: Glauber Costa Cc: Zachary Amsden Signed-off-by: Bruce Rogers --- arch/x86/kvm/x86.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index be6d549..14c290d 100644 --- a/arch/x86/kvm/x86.c +++ b/arc

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

2012-07-20 Thread Bruce Rogers
guest time after a reboot. Cc: Glauber Costa Cc: Zachary Amsden Signed-off-by: Bruce Rogers --- arch/x86/kvm/x86.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index be6d549..14c290d 100644 --- a/arch/x86/kvm/x86.c +++ b/arc

[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 Cc: Zachary Amsden Signed-off-by: Bruce Rogers

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

2012-07-20 Thread Bruce Rogers
longer needed, and zeroes the offset as a matter of cleaning up migration state which is no longer relevant. Both patches address the issue, but in different ways. Bruce Rogers (2): kvm: kvmclock: apply kvmclock offset to guest wall clock time kvm: kvmclock: eliminate kvmclock offset when time

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

2012-08-01 Thread Bruce Rogers
>>> On 8/1/2012 at 02:21 PM, Marcelo Tosatti wrote: > On Mon, Jul 23, 2012 at 09:44:54PM -0300, Marcelo Tosatti wrote: >> On Fri, Jul 20, 2012 at 10:44:24AM -0600, Bruce Rogers wrote: >> > When a guest migrates to a new host, the system time difference from the >&g

[PATCH] handle device help before accelerator set up

2012-08-08 Thread Bruce Rogers
ing before the accelerator set up allows the device probe to work in this configuration and libvirt succeeds in setting up for a qemu hypervisor mode. Signed-off-by: Bruce Rogers --- vl.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 1a46d2d..5b75

Re: [Qemu-devel] vm performance degradation after kvm live migration or save-restore with ETP enabled

2013-07-11 Thread Bruce Rogers
>>> On 7/11/2013 at 03:36 AM, "Zhanghaoyu (A)" wrote: > hi all, > > I met similar problem to these, while performing live migration or > save-restore test on the kvm platform (qemu:1.4.0, host:suse11sp2, > guest:suse11sp2), running tele-communication software suite in guest, > https://lists.g

[PATCH] KVM: x86 emulator: emulate RETF imm

2013-09-03 Thread Bruce Rogers
Opcode CA This gets used by a DOS based NetWare guest. Signed-off-by: Bruce Rogers --- arch/x86/kvm/emulate.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 2bc1e81..aee238a 100644 --- a/arch

[PATCH kvm-unit-tests] realmode: test RETF imm

2013-09-04 Thread Bruce Rogers
Signed-off-by: Bruce Rogers --- x86/realmode.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/x86/realmode.c b/x86/realmode.c index 3546771..c57e033 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -481,6 +481,9 @@ void test_io(void) asm ("retf:

Re: [PATCH] KVM: x86 emulator: emulate RETF imm

2013-09-09 Thread Bruce Rogers
>>> On 9/8/2013 at 07:13 AM, Gleb Natapov wrote: > On Tue, Sep 03, 2013 at 01:42:09PM -0600, Bruce Rogers wrote: >> Opcode CA >> >> This gets used by a DOS based NetWare guest. >> >> Signed-off-by: Bruce Rogers >> --- >> arch/x86/kv

Re: [PATCH] KVM: x86 emulator: emulate RETF imm

2013-09-09 Thread Bruce Rogers
>>> On 9/9/2013 at 07:10 AM, Gleb Natapov wrote: > On Mon, Sep 09, 2013 at 07:09:15AM -0600, Bruce Rogers wrote: >> >>> On 9/8/2013 at 07:13 AM, Gleb Natapov wrote: >> > On Tue, Sep 03, 2013 at 01:42:09PM -0600, Bruce Rogers wrote: >> >> Opco

[PATCH v2] KVM: x86 emulator: emulate RETF imm

2013-09-09 Thread Bruce Rogers
Opcode CA This gets used by a DOS based NetWare guest. Signed-off-by: Bruce Rogers --- arch/x86/kvm/emulate.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 2bc1e81..ddc3f3d 100644 --- a/arch/x86/kvm

Re: [Qemu-devel] qemu-kvm: remove "boot=on|off" drive parameter compatibility

2012-10-01 Thread Bruce Rogers
>>> On 10/1/2012 at 07:19 AM, Anthony Liguori wrote: > Jan Kiszka writes: > >> On 2012-10-01 11:31, Marcelo Tosatti wrote: >> >> It's not just about default configs. We need to validate if the >> migration formats are truly compatible (qemu-kvm -> QEMU, the other way >> around definitely not).

[PATCH] kvm: Add COPYING file

2009-08-07 Thread Bruce Rogers
kvm-kmod sources have no COPYING file. This patch adds it. Signed-off-by: Bruce Rogers --- COPYING | 339 1 file changed, 339 insertions(+) diff --git a/COPYING b/COPYING new file mode 100644 index 000..00ccfbb --- /dev

kvm scaling question

2009-09-11 Thread Bruce Rogers
I am wondering if anyone has investigated how well kvm scales when supporting many guests, or many vcpus or both. I'll do some investigations into the per vm memory overhead and play with bumping the max vcpu limit way beyond 16, but hopefully someone can comment on issues such as locking probl

Re: kvm scaling question

2009-09-14 Thread Bruce Rogers
On 9/11/2009 at 9:46 AM, Javier Guerra wrote: > On Fri, Sep 11, 2009 at 10:36 AM, Bruce Rogers wrote: >> Also, when I did a simple experiment with vcpu overcommitment, I was > surprised how quickly performance suffered (just bringing a Linux vm up), > since I would have assumed

Re: kvm scaling question

2009-09-14 Thread Bruce Rogers
On 9/11/2009 at 3:53 PM, Marcelo Tosatti wrote: > On Fri, Sep 11, 2009 at 09:36:10AM -0600, Bruce Rogers wrote: >> I am wondering if anyone has investigated how well kvm scales when > supporting many guests, or many vcpus or both. >> >> I'll do some investig

Re: kvm scaling question

2009-09-14 Thread Bruce Rogers
On 9/11/2009 at 5:02 PM, Andre Przywara wrote: > Marcelo Tosatti wrote: >> On Fri, Sep 11, 2009 at 09:36:10AM -0600, Bruce Rogers wrote: >>> I am wondering if anyone has investigated how well kvm scales when > supporting many guests, or many vcpus or both. >>> &

[PATCH] kvm: allocate correct size for dirty bitmap

2009-09-23 Thread Bruce Rogers
wrong size. Signed-off-by: Bruce Rogers --- qemu-kvm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 6511cb6..ee5db76 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -702,7 +702,7 @@ int kvm_get_dirty_pages_range(kvm_context_t kvm, unsigned long

[PATCH] document boot option to -drive parameter

2010-04-16 Thread Bruce Rogers
The boot option is missing from the documentation for the -drive parameter. If there is a better way to descibe it, I'm all ears. Signed-off-by: Bruce Rogers http://vger.kernel.org/majordomo-info.html

[PATCH 2/3][STABLE] KVM: indicate oom if add_buf fails

2010-06-03 Thread Bruce Rogers
This patch is a subset of an already upstream patch, but this portion is useful in earlier releases. Please consider for stable. If the add_buf operation fails, indicate failure to the caller. Signed-off-by: Bruce Rogers --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c

[PATCH 3/3][STABLE] KVM: add schedule check to napi_enable call

2010-06-03 Thread Bruce Rogers
. Make sure napi is scheduled subsequent to each napi_enable. Signed-off-by: Bruce Rogers Signed-off-by: Olaf Kirch --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -388,6 +388,20 @@ static void skb_recv_done(struct virtque } } +static void virtnet_napi_enable

[PATCH 0/3][STABLE] KVM: Various issues in virtio_net

2010-06-03 Thread Bruce Rogers
, but I haven't validated that. With these 3 patches applied we no longer see any issues with virito networking using our certification test suite. Signed-off-by: Bruce Rogers -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@

[PATCH 1/3][STABLE] KVM: fix delayed refill checking

2010-06-03 Thread Bruce Rogers
Please consider this for stable: commit 39d321577405e8e269fd238b278aaf2425fa788a Author: Herbert Xu Date: Mon Jan 25 15:51:01 2010 -0800 virtio_net: Make delayed refill more reliable I have seen RX stalls on a machine that experienced a suspected OOM. After the stall, the RX buff

Re: [stable] [PATCH 2/3][STABLE] KVM: indicate oom if add_buf fails

2010-06-03 Thread Bruce Rogers
>>> On 6/3/2010 at 03:02 PM, Greg KH wrote: > > WHat is the git commit id of the upstream patch? > 9ab86bbcf8be755256f0a5e994e0b38af6b4d399 I grabbed this from: git://git.kernel.org/pub/scm/virt/kvm/kvm.git > I need that for all stable patches to be accepted, thanks. > > Also, all KVM stuf

Re: [stable] [PATCH 3/3][STABLE] KVM: add schedule check to napi_enable call

2010-06-03 Thread Bruce Rogers
>>> On 6/3/2010 at 03:03 PM, Greg KH wrote: > On Thu, Jun 03, 2010 at 01:38:31PM -0600, Bruce Rogers wrote: >> virtio_net: Add schedule check to napi_enable call >> Under harsh testing conditions, including low memory, the guest would >> stop rece

Re: [stable] [PATCH 3/3][STABLE] KVM: add schedule check to napi_enable call

2010-06-03 Thread Bruce Rogers
>>> On 6/3/2010 at 04:51 PM, Greg KH wrote: > On Thu, Jun 03, 2010 at 04:17:34PM -0600, Bruce Rogers wrote: >> >>> On 6/3/2010 at 03:03 PM, Greg KH wrote: >> > On Thu, Jun 03, 2010 at 01:38:31PM -0600, Bruce Rogers wrote: >> >> vi

Re: [stable] [PATCH 3/3][STABLE] KVM: add schedule check to napi_enable call

2010-06-03 Thread Bruce Rogers
>>> On 6/3/2010 at 04:51 PM, Greg KH wrote: > On Thu, Jun 03, 2010 at 04:17:34PM -0600, Bruce Rogers wrote: >> >>> On 6/3/2010 at 03:03 PM, Greg KH wrote: >> > On Thu, Jun 03, 2010 at 01:38:31PM -0600, Bruce Rogers wrote: >> >> vi

[PATCH] handle -smp > 16 more cleanly

2009-04-09 Thread Bruce Rogers
lly a segfault occurs. Bruce Signed-off-by: Bruce Rogers diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c index ed76367..b6d6d5e 100644 --- a/qemu/qemu-kvm.c +++ b/qemu/qemu-kvm.c @@ -417,12 +417,18 @@ static void *ap_main_loop(void *_env) CPUState *env = _env; sigset_t sign

[PATCH] make help output be a little more self-consistent

2010-01-06 Thread Bruce Rogers
Signed-off-by: Bruce Rogers --- qemu-options.hx | 58 -- 1 files changed, 30 insertions(+), 28 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 812d067..fdd5884 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -42,7

[PATCH 2/2] make help output be a little more self-consistent

2010-01-07 Thread Bruce Rogers
This is the part which applies to qemu-kvm. Signed-off-by: Bruce Rogers --- qemu-options.hx | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 788d849..fdd5884 100644 --- a/qemu-options.hx +++ b/qemu-options.hx

[PATCH 1/2] [RESEND] make help output be a little more self-consistent

2010-01-07 Thread Bruce Rogers
This is the part which applies to the base qemu. btw: it was sent to qemu-de...@nongnu.org yesterday.) Signed-off-by: Bruce Rogers --- qemu-options.hx | 39 --- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/qemu-options.hx b/qemu