[KVM-AUTOTEST][COMMIT] Delete kvm_runtest_old test

2009-06-03 Thread Uri Lublin
From: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com *** Diff is too large (405826 bytes) -- not showing *** -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord...@vger.kernel.org More majordomo

[KVM-AUTOTEST][COMMIT] Sync from site_host import SiteHost code with upstream autotest

2009-06-03 Thread Uri Lublin
From: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com diff --git a/server/hosts/__init__.py b/server/hosts/__init__.py index 21bca1c..f8b6803 100644 --- a/server/hosts/__init__.py +++ b/server/hosts/__init__.py @@ -12,7 +12,10 @@ You should 'import hosts'

[KVM-AUTOTEST][COMMIT] Merge autotest SVN revision 3185

2009-06-03 Thread Uri Lublin
From: Eduardo Habkost ehabk...@redhat.com This will pulls some new code that is needed for the changes that will be implemented on the kvm tests. Signed-off-by: Eduardo Habkost ehabk...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to

[KVM-AUTOTEST][COMMIT] Moving from kvm_log to the upstream logging system.

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com kvm_log can be replaced by the upstream logging system with advantages: * Uses the standard python module, that allows us to define multiple message destinations * It implements nearly all functionalities implemented on kvm_log This patch

[KVM-AUTOTEST][COMMIT] Fixing docstrings and lines of code wider than 80 characters.

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues mrodr...@redhat.com The autotest coding standards specify the preferred way of doing docstring documentation, as well as the maximum line width in 80 characters. This change converts all non compliances. *** Diff is too large (185612 bytes) -- not showing *** --

[KVM-AUTOTEST][COMMIT] Sanitizing strings before passing them to the logging system.

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com The logging system encodes messages using the utf-8 encoding by default. So sometimes it's necessary to re-encode lines when non unicode characters are thrown up by the command outputs. This patch re-encodes lines of text that will be passed to the

[KVM-AUTOTEST][COMMIT] Trimming trailing whitespaces from all files on the source directory

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com The previous patches introduces trailing whitespaces to all files. This patch removes trailing whitespaces from all lines of the files present on the kvm_runtest_2 test. *** Diff is too large (161734 bytes) -- not showing *** -- To unsubscribe

[KVM-AUTOTEST][COMMIT] Changing kvm_runtest_2 to kvm.

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com *** Diff is too large (85588 bytes) -- not showing *** -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord...@vger.kernel.org More majordomo info at

[KVM-AUTOTEST][COMMIT] Fixing import style on make_html_report

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com diff --git a/client/tests/kvm/make_html_report.py b/client/tests/kvm/make_html_report.py index a660cff..988b2f3 100755 --- a/client/tests/kvm/make_html_report.py +++ b/client/tests/kvm/make_html_report.py @@ -6,13 +6,8 @@ Script used to parse the

[KVM-AUTOTEST][COMMIT] Final adjustments on the KVM test

2009-06-03 Thread Uri Lublin
From: Lucas Meneghel Rodrigues l...@redhat.com diff --git a/client/tests/kvm/control b/client/tests/kvm/control index d11f72f..f4b2113 100644 --- a/client/tests/kvm/control +++ b/client/tests/kvm/control @@ -143,7 +143,7 @@ for dict in list: dependencies_satisfied = False

[KVM-AUTOTEST][COMMIT] Add Dror Russo to author lists

2009-06-03 Thread Uri Lublin
From: Eduardo Habkost ehabk...@redhat.com So the code will match the code on the upstream autotest SVN repository. Signed-off-by: Eduardo Habkost ehabk...@redhat.com diff --git a/client/tests/kvm/control b/client/tests/kvm/control index f4b2113..eb38686 100644 --- a/client/tests/kvm/control +++

[KVM-AUTOTEST][COMMIT] Merge branch 'master' of git://github.com/ehabkost/autotest into kvm-merge2

2009-06-03 Thread Uri Lublin
From: Eduardo Habkost ehabk...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Michael Goldish
- Avi Kivity a...@redhat.com wrote: David Huff wrote: This patch will run pre and post scripts defined in config file with the parameter pre_command and post_command post_command. Also exports all the prameters in preprocess for passing arguments to the script. +

Re: [KVM-RFC PATCH 0/2] irqfd: use POLLHUP notification for close()

2009-06-03 Thread Michael S. Tsirkin
On Tue, Jun 02, 2009 at 01:41:05PM -0400, Gregory Haskins wrote: And having close not clean up the state unless you do an ioctl first is very messy IMO - I don't think you'll find any such examples in kernel. I agree, and that is why I am advocating this POLLHUP solution. It was

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Avi Kivity
Michael Goldish wrote: - Avi Kivity a...@redhat.com wrote: David Huff wrote: This patch will run pre and post scripts defined in config file with the parameter pre_command and post_command post_command. Also exports all the prameters in preprocess for passing arguments to the

Re: kvm-autotest: False PASS results

2009-06-03 Thread Michael Goldish
- Uri Lublin u...@redhat.com wrote: On 05/10/2009 08:15 PM, sudhir kumar wrote: Hi Uri, Any comments? -- Forwarded message -- From: sudhir kumarsmalik...@gmail.com The kvm-autotest shows the following PASS results for migration, while the VM was crashed and

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Michael Goldish
- Avi Kivity a...@redhat.com wrote: Michael Goldish wrote: - Avi Kivity a...@redhat.com wrote: David Huff wrote: This patch will run pre and post scripts defined in config file with the parameter pre_command and post_command post_command. Also exports all the

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Avi Kivity
Michael Goldish wrote: - What if we're interested in the status for some reason? Its value may indicate what went wrong with the child process. Put it in the exception string. But I want its value to be examined programmatically in the code. It's less comfortable

[ANNOUNCE] kvm-kmod-2.6.30-rc8

2009-06-03 Thread Avi Kivity
This is a package containing the kvm external module, based on the 2.6.30 series. kvm-kmod-2.6.30-rc8 contains the kvm code that is present in Linux 2.6.30-rc8, except that it can run on older kernels. It is a good companion to the qemu-kvm-0.10 series. Note that performance and features will

Re: [PATCH 2/2] Add serial number support for virtio_blk, V4

2009-06-03 Thread Jens Axboe
On Mon, Jun 01 2009, Rusty Russell wrote: On Fri, 29 May 2009 01:45:27 pm john cooper wrote: virtio_blk-serial-4.patch Hate to ask dumb questions, but is there a scsi equivalent of this? It'd be nice if we could avoid being ATA-specific in the long run... SCSI has mode pages, where ATA

Re: [PATCH 1/4] always halt non-bsp cpu.

2009-06-03 Thread Gleb Natapov
On Tue, Jun 02, 2009 at 03:37:47PM -0400, Glauber Costa wrote: This is not kvm specific, and should do fine in plain qemu Signed-off-by: Glauber Costa glom...@redhat.com --- hw/apic.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index

Re: [Qemu-devel] Re: [PATCH] qemu: virtio save/load bindings

2009-06-03 Thread Avi Kivity
Anthony Liguori wrote: Michael S. Tsirkin wrote: Implement bindings for virtio save/load. Use them in virtio pci. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Is anyone working to fill in load/save bindings so that saving virtio devices works? Here's a trivial patch to do this (this

Re: [PATCH 1/4] always halt non-bsp cpu.

2009-06-03 Thread Jan Kiszka
Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:32:04AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:01:00AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Tue, Jun 02, 2009 at 10:35:47PM +0200, Jan Kiszka wrote: Glauber Costa wrote: This is not kvm specific,

Re: [PATCH 1/4] always halt non-bsp cpu.

2009-06-03 Thread Jan Kiszka
Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:32:04AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:01:00AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Tue, Jun 02, 2009 at 10:35:47PM +0200, Jan Kiszka wrote: Glauber Costa wrote: This is not kvm specific,

Re: [PATCH 1/4] always halt non-bsp cpu.

2009-06-03 Thread Gleb Natapov
On Wed, Jun 03, 2009 at 01:01:29PM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:32:04AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Wed, Jun 03, 2009 at 12:01:00AM +0200, Jan Kiszka wrote: Glauber Costa wrote: On Tue, Jun 02, 2009 at 10:35:47PM +0200,

[ kvm-Bugs-2800447 ] kvm fails to build against out of tree kernel builds+patch

2009-06-03 Thread SourceForge.net
Bugs item #2800447, was opened at 2009-06-03 11:17 Message generated for change (Tracker Item Submitted) made by tuxjay You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2800447group_id=180599 Please note that this message will contain a full copy of the

[ kvm-Bugs-2800447 ] kvm fails to build against out of tree kernel builds+patch

2009-06-03 Thread SourceForge.net
Bugs item #2800447, was opened at 2009-06-03 11:17 Message generated for change (Comment added) made by tuxjay You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2800447group_id=180599 Please note that this message will contain a full copy of the comment

Re: [KVM_AUTOTEST] unattended installs

2009-06-03 Thread Lucas Meneghel Rodrigues
On Tue, 2009-06-02 at 20:25 -0500, Charles Duffy wrote: David Huff wrote: I had some issues getting the guest to read a vvfat floppy passed to the guest via qemu option -fda fat:floppy:rw:./floppy it would pass the dir as a vfat disk and the guest could mount it, however guest could

Re: [KVM-RFC PATCH 0/2] irqfd: use POLLHUP notification for close()

2009-06-03 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Tue, Jun 02, 2009 at 01:41:05PM -0400, Gregory Haskins wrote: And having close not clean up the state unless you do an ioctl first is very messy IMO - I don't think you'll find any such examples in kernel. I agree, and that is why I am advocating

[ kvm-Bugs-2800447 ] kvm fails to build against out of tree kernel builds+patch

2009-06-03 Thread SourceForge.net
Bugs item #2800447, was opened at 2009-06-03 13:17 Message generated for change (Comment added) made by kiszka You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2800447group_id=180599 Please note that this message will contain a full copy of the comment

[PATCH] revert part of 3db8b916e merge

2009-06-03 Thread Gleb Natapov
kvm_*_mpstate() cannot be called from kvm_arch_*_registers() since kvm_arch_*_registers() sometimes called from io thread, but kvm_*_mpstate() can be called only by cpu thread. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/qemu-kvm.c b/qemu-kvm.c index 68d3b92..7ed1e06 100644 ---

Re: [PATCH] revert part of 3db8b916e merge

2009-06-03 Thread Avi Kivity
Gleb Natapov wrote: kvm_*_mpstate() cannot be called from kvm_arch_*_registers() since kvm_arch_*_registers() sometimes called from io thread, but kvm_*_mpstate() can be called only by cpu thread. I really dislike vcpu functions to be called from outside the vcpu thread. Who are the

Re: [PATCH] revert part of 3db8b916e merge

2009-06-03 Thread Gleb Natapov
On Wed, Jun 03, 2009 at 03:16:46PM +0300, Avi Kivity wrote: Gleb Natapov wrote: kvm_*_mpstate() cannot be called from kvm_arch_*_registers() since kvm_arch_*_registers() sometimes called from io thread, but kvm_*_mpstate() can be called only by cpu thread. I really dislike vcpu

[ kvm-Bugs-2800447 ] kvm fails to build against out of tree kernel builds+patch

2009-06-03 Thread SourceForge.net
Bugs item #2800447, was opened at 2009-06-03 13:17 Message generated for change (Comment added) made by kiszka You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2800447group_id=180599 Please note that this message will contain a full copy of the comment

[PATCH] fix detection of kernel source directory

2009-06-03 Thread James Pike
Fix detection of kernel source directory when it is different to build directory. Signed-off-by: James Pike ja...@chilon.net diff --git a/configure b/configure index e01ba98..c3b7a5f 100755 --- a/configure +++ b/configure @@ -91,7 +91,7 @@ arch=${arch%%-*} # see if we have split build and

[PATCH] fix include paths when the kernel source and build directory are different

2009-06-03 Thread James Pike
Use correct architecture includes when kernel source and build directory are different. Signed-off-by: James Pike ja...@chilon.net diff --git a/Makefile b/Makefile index 95e4c81..ad08c45 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,9 @@ all:: prerequisite # include header priority 1)

Re: Windows Server 2008 VM performance

2009-06-03 Thread Andrew Theurer
Avi Kivity wrote: Andrew Theurer wrote: Is there a virtio_block driver to test? There is, but it isn't available yet. OK. Can I assume a better virtio_net driver is in the works as well? Can we find the root cause of the exits (is there a way to get stack dump or something that can

Re: [KVM-RFC PATCH 2/2] kvm: use POLLHUP to close an irqfd instead of an explicit ioctl

2009-06-03 Thread Paul E. McKenney
On Tue, Jun 02, 2009 at 09:53:29PM -0400, Gregory Haskins wrote: Paul E. McKenney wrote: On Tue, Jun 02, 2009 at 02:23:14PM -0400, Gregory Haskins wrote: Paul E. McKenney wrote: On Tue, Jun 02, 2009 at 11:15:38AM -0400, Gregory Haskins wrote: Assigning an irqfd

Re: [PATCH 2/2] Add serial number support for virtio_blk, V4

2009-06-03 Thread john cooper
Jens Axboe wrote: On Mon, Jun 01 2009, Rusty Russell wrote: On Fri, 29 May 2009 01:45:27 pm john cooper wrote: virtio_blk-serial-4.patch Hate to ask dumb questions, but is there a scsi equivalent of this? It'd be nice if we could avoid being ATA-specific in the long run... SCSI has mode

Re: [KVM-RFC PATCH 2/2] kvm: use POLLHUP to close an irqfd instead of an explicit ioctl

2009-06-03 Thread Gregory Haskins
Thanks again for the review, Paul. IIUC, you think the design is ok as it is. Davide, In light of this, would you like to submit patch 1/2 formally with your SOB at your earliest convenience? Or would you prefer that I submit it and you can simply ack it? Either is fine with me. -Greg

Re: [KVM-RFC PATCH 2/2] kvm: use POLLHUP to close an irqfd instead of an explicit ioctl

2009-06-03 Thread Davide Libenzi
On Wed, 3 Jun 2009, Gregory Haskins wrote: Thanks again for the review, Paul. IIUC, you think the design is ok as it is. Davide, In light of this, would you like to submit patch 1/2 formally with your SOB at your earliest convenience? Or would you prefer that I submit it and you

Re: Windows Server 2008 VM performance

2009-06-03 Thread Marcelo Tosatti
On Wed, Jun 03, 2009 at 09:21:16AM -0500, Andrew Theurer wrote: Avi Kivity wrote: Andrew Theurer wrote: Is there a virtio_block driver to test? There is, but it isn't available yet. OK. Can I assume a better virtio_net driver is in the works as well? Can we find the root cause of the

Re: [git pull request] kvm-autotest: sync with upstream Autotest SVN

2009-06-03 Thread Uri Lublin
On 06/01/2009 11:41 PM, Eduardo Habkost wrote: Now that kvm-autotest was included on upstream Autotest SVN repository[1], the following pull request is a proposal to sync kvm-autotest.git Autotest SVN trunk, while keeping the kvm-autotest.git history. I have set up a git-svn mirror of the

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Michael Goldish
- Avi Kivity a...@redhat.com wrote: Michael Goldish wrote: - What if we're interested in the status for some reason? Its value may indicate what went wrong with the child process. Put it in the exception string. But I want its value to be

Re: [patch] VMX Unrestricted mode support

2009-06-03 Thread Nitin A Kamble
Hi Avi, I find that the qemu processor reset state is not per the IA32 processor specifications. (Sections 8.1.1 of http://www.intel.com/Assets/PDF/manual/253668.pdf) In qemu-kvm.git in file target-i386/helper.c in function cpu_reset the segment registers are initialized as follows:

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Avi Kivity
Michael Goldish wrote: I think it's very rare to want to let the test continue even if some command fails. Can you give examples? Some commands are not critical, like one that converts the screendumps from PPM to PNG format. We don't want to fail the test if you don't have ImageMagick

Re: [patch] VMX Unrestricted mode support

2009-06-03 Thread Avi Kivity
Nitin A Kamble wrote: Hi Avi, I find that the qemu processor reset state is not per the IA32 processor specifications. (Sections 8.1.1 of http://www.intel.com/Assets/PDF/manual/253668.pdf) In qemu-kvm.git in file target-i386/helper.c in function cpu_reset the segment registers are initialized

[PATCH 1/4] avoid halted state for in kernel irqchip

2009-06-03 Thread Glauber Costa
This patch is part of a series that tries to provide a kvm-free apic implementation. In the last interation, Jan pointed out that halted state management with in kernel irqchip gets quite messy. I don't disagree. It broke this series specifically, as init IPIs had the halted state set. The

[PATCH 2/4] sipi and init: move common code

2009-06-03 Thread Glauber Costa
provide functions to query and reset the state of sipi and init in cpu's apic. This way we can move the kvm specific functions out of the apic path. Signed-off-by: Glauber Costa glom...@redhat.com --- cpu-defs.h |2 -- hw/apic.c | 49 -

[PATCH 4/4] provide a kvm-free implementation of ioapic

2009-06-03 Thread Glauber Costa
Also, provide a kvm_ioapic that does not depend highly on common code. Signed-off-by: Glauber Costa glom...@redhat.com --- hw/ioapic.c | 162 +- hw/pc.c |7 ++- hw/pc.h |1 + 3 files changed, 110 insertions(+), 60

[PATCH 3/4] provide a kvm-free implementation of apic

2009-06-03 Thread Glauber Costa
Also, provide a kvm_apic that does not depend highly on common code. Signed-off-by: Glauber Costa glom...@redhat.com --- hw/apic.c | 241 ++-- hw/pc.c|7 ++- hw/pc.h|1 + qemu-kvm-x86.c |5 +- 4 files changed,

Re: [PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-06-03 Thread Michael Goldish
- Avi Kivity a...@redhat.com wrote: Michael Goldish wrote: I think it's very rare to want to let the test continue even if some command fails. Can you give examples? Some commands are not critical, like one that converts the screendumps from PPM to PNG format. We

Re: [PATCH 0/4] kvm free implementation of apic/ioapic

2009-06-03 Thread Jan Kiszka
Glauber Costa wrote: Same series already sent. Jan spotted a problem, and my lazyness found a way to bypass it, so it does not exist. A guest survived the following actions after this series is applied: * smp boot * smp reboot * migrate * reboot migrated guest. I can confirm that this

Re: [PATCH 1/4] avoid halted state for in kernel irqchip

2009-06-03 Thread Gleb Natapov
On Wed, Jun 03, 2009 at 02:25:41PM -0400, Glauber Costa wrote: This patch is part of a series that tries to provide a kvm-free apic implementation. In the last interation, Jan pointed out that halted state management with in kernel irqchip gets quite messy. I don't disagree. It broke this

Re: [PATCH 2/4] sipi and init: move common code

2009-06-03 Thread Gleb Natapov
On Wed, Jun 03, 2009 at 02:25:42PM -0400, Glauber Costa wrote: @@ -407,12 +393,12 @@ static int kvm_main_loop_cpu(CPUState *env) if (env-interrupt_request (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) env-halted = 0; if (!kvm_irqchip_in_kernel(kvm_context)) { - if

[KVM PATCH v5 0/2] iosignalfd

2009-06-03 Thread Gregory Haskins
(Applies to kvm.git/master:25deed73) This is v5 of the series. For more details, please see the header to patch 2/2. This series has been tested against the kvm-eventfd unit test, and appears to be functioning properly. You can download this test here:

[KVM PATCH v5 1/2] kvm: make io_bus interface more robust

2009-06-03 Thread Gregory Haskins
Today kvm_io_bus_regsiter_dev() returns void and will internally BUG_ON if it fails. We want to create dynamic MMIO/PIO entries driven from userspace later in the series, so we need to enhance the code to be more robust with the following changes: 1) Add a return value to the registration

[KVM PATCH v5 2/2] kvm: add iosignalfd support

2009-06-03 Thread Gregory Haskins
iosignalfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a guest. Host userspace can register any arbitrary IO address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Normal IO requires a

[PATCH v3] qemu-kvm: add iosignalfd support

2009-06-03 Thread Gregory Haskins
An iosignalfd allows an eventfd to attach to a specific PIO/MMIO region in the guest. Any guest-writes to that region will trigger an eventfd signal. [ This userspace patch coorelates to the kvm.git patches, v5, which you can find here: http://lkml.org/lkml/2009/6/3/433, and are based on top

Re: [KVM PATCH v5 2/2] kvm: add iosignalfd support

2009-06-03 Thread Gregory Haskins
Hi Paul, Sorry to bug you again, but here is yet another RCU related patch. See inline Gregory Haskins wrote: iosignalfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a guest. Host userspace can register any arbitrary IO address with a

Re: [PATCH 1/4] avoid halted state for in kernel irqchip

2009-06-03 Thread Glauber Costa
On Wed, Jun 03, 2009 at 10:50:59PM +0300, Gleb Natapov wrote: On Wed, Jun 03, 2009 at 02:25:41PM -0400, Glauber Costa wrote: This patch is part of a series that tries to provide a kvm-free apic implementation. In the last interation, Jan pointed out that halted state management with in

Re: [PATCH 2/4] sipi and init: move common code

2009-06-03 Thread Glauber Costa
On Wed, Jun 03, 2009 at 10:53:05PM +0300, Gleb Natapov wrote: On Wed, Jun 03, 2009 at 02:25:42PM -0400, Glauber Costa wrote: @@ -407,12 +393,12 @@ static int kvm_main_loop_cpu(CPUState *env) if (env-interrupt_request (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) env-halted = 0;

Re: [PATCH 2/2] Add serial number support for virtio_blk, V4a

2009-06-03 Thread john cooper
This patch extracts the opaque data from pci i/o region 0 via the added VIRTIO_BLK_F_IDENTIFY field. By convention this data takes the form of that returned by an ATA IDENTIFY DEVICE command, however the driver (except for structure size) makes no interpretation of the data. The structure data

[PATCH 4/4] provide a kvm-free implementation of ioapic

2009-06-03 Thread Glauber Costa
Also, provide a kvm_ioapic that does not depend highly on common code. Signed-off-by: Glauber Costa glom...@redhat.com --- hw/ioapic.c | 162 +- hw/pc.c |7 ++- hw/pc.h |1 + 3 files changed, 110 insertions(+), 60

[PATCH 2/4] sipi and init: move common code

2009-06-03 Thread Glauber Costa
provide functions to query and reset the state of sipi and init in cpu's apic. This way we can move the kvm specific functions out of the apic path. Signed-off-by: Glauber Costa glom...@redhat.com --- cpu-defs.h |2 -- hw/apic.c | 49 -

Re: [KVM PATCH v5 0/2] iosignalfd

2009-06-03 Thread Gregory Haskins
Gregory Haskins wrote: (Applies to kvm.git/master:25deed73) This is v5 of the series. For more details, please see the header to patch 2/2. This series has been tested against the kvm-eventfd unit test, and appears to be functioning properly. You can download this test here:

Re: [KVM PATCH v5 2/2] kvm: add iosignalfd support

2009-06-03 Thread Gregory Haskins
Gregory Haskins wrote: iosignalfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a guest. Host userspace can register any arbitrary IO address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling.

Re: [KVM PATCH v4 3/3] kvm: add iosignalfd support

2009-06-03 Thread Gregory Haskins
Mark McLoughlin wrote: On Wed, 2009-05-27 at 13:40 -0400, Gregory Haskins wrote: Mark McLoughlin wrote: On Wed, 2009-05-27 at 15:11 +0300, Avi Kivity wrote: Multiple cookies on the same address are required by virtio. You can't mux since the data doesn't go anywhere.

Re: [KVM PATCH v5 2/2] kvm: add iosignalfd support

2009-06-03 Thread Paul E. McKenney
On Wed, Jun 03, 2009 at 04:17:49PM -0400, Gregory Haskins wrote: iosignalfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a guest. Host userspace can register any arbitrary IO address with a corresponding eventfd and then pass the eventfd to a

[RFC] CPU hard limits

2009-06-03 Thread Bharata B Rao
Hi, This is an RFC about the CPU hard limits feature where I have explained the need for the feature, the proposed plan and the issues around it. Before I come up with an implementation for hard limits, I would like to know community's thoughts on this scheduler enhancement and any feedback and