This adds a generic uio driver that can bind to any PCI device. First
user will be virtualization where a qemu userspace process needs to give
guest OS access to the device.
Interrupts are handled using the Interrupt Disable bit in the PCI command
register and Interrupt Status bit in the PCI stat
Now KVM allow guest to modify guest's physical address of EPT's identity
mapping page.
(discard uncessary check when setting address)
Signed-off-by: Sheng Yang
---
arch/x86/include/asm/kvm_host.h |1 +
arch/x86/kvm/vmx.c | 13 +
arch/x86/kvm/x86.c |
spin_lock disables preemption, so we can simply read the current cpu.
Signed-off-by: Jan Kiszka
---
virt/kvm/kvm_main.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 7cd1c10..98e4ec8 100644
--- a/virt/kvm/kvm_main.c
++
> -Original Message-
> From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On
> Behalf Of howard chen
> Sent: Sonntag, 19. Juli 2009 11:47
> To: kvm@vger.kernel.org
> Subject: KVM vs Xen/OpenVZ for VPS hosting business
>
> Hello,
>
> Currently both Xen and OpenVZ are well k
KVM would like to provide x2APIC interface to a guest without emulating
interrupt remapping device. The reason KVM prefers guest to use x2APIC
is that x2APIC interface is better virtualizable and provides better
performance than mmio xAPIC interface:
- msr exits are faster than mmio (no page table
On Fri, 2009-07-17 at 23:17 +0800, Yolkfull Chow wrote:
> Signed-off-by: Yolkfull Chow
> ---
> client/tests/kvm/kvm_vm.py | 24
> 1 files changed, 24 insertions(+), 0 deletions(-)
Ok, I've followed the discussion around this patch, thanks Yolkfull and
Michael. Applied.
On Fri, 2009-07-10 at 12:01 +0200, Lukáš Doktor wrote:
> After discussion I split the patches.
Hi Lukáš, sorry for the delay answering your patch. Looks good to me in
general, I have some remarks to make:
1) When posting patches to the autotest kvm tests, please cross post the
autotest mailing li
2009/7/9 Lukáš Doktor :
> Set English environment before test executions.
> This is critical because we are parsing outputs of commands, which are
> localized!
>
> Tested by: ldok...@redhat.com on RHEL5.4 with kvm-83-72.el5
Ok, fair enough to have this extra security. Thanks, applied.
--
To unsubs
- "howard chen" wrote:
> Hello,
>
> Currently both Xen and OpenVZ are well known and mature product used
> in hosting companies.
>
> How about KVM? What are the advantages if I use KVM as the VPS
> solution?
>
> E.g.
>
> performance?
Due to a difference between virtualization and contai
On Sun, Jul 19, 2009 at 11:41:20AM +0800, John Wong wrote:
> Marcelo Tosatti 提到:
> > On Mon, Jul 13, 2009 at 12:01:25AM +0800, John Wong wrote:
> >
> >> [/ramdisk/kvm-88/kvm/kernel/x86/kvm.ko] undefined!
> >> WARNING: "__tracepoint_kvm_mmu_pagetable_walk"
> >> [/ramdisk/kvm-88/kvm/kernel/x86/k
The following patch series includes all the patches I sent that have not been
applied yet. They are all rebased against the latest HEAD (including the recent
UUID patch).
Some new things are included too, such as a simple time drift test for Windows.
Sorry for posting so many commits at once.
--
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_preprocessing.py | 27 ++--
client/tests/kvm/kvm_vm.py| 111 +++-
2 files changed, 59 insertions(+), 79 deletions(-)
diff --git a/client/tests/kvm/kvm_preprocessing.py
b/client/tests/kvm/kvm_p
This module is intended to be used for controlling all child processes in KVM
tests: both QEMU processes and SSH/SCP/Telnet processes. Processes started with
this module keep running and can be interacted with even after the parent
process exits.
The current run_bg() utility tracks a child process
Also remove a reference to kvm_log that was left behind.
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_utils.py | 13 -
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
index b2b0d1a..fb587c5 1006
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_tests.py |9 +
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py
index 2d11fed..5991aed 100644
--- a/client/tests/kvm/kvm_tests.py
+++ b/client/tests/kvm/
These are now provided by kvm_subprocess.py.
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_utils.py | 477 +
1 files changed, 2 insertions(+), 475 deletions(-)
diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
index fb5
The name 'debug_dir' makes it clearer that it corresponds to test.debugdir.
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_guest_wizard.py | 20 ++--
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/client/tests/kvm/kvm_guest_wizard.py
b/client/tests/k
Currently parameters for barrier_2() are extracted from 'params' in the main
run_steps() test routine, and then passed to barrier_2().
Instead, let barrier_2() extract parameters from 'params' as it sees fit.
This will make adding new parameters slightly easier and cleaner.
Signed-off-by: Michael
Add two new step file test parameters:
- keep_screendump_history: if equals 'yes', screendump history is saved in
test.debugdir/barrier_history in JPG format. Each screendump taken by the
test is saved if it differs from the previous screendump. By default, when
a barrier succeeds all histo
This should be rather harmless because the history does not take up much space,
and is only kept for the failed barriers in failed tests, by default.
It should significantly ease debugging of failed step file tests.
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_tests.cfg.sample |2
This is intended to save disk space. Requires ImageMagick (uses mogrify).
To enable:
convert_ppm_files_to_png = yes
To enable only for failed tests:
convert_ppm_files_to_png_on_error = yes
Reminder: by default PPM files are removed after the test (and after the
conversion, if requested). To ke
By default, always remove PPM files, and keep PNG files only for failed tests.
This shouldn't do much harm, because while PPMs can be incorporated directly
into step files, PNGs can be converted back to PPMs easily, and take less disk
space.
(PNG is a lossless compression format.)
The 'keep_ppm_fi
1) Log into a guest.
2) Take a time reading from the guest and host.
3) Run load on the guest and host.
4) Take a second time reading.
5) Stop the load and rest for a while.
6) Take a third time reading.
7) If the drift immediately after load is higher than a user-
specified value (in %), fail.
If
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_config.py | 99 +---
1 files changed, 52 insertions(+), 47 deletions(-)
diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py
index 99ccb2a..7e8b1db 100755
--- a/client/tests/kvm/
Allow kvm_config to parse weird lines that seem to contain several operators,
such as:
time_filter_re = "(?<=TIME: ...)"
The '?<=' is recognized as the operator instead of the '='.
To fix this, select the operator closest to the beginning of the line.
Signed-off-by: Michael Goldish
---
client/t
Currently the test will only run on Windows.
It should be able to run on Linux just as well, but if I understand correctly,
testing time drift on Linux is less interesting.
Also make some tiny cosmetic changes (spacing), and move the stress_boot test
before the shutdown test (shutdown should be la
'redirs' and 'vnc_port' might be used before they're defined, if
make_qemu_command() is called before create(). To make sure this doesn't
happen, define them in the VM constructor.
Signed-off-by: Michael Goldish
---
client/tests/kvm/kvm_vm.py |2 ++
1 files changed, 2 insertions(+), 0 delet
Make some small style changes to handling of pre- and post-commands.
These changes are not required, but they make the code slightly shorter and
more consistent with the rest of the code (IMO).
Also, do not print "Adding ... to environment" for each parameter in the
dict because in some cases there
On Wed, Jul 15, 2009 at 01:22:12PM -0400, Glauber Costa wrote:
> We now have an upstream qemu function that does exactly that,
> but in a kvm-independent way. Use it.
>
> Signed-off-by: Glauber Costa
> ---
> hw/acpi.c | 24 +---
> 1 files changed, 1 insertions(+), 23 deleti
On Thu, Jul 16, 2009 at 05:17:37PM +0200, Christian Bornträger wrote:
> From: Christian Borntraeger
>
> There are two waitqueues in kvm for wait handling:
> vcpu->wq for virt/kvm/kvm_main.c and
> vpcu->arch.local_int.wq for the s390 specific wait code.
>
> the wait handling in kvm_s390_handle_wa
Bugs item #2823765, was opened at 2009-07-18 21:59
Message generated for change (Comment added) made by mtosatti
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2823765&group_id=180599
Please note that this message will contain a full copy of the comment
Per a posting to openbsd misc mailing list on the 15th by Nick Osborn
> All good advice, but in the meantime a kernel without acpimadt,
> ioapic, and
> mpbios drivers will do the job. It appears they must be completely
> removed
> rather than just disabled.
And he goes on to post a minimal ke
Hi there,
try to switch to USB 1.1 - not the best way but this helped my Windows XP
running and doing things like printing, formatting USB keys or using a
Dongle (Aladin, I think, it's also HASP)
USB 2.0 was not really working well with KVM :-(
Best regards,
Erik
G wrote:
On Thu, Jul 16,
Marcelo Tosatti 提到:
John,
I don't know what is going on, works for me on 2.6.30 host. Maybe try
without --kerneldir?
Hi Marcelo, yes i did, i can not compile it without --kerneldir, then i
try --kerneldir,
but still not work.
Are you use Debian?
Anyone use Debian/amd64/sid here?
Debian u
replace qemu_kvm_notify_work() with qemu_notify_event(), that ends
up calling it anyway.
Signed-off-by: Glauber Costa
---
hw/virtio-net.c |5 +
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index bda2397..75c9695 100644
--- a/hw/virtio-n
On Wed, 15 Jul 2009 23:39:11 +0200
"Hans J. Koch" wrote:
> On Wed, Jul 15, 2009 at 11:13:40PM +0300, Michael S. Tsirkin wrote:
> > This adds a generic uio driver that can bind to any PCI device.
> > First user will be virtualization where a qemu userspace process
> > needs to give guest OS access
On Mon, Jul 20, 2009 at 10:00:53AM +0800, Huang Ying wrote:
> KVM ioctls are used to initialize MCE simulation and inject MCE. The
> real MCE simulation is implemented in Linux kernel. The Kernel part
> has been merged.
>
>
> ChangeLog:
>
> v7:
>
> - Re-based on qemu-kvm.git/next branch
>
> v6
On Mon, Jul 20, 2009 at 10:17:02AM -0700, Jesse Barnes wrote:
> On Wed, 15 Jul 2009 23:39:11 +0200
> "Hans J. Koch" wrote:
>
> > On Wed, Jul 15, 2009 at 11:13:40PM +0300, Michael S. Tsirkin wrote:
> > > This adds a generic uio driver that can bind to any PCI device.
> > > First user will be virtu
On Mon, Jul 20, 2009 at 10:29:34AM +0300, Michael S. Tsirkin wrote:
> This adds a generic uio driver that can bind to any PCI device. First
> user will be virtualization where a qemu userspace process needs to give
> guest OS access to the device.
>
> Interrupts are handled using the Interrupt Di
On Mon, Jul 20, 2009 at 09:09:43PM +0200, Hans J. Koch wrote:
> On Mon, Jul 20, 2009 at 10:29:34AM +0300, Michael S. Tsirkin wrote:
> > This adds a generic uio driver that can bind to any PCI device. First
> > user will be virtualization where a qemu userspace process needs to give
> > guest OS ac
On Mon, Jul 20, 2009 at 10:52:27PM +0300, Michael S. Tsirkin wrote:
> On Mon, Jul 20, 2009 at 09:09:43PM +0200, Hans J. Koch wrote:
> > On Mon, Jul 20, 2009 at 10:29:34AM +0300, Michael S. Tsirkin wrote:
> > > This adds a generic uio driver that can bind to any PCI device. First
> > > user will be
Our PIT implementation calls qemu_kvm_pit_in_kernel without
checking for kvm_enabled() as does everybody else. It will make it
dereference kvm_context pointer wich will be NULL.
Signed-off-by: Glauber Costa
---
hw/i8254.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git
Marcelo:
Attention: this is _not_ a resent of my last series. I'm deferring
resending that until we reach consensus on the ioctl error values.
This one is another one I had on trigger. I tested it across reboots,
system_resets, shutdown, migration, and normal use.
It tries to glue together a lot
Also following upstream behaviour, we exit if not able to service this
request. As we target move forward on merging with qemu, this would have to
happen. So make it sooner, rather than later
Signed-off-by: Glauber Costa
---
qemu-kvm.c |2 +-
vl.c |6 --
2 files changed, 1 inse
There is no reason why kvm_create_context is placed outside kvm_init().
After we call kvm_init(), no extra initialization step should be necessary.
This patch folds kvm_create_context into it, simplifying vl.c code.
Signed-off-by: Glauber Costa
---
qemu-kvm.c |6 --
qemu-kvm.h |1 -
The goal is to get rid of the call to kvm_init. But those things
are subtle, and often break. So do it in a separate patch, to help
finding potential issues in future bisections.
Signed-off-by: Glauber Costa
---
vl.c | 18 +-
1 files changed, 9 insertions(+), 9 deletions(-)
di
From: Glauber Costa
There is no reason why kvm_init_ap() and friends are placed outside kvm_init().
After we call kvm_init(), no extra initialization step should be necessary.
There are now no references to KVM_UPSTREAM outside of kvm*.c files
Signed-off-by: Glauber Costa
---
qemu-kvm.c | 20
Our code now looks like qemu's a lot. Remove ours, and leave just
qemu's.
Signed-off-by: Glauber Costa
---
vl.c | 11 ---
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/vl.c b/vl.c
index 86a6d70..ae9e0b4 100644
--- a/vl.c
+++ b/vl.c
@@ -5935,7 +5935,6 @@ int main(int a
qemu CPUState already provides "stop" and "stopped" states. And they
mean exactly that. There is no need for us to provide our own.
Signed-off-by: Glauber Costa
---
cpu-defs.h |2 --
qemu-kvm.c | 30 --
vl.c |2 +-
3 files changed, 13 insertions(+), 21
Provide a wrapper to pthread kill. It is more elegant
because we only need to pass a CPUState pointer, meaning
"signall this cpu"
Signed-off-by: Glauber Costa
---
qemu-kvm.c | 13 +
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 6d556b8
We can use plain qemu's here, and save a couple of lines/complexity.
I'm leaving outb for later, because the SMM thing makes it a little bit
less trivial.
Signed-off-by: Glauber Costa
---
qemu-kvm.c | 25 -
1 files changed, 4 insertions(+), 21 deletions(-)
diff --git a
We're not using this for anything
Signed-off-by: Glauber Costa
---
qemu-kvm.c |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/qemu-kvm.c b/qemu-kvm.c
index c89146d..b9eed8e 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -43,7 +43,6 @@ int kvm_pit = 1;
int kvm_pit_reinjec
On Mon, 20 Jul 2009 12:55:36 -0700
Greg KH wrote:
> On Mon, Jul 20, 2009 at 10:52:27PM +0300, Michael S. Tsirkin wrote:
> > On Mon, Jul 20, 2009 at 09:09:43PM +0200, Hans J. Koch wrote:
> > > On Mon, Jul 20, 2009 at 10:29:34AM +0300, Michael S. Tsirkin
> > > wrote:
> > > > This adds a generic uio
G wrote:
> I'm not too familiar with valgrind output, I have only used it on
> smaller programs I've written myself, so I don't know what to think of
> the messages (and amount of messages; valgrind told me to use
> --error-limit=no). I do get a bit nervous from all the complaints
> about uninitial
On Sat, Jul 18, 2009 at 11:58:32PM +0900, Akinobu Mita wrote:
> Use get_desc_base() and get_desc_limit() to get the base address and
> limit in desc_struct.
>
> Cc: Avi Kivity
> Cc: kvm@vger.kernel.org
> Signed-off-by: Akinobu Mita
> ---
Applied both, thanks.
> arch/x86/kvm/x86.c | 18 +
Jan,
This was suggested but we thought it might be safer to keep the
get_cpu/put_cpu pair in case -rt kernels require it (which might be
bullshit, but nobody verified).
On Mon, Jul 20, 2009 at 11:30:12AM +0200, Jan Kiszka wrote:
> spin_lock disables preemption, so we can simply read the current
On Thursday 09 July 2009, Lukáš Doktor wrote:
> --- orig/client/tests/kvm/control 2009-07-08 13:18:07.0 +0200
> +++ new/client/tests/kvm/control2009-07-09 12:32:32.0 +0200
> @@ -45,6 +45,8 @@ Each test is appropriately documented on
>
> import sys, os
>
> +# set
Now KVM allow guest to modify guest's physical address of EPT's identity
mapping page.
(change from v1, discard unnecessary check, change ioctl to accept parameter
address rather than value)
Signed-off-by: Sheng Yang
---
arch/x86/include/asm/kvm_host.h |1 +
arch/x86/kvm/vmx.c
If we use larger BIOS image than current 256KB, we would need move reserved
TSS and EPT identity mapping pages. Currently TSS support this, but not
EPT.
(change from v1, use parameter address instead of value for ioctl)
Signed-off-by: Sheng Yang
---
kvm/include/linux/kvm.h |2 ++
qemu-kvm-x
On (Tue) Jul 21 2009 [16:42:50], Mark van Walraven wrote:
> On Wed, Jul 15, 2009 at 02:33:03PM +0530, Amit Shah wrote:
> > On (Wed) Jul 15 2009 [09:52:36], Robert Wimmer wrote:
> > > Hi!
> > >
> > > > Are you using virtio-block?
> > >
> > > Yes.
> >
> > OK, then there is a known problem. I think
On Wed, Jul 15, 2009 at 02:33:03PM +0530, Amit Shah wrote:
> On (Wed) Jul 15 2009 [09:52:36], Robert Wimmer wrote:
> > Hi!
> >
> > > Are you using virtio-block?
> >
> > Yes.
>
> OK, then there is a known problem. I think the fix is waiting to be
> applied.
Amit, would you kindly state the probl
Dne 21.7.2009 02:09, Arnd Bergmann napsal(a):
On Thursday 09 July 2009, Lukáš Doktor wrote:
--- orig/client/tests/kvm/control 2009-07-08 13:18:07.0 +0200
+++ new/client/tests/kvm/control2009-07-09 12:32:32.0 +0200
@@ -45,6 +45,8 @@ Each test is appropriately docu
On Mon, Jul 20, 2009 at 07:10:13PM -0400, Glauber Costa wrote:
> We can use plain qemu's here, and save a couple of lines/complexity.
> I'm leaving outb for later, because the SMM thing makes it a little bit
> less trivial.
>
I think you can remove all this black SMM magic from kvm_outb(). It is
h
Happen to see this:
include/linux.kvm.h
503 #define KVM_IRQ_LINE_STATUS _IOWR(KVMIO, 0x67, struct kvm_irq_level)
504 #define KVM_REGISTER_COALESCED_MMIO \
505 _IOW(KVMIO, 0x67, struct kvm_coalesced_mmio_zone)
Both ioctl use 0x67, and the code has released to v2.6.3
On Tue, Jul 21, 2009 at 02:46:44PM +0800, Yang, Sheng wrote:
> Happen to see this:
>
> include/linux.kvm.h
>
> 503 #define KVM_IRQ_LINE_STATUS _IOWR(KVMIO, 0x67, struct kvm_irq_level)
> 504 #define KVM_REGISTER_COALESCED_MMIO \
> 505 _IOW(KVMIO, 0x67, struct kvm_coa
65 matches
Mail list logo