Re: [Qemu-devel] [PATCH V4 10/10] NUMA: show host memory policy info in info numa command

2013-07-05 Thread Eduardo Habkost
On Thu, Jul 04, 2013 at 05:53:17PM +0800, Wanlong Gao wrote: Show host memory policy of nodes in the info numa monitor command. After this patch, the monitor command info numa will show the information like following if the host numa support is enabled: (qemu) info numa 2 nodes

Re: [Qemu-devel] [PATCH V4 02/10] NUMA: Add numa_info structure to contain numa nodes info

2013-07-05 Thread Eduardo Habkost
...@cn.fujitsu.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- cpus.c | 2 +- hw/i386/pc.c| 4 ++-- hw/net/eepro100.c | 1 - include/sysemu/sysemu.h | 8 ++-- monitor.c | 2 +- vl.c| 24

Re: [Qemu-devel] [PATCH V4 01/10] NUMA: Support multiple CPU ranges on -numa option

2013-07-08 Thread Eduardo Habkost
On Mon, Jul 08, 2013 at 01:02:41PM -0600, Eric Blake wrote: On 07/05/2013 12:41 PM, Eduardo Habkost wrote: On Thu, Jul 04, 2013 at 05:53:08PM +0800, Wanlong Gao wrote: From: Bandan Das b...@redhat.com This allows us to use the cpus property multiple times to specify multiple cpu (ranges

Re: [Qemu-devel] [PATCH RFC qom-cpu] linux-user: Avoid conditional cpu_reset()

2013-07-10 Thread Eduardo Habkost
with resetting twice on startup, so drop the #ifdef. Suggested-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Andreas Färber afaer...@suse.de Cc: Eduardo Habkost ehabk...@redhat.com --- This had been discussed as a possible cleanup for the #ifdef. I am uncertain whether we should do

Re: [Qemu-devel] [PATCH RFC qom-cpu] linux-user: Avoid conditional cpu_reset()

2013-07-10 Thread Eduardo Habkost
On Wed, Jul 10, 2013 at 07:51:32PM +0100, Peter Maydell wrote: On 10 July 2013 19:43, Eduardo Habkost ehabk...@redhat.com wrote: On Wed, Jul 10, 2013 at 06:30:38PM +0200, Andreas Färber wrote: Some CPUs reset as part of cpu_init(), some others were reset afterwards, some not at all. While

[Qemu-devel] [RFC 0/3 v2] qdev: handle global properties after all instance_init calls

2013-07-10 Thread Eduardo Habkost
/gmane.comp.emulators.kvm.devel/112380 (Minutes of last call where this was discussed) Eduardo Habkost (3): tests: unit tests for qdev global-properties handling qom: introduce post_init() function qdev: set globals on post_init() function hw/core/qdev.c | 10 ++- include/qom/object.h

[Qemu-devel] [RFC 2/3 v2] qom: introduce post_init() function

2013-07-10 Thread Eduardo Habkost
This will allow classes to specify a function to be called after all instance_init() functions were called. This will be used by DeviceState to call qdev_prop_set_globals() at the right moment. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- include/qom/object.h | 3 +++ qom/object.c

[Qemu-devel] [RFC 1/3 v2] tests: unit tests for qdev global-properties handling

2013-07-10 Thread Eduardo Habkost
This tests the qdev global-properties handling code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- tests/.gitignore | 1 + tests/Makefile | 7 +++ tests/test-qdev-global-props.c | 109 + 3 files changed, 117

[Qemu-devel] [RFC 3/3 v2] qdev: set globals on post_init() function

2013-07-10 Thread Eduardo Habkost
This way, properties registered in the instance_init() function of children classes will be handled properly by qdev_prop_set_globals(), too. Includes a new unit test for the new functionality. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/core/qdev.c | 10

Re: [Qemu-devel] [PATCH V4 00/10] Add support for binding guest numa nodes to host numa nodes

2013-07-11 Thread Eduardo Habkost
On Thu, Jul 11, 2013 at 06:32:48PM +0800, Peter Huang(Peng) wrote: Hi,Wanlong From the patch discription below, seems that qemu numa only support cpu/memory node binding. As we know, binding is not the common usage due to VM migration may happen or the load balance would be disabled.

Re: [Qemu-devel] [RFC 2/3 v2] qom: introduce post_init() function

2013-07-11 Thread Eduardo Habkost
On Thu, Jul 11, 2013 at 08:29:15AM +0200, Igor Mammedov wrote: On Wed, 10 Jul 2013 17:08:41 -0300 Eduardo Habkost ehabk...@redhat.com wrote: This will allow classes to specify a function to be called after all instance_init() functions were called. This will be used by DeviceState

Re: [Qemu-devel] [RFC 3/3 v2] qdev: set globals on post_init() function

2013-07-12 Thread Eduardo Habkost
On Thu, Jul 11, 2013 at 08:48:44AM +0200, Igor Mammedov wrote: [...] #define TYPE_STATIC_PROPS static_prop_type @@ -80,7 +82,7 @@ static void test_static_prop(void) static void test_static_globalprop(void) { MyType *mt; -GlobalProperty props[] = { +static

Re: [Qemu-devel] [PATCH] fix guest physical bits to match host, to go beyond 1TB guests

2013-07-16 Thread Eduardo Habkost
On Tue, Jul 16, 2013 at 07:22:01PM +0200, Andrea Arcangeli wrote: Without this patch the guest physical bits are advertised as 40, not 44 or more depending on the hardware capability of the host. That leads to guest kernel crashes with injection of page faults 9 (see oops: 0009) as bits

Re: [Qemu-devel] [PATCH] fix guest physical bits to match host, to go beyond 1TB guests

2013-07-16 Thread Eduardo Habkost
On Tue, Jul 16, 2013 at 07:46:14PM +0200, Paolo Bonzini wrote: Il 16/07/2013 19:38, Eduardo Habkost ha scritto: On Tue, Jul 16, 2013 at 07:22:01PM +0200, Andrea Arcangeli wrote: Without this patch the guest physical bits are advertised as 40, not 44 or more depending on the hardware

Re: [Qemu-devel] [PATCH] fix guest physical bits to match host, to go beyond 1TB guests

2013-07-16 Thread Eduardo Habkost
On Tue, Jul 16, 2013 at 09:24:30PM +0200, Paolo Bonzini wrote: Il 16/07/2013 20:11, Eduardo Habkost ha scritto: For physical bit size, what about extending it in a backwards-compatible way? Something like this: *eax = 0x0003000; /* 48 bits virtual */ if (ram_size 1TB

Re: [Qemu-devel] [PATCH] fix guest physical bits to match host, to go beyond 1TB guests

2013-07-17 Thread Eduardo Habkost
On Wed, Jul 17, 2013 at 10:09:01AM +0200, Paolo Bonzini wrote: Il 16/07/2013 21:42, Eduardo Habkost ha scritto: On Tue, Jul 16, 2013 at 09:24:30PM +0200, Paolo Bonzini wrote: Il 16/07/2013 20:11, Eduardo Habkost ha scritto: For physical bit size, what about extending it in a backwards

Re: [Qemu-devel] [PATCH] fix guest physical bits to match host, to go beyond 1TB guests

2013-07-17 Thread Eduardo Habkost
On Wed, Jul 17, 2013 at 06:19:28PM +0300, Gleb Natapov wrote: On Tue, Jul 16, 2013 at 04:42:38PM -0300, Eduardo Habkost wrote: On Tue, Jul 16, 2013 at 09:24:30PM +0200, Paolo Bonzini wrote: Il 16/07/2013 20:11, Eduardo Habkost ha scritto: For physical bit size, what about extending

Re: [Qemu-devel] [ [PATCH]] nVMX: Initialize IA32_FEATURE_CONTROL MSR in reset and migration

2013-07-18 Thread Eduardo Habkost
On Tue, Jul 16, 2013 at 03:01:58PM +0300, Gleb Natapov wrote: On Tue, Jul 16, 2013 at 07:56:25PM +0800, Arthur Chunqi Li wrote: On Tue, Jul 16, 2013 at 7:42 PM, Gleb Natapov g...@redhat.com wrote: On Sun, Jul 07, 2013 at 11:13:37PM +0800, Arthur Chunqi Li wrote: The recent KVM patch adds

Re: [Qemu-devel] [PATCH 1/2] Fix real mode guest migration

2013-07-22 Thread Eduardo Habkost
On Mon, Jul 22, 2013 at 12:14:25PM +0200, Paolo Bonzini wrote: Il 22/07/2013 12:10, Orit Wasserman ha scritto: As discussed offlist, I would prefer to have this in the kernel since that's where the bug is. Gleb disagrees. As this is a migration bug I prefer to fix it in the migration

Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-22 Thread Eduardo Habkost
On Mon, Jul 22, 2013 at 07:24:24PM +0800, Peter Huang(Peng) wrote: Hi, Everyone I have been encountered a problem recently. My box uses Nehalem E5520 CPU, and this model doesn't support x2apic feature. I created a VM on KVM, and uses cpu mode=pass-through, I can get the right cpu model from

Re: [Qemu-devel] [PATCH 2/2] Add monitor command mem-nodes

2013-06-13 Thread Eduardo Habkost
On Thu, Jun 13, 2013 at 09:40:14AM +0800, Wanlong Gao wrote: On 06/11/2013 09:40 PM, Eduardo Habkost wrote: On Tue, Jun 11, 2013 at 03:22:13PM +0800, Wanlong Gao wrote: On 06/05/2013 09:46 PM, Eduardo Habkost wrote: On Wed, Jun 05, 2013 at 11:58:25AM +0800, Wanlong Gao wrote: Add monitor

Re: [Qemu-devel] [PATCH 2/2] Add monitor command mem-nodes

2013-06-14 Thread Eduardo Habkost
On Thu, Jun 13, 2013 at 08:04:00PM -0500, Anthony Liguori wrote: Eduardo Habkost ehabk...@redhat.com writes: On Wed, Jun 05, 2013 at 07:57:42AM -0500, Anthony Liguori wrote: Wanlong Gao gaowanl...@cn.fujitsu.com writes: Add monitor command mem-nodes to show the huge mapped memory

Re: [Qemu-devel] [PATCH 3/7] NUMA: parse guest numa nodes memory policy

2013-06-18 Thread Eduardo Habkost
On Tue, Jun 18, 2013 at 11:20:37AM +0200, Paolo Bonzini wrote: [...] Also, please use QemuOpts instead of yet another homegrown parser. Eduardo, I think you had the most recent attempt to convert -numa to QemuOpts? I had one, but I believe it is more complex than it should have been. I was

Re: [Qemu-devel] [PATCH v3] vl.c: Support multiple CPU ranges on -numa option

2013-06-19 Thread Eduardo Habkost
On Wed, Jun 19, 2013 at 01:42:52PM +0200, Igor Mammedov wrote: On Tue, 18 Jun 2013 16:09:49 -0400 Bandan Das b...@redhat.com wrote: This allows us to use the cpu property multiple times to specify multiple cpu (ranges) to the -numa option : -numa node,cpu=1,cpu=2,cpu=4 or -numa

Re: [Qemu-devel] [PATCH v3] vl.c: Support multiple CPU ranges on -numa option

2013-06-20 Thread Eduardo Habkost
On Thu, Jun 20, 2013 at 11:52:42AM +0200, Paolo Bonzini wrote: Il 20/06/2013 11:30, Igor Mammedov ha scritto: So, basically the format seemed easier to work with if we are thinking of using QemuOpts for -numa. Using -cpu rather than cpus probably makes it less ambiguous as

Re: [Qemu-devel] [PATCH 22/26] kvmclock: QOM'ify some more

2013-06-24 Thread Eduardo Habkost
On Sat, Jun 22, 2013 at 04:50:34PM +0800, Hu Tao wrote: Introduce type constant and avoid DO_UPCAST(). Cc: qemu-devel@nongnu.org Cc: Andreas Färber afaer...@suse.de Cc: Paolo Bonzini pbonz...@redhat.com Cc: Eduardo Habkost ehabk...@redhat.com Cc: Igor Mammedov imamm...@redhat.com Cc

Re: [Qemu-devel] [PATCH 01/26] ohci: use realize for ohci

2013-06-24 Thread Eduardo Habkost
On Sat, Jun 22, 2013 at 04:50:13PM +0800, Hu Tao wrote: Cc: Gerd Hoffmann kra...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/usb/hcd-ohci.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index

Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock

2013-06-24 Thread Eduardo Habkost
On Sat, Jun 22, 2013 at 04:50:33PM +0800, Hu Tao wrote: Cc: qemu-devel@nongnu.org Cc: Andreas Färber afaer...@suse.de Cc: Paolo Bonzini pbonz...@redhat.com Cc: Anthony Liguori aligu...@us.ibm.com Cc: Igor Mammedov imamm...@redhat.com Cc: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Hu

Re: [Qemu-devel] [PATCH 03/15] target-i386: cpu: convert 'stepping' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:34PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b

Re: [Qemu-devel] [PATCH 01/15] target-i386: cpu: convert 'family' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:32PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/target-i386

Re: [Qemu-devel] [PATCH 05/15] target-i386: cpu: convert 'xlevel' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:36PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/target-i386

Re: [Qemu-devel] [PATCH 02/15] target-i386: cpu: convert 'model' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:33PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b

Re: [Qemu-devel] [PATCH 08/15] target-i386: cpu: convert 'tsc-frequency' to static property

2013-06-24 Thread Eduardo Habkost
of keeping it signed? We already reject negative values. As this patch just converts the current code/semantics to use static properties, and the change to uint64 could be done in a separate patch: Reviewed-by: Eduardo Habkost ehabk...@redhat.com +.get = x86_cpuid_get_tsc_freq, +.set

Re: [Qemu-devel] [PATCH 06/15] target-i386: cpu: convert 'vendor' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:37PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 31 --- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 07/15] target-i386: cpu: convert 'model-id' to static property

2013-06-24 Thread Eduardo Habkost
-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 31 ++- 1 files changed, 22 insertions(+), 9 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 21e7334..9f6fe06 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1344,7

Re: [Qemu-devel] [PATCH 04/15] target-i386: cpu: convert 'level' to static property

2013-06-24 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:35PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/target-i386

[Qemu-devel] [RFC] i386: cpu: Always report power-of-2 maximum core IDs

2013-06-24 Thread Eduardo Habkost
-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu-qom.h | 4 +++- target-i386/cpu.c | 23 --- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/target-i386/cpu-qom.h b/target-i386/cpu-qom.h index 37c61e7..c619f3b 100644 --- a/target-i386/cpu-qom.h

Re: [Qemu-devel] [PATCH 21/26] kvmclock: use realize for kvmclock

2013-06-25 Thread Eduardo Habkost
On Tue, Jun 25, 2013 at 10:20:08AM +0800, Hu Tao wrote: [...] Is TYPE_SYS_BUS_DEVICE guaranteed to never override -realize() itself? From DeviceClass documentation: * If a type derived directly from TYPE_DEVICE implements @realize, it does * not need to implement @init and

Re: [Qemu-devel] [PATCH 09/15] target-i386: move hyperv_* static globals to CPUState

2013-06-25 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:40PM +0200, Igor Mammedov wrote: - since hyperv_* helper functions are used only in target-i386/kvm.c move them there as static helpers Signed-off-by: Igor Mammedov imamm...@redhat.com Requestd-By: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Eduardo

Re: [Qemu-devel] [PATCH 10/15] target-i386: convert 'hv_spinlocks' to static property

2013-06-25 Thread Eduardo Habkost
On Wed, Jun 05, 2013 at 03:18:41PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com --- [...] @@ -1632,6 +1677,7 @@ static void cpu_x86_parse_featurestr(X86CPU *cpu, char *features, Error **errp) } else if (!strcmp(featurestr, hv-spinlocks)) {

Re: [Qemu-devel] [PATCH 10/15] target-i386: convert 'hv_spinlocks' to static property

2013-06-25 Thread Eduardo Habkost
On Tue, Jun 25, 2013 at 05:30:50PM -0300, Eduardo Habkost wrote: On Wed, Jun 05, 2013 at 03:18:41PM +0200, Igor Mammedov wrote: Signed-off-by: Igor Mammedov imamm...@redhat.com --- [...] @@ -1632,6 +1677,7 @@ static void cpu_x86_parse_featurestr(X86CPU *cpu, char *features, Error **errp

[Qemu-devel] [PATCH 8/9 v2] savevm: Small comment about why timer QEMUFile/VMState code is in savevm.c

2013-11-29 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Changes v1 - v2: * Fix typo: qemu-file.c - qemu-timer.c --- savevm.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 8eeb5ef..a7dbe18 100644 --- a/savevm.c +++ b/savevm.c @@ -166,7 +166,9

Re: [Qemu-devel] [PATCH v2 2/4] i440fx-test: give each GTest case its own qtest

2013-11-29 Thread Eduardo Habkost
On Thu, Nov 28, 2013 at 07:09:13PM +0100, Laszlo Ersek wrote: The current two GTest cases, /i440fx/defaults and /i440fx/pam can share a qemu process, but the next two cases will need dedicated instances. It is messy (and order-dependent) to dynamically configure GTest cases one by one to

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: remove (max_cpus 255) check from smp_parse

2013-12-03 Thread Eduardo Habkost
On Tue, Dec 03, 2013 at 11:44:19AM +0100, Igor Mammedov wrote: On Mon, 02 Dec 2013 23:09:55 +0100 Andreas Färber afaer...@suse.de wrote: Am 02.12.2013 18:06, schrieb Michael Tokarev: 25.11.2013 07:39, Alexey Kardashevskiy wrote: Since modern POWER7/POWER8 chips can have more that 256

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: remove (max_cpus 255) check from smp_parse

2013-12-03 Thread Eduardo Habkost
On Tue, Dec 03, 2013 at 02:30:48PM +0100, Andreas Färber wrote: Am 03.12.2013 00:03, schrieb Alexey Kardashevskiy: On 12/03/2013 09:09 AM, Andreas Färber wrote: Am 02.12.2013 18:06, schrieb Michael Tokarev: 25.11.2013 07:39, Alexey Kardashevskiy wrote: Since modern POWER7/POWER8 chips can

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vl: remove (max_cpus 255) check from smp_parse

2013-12-04 Thread Eduardo Habkost
On Wed, Dec 04, 2013 at 04:50:59PM +1100, Alexey Kardashevskiy wrote: On 12/04/2013 01:47 AM, Eduardo Habkost wrote: On Tue, Dec 03, 2013 at 02:30:48PM +0100, Andreas Färber wrote: Am 03.12.2013 00:03, schrieb Alexey Kardashevskiy: On 12/03/2013 09:09 AM, Andreas Färber wrote: Am

[Qemu-devel] [qemu-kvm RHEL7 PATCH] Add support statement to -help output

2013-12-04 Thread Eduardo Habkost
Bugzilla: 972773 Brew scratch build: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6676272 Add support statement to -help output, reporting direct qemu-kvm usage as unsupported by Red Hat, and advising users to use libvirt instead. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

Re: [Qemu-devel] [qemu-kvm RHEL7 PATCH] Add support statement to -help output

2013-12-04 Thread Eduardo Habkost
On Wed, Dec 04, 2013 at 11:51:17AM -0700, Eric Blake wrote: On 12/04/2013 11:42 AM, Eduardo Habkost wrote: Bugzilla: 972773 Add support statement to -help output, reporting direct qemu-kvm usage as unsupported by Red Hat, and advising users to use libvirt instead. Signed-off

Re: [Qemu-devel] [PATCH 0/7] x86 CPU subclasses, take 6

2013-12-09 Thread Eduardo Habkost
Ping? No comments, even about the first few patches (that are fairly simple)? On Wed, Nov 27, 2013 at 05:34:02PM -0200, Eduardo Habkost wrote: I want to try to get this in 1.8, because I have found one additional use-case for the new subclasses: libvirt needs to be able to query details

Re: [Qemu-devel] [PATCH V17 00/11] Add support for binding guest numa nodes to host numa nodes

2013-12-09 Thread Eduardo Habkost
On Fri, Dec 06, 2013 at 10:48:04AM +0100, Paolo Bonzini wrote: Il 06/12/2013 10:31, Wanlong Gao ha scritto: I think patches 1-4 and 7 are fine. For the rest, I'd rather wait for Igor's patches and try to integrate with Igor's memory hotplug patches. So, how about apply them first and

[Qemu-devel] [PATCH] Add bios-256k.bin to BLOBS on Makefile

2013-12-09 Thread Eduardo Habkost
The default machine-type (pc-i440fx-2.0) now requires bios-256k.bin, but make install isn't installing it, so qemu-system-x86_64 won't run out of the box. Add it to BLOBS so it gets installed. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile | 2 +- 1 file changed, 1 insertion

Re: [Qemu-devel] [PATCH V17 01/11] NUMA: move numa related code to new file numa.c

2013-12-10 Thread Eduardo Habkost
On Wed, Dec 04, 2013 at 03:58:49PM +0800, Wanlong Gao wrote: Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com -- Eduardo

Re: [Qemu-devel] [PATCH V17 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-12-10 Thread Eduardo Habkost
CCing libvir-list. On Wed, Dec 04, 2013 at 03:58:50PM +0800, Wanlong Gao wrote: If the total number of the assigned numa nodes memory is not equal to the assigned ram size, it will write the wrong data to ACPI talb, then the guest will ignore the wrong ACPI table and recognize all memory to

[Qemu-devel] [PATCH 1/7 v2] target-i386: Eliminate CONFIG_KVM #ifdefs

2013-12-10 Thread Eduardo Habkost
The compiler is capable of eliminating the KVM-specific function calls as long as the calling function has an assert(kvm_enabled()) line, so we don't need to wrap all KVM-specific code inside #ifdefs. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Changes v2: * Check for __i386__

Re: [Qemu-devel] [PATCH V17 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-12-10 Thread Eduardo Habkost
On Tue, Dec 10, 2013 at 07:03:50PM +0100, Paolo Bonzini wrote: Il 10/12/2013 14:15, Eduardo Habkost ha scritto: If the total number of the assigned numa nodes memory is not equal to the assigned ram size, it will write the wrong data to ACPI talb, then the guest will ignore the wrong

Re: [Qemu-devel] [PATCH 0/8] target-i386: Simplify kvm_cpu_fill_host() and kvm_check_features_against_host()

2013-12-11 Thread Eduardo Habkost
Ping? Any comments? On Sun, Nov 24, 2013 at 05:55:32PM -0200, Eduardo Habkost wrote: This series simplifies kvm_cpu_fill_host() and kvm_check_features_against_host() to simply use FeatureWord feature_word_info loops to fill/check feature words. The initial motivation

Re: [Qemu-devel] [PATCH 1/7 v2] target-i386: Eliminate CONFIG_KVM #ifdefs

2013-12-11 Thread Eduardo Habkost
On Tue, Dec 10, 2013 at 05:36:10PM -0800, Richard Henderson wrote: On 12/10/2013 10:55 AM, Eduardo Habkost wrote: The compiler is capable of eliminating the KVM-specific function calls as long as the calling function has an assert(kvm_enabled()) line, so we don't need to wrap all KVM

[Qemu-devel] [PATCH 1/7 v3] target-i386: Eliminate CONFIG_KVM #ifdefs

2013-12-11 Thread Eduardo Habkost
. Tested to build successfully with CONFIG_KVM disabled, using the following CFLAGS combinations: -DNDEBUG, -DNDEBUG -O', -DNDEBUG -O0, -DNDEBUG -O1, -DNDEBUG -O2. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Changes v2: * Check for __i386__ on host_cpuid() so the code compiles properly

Re: [Qemu-devel] [PATCH] qemu will core dump with -smp 254, sockets=2, cores=3, threads=2

2013-12-16 Thread Eduardo Habkost
On Mon, Dec 16, 2013 at 03:54:57PM +0800, jun muzi wrote: Type error, change smp_cores to nr_cores and change smp_threads to nr_threads. But using smp_cores can work well. As it is not the same with explanatory note, so change it. Signed-off-by: Jun Li junm...@gmail.com ---

Re: [Qemu-devel] [PATCH] qemu will core dump with -smp 254, sockets=2, cores=3, threads=2

2013-12-16 Thread Eduardo Habkost
On Fri, Dec 13, 2013 at 02:10:20AM +0800, lijun wrote: Hi all, when set -smp more than 160, qemu will give the following warning: Warning: Number of SMP cpus requested (161) exceeds the recommended cpus supported by KVM (160) As the above warning, when set -smp

Re: [Qemu-devel] [PATCH qom-cpu 00/16 v10] target-i386: convert CPU features into properties

2013-12-16 Thread Eduardo Habkost
On Mon, Dec 16, 2013 at 04:01:05PM +0100, Igor Mammedov wrote: On Sun, 15 Dec 2013 23:50:47 +0100 Andreas Färber afaer...@suse.de wrote: Am 27.11.2013 23:28, schrieb Igor Mammedov: Igor Mammedov (16): target-i386: cleanup 'foo' feature handling' target-i386: cleanup 'foo=val'

Re: [Qemu-devel] [PATCH] qemu will core dump with -smp 254, , sockets=2, cores=3, threads=2

2013-12-17 Thread Eduardo Habkost
On Tue, Dec 17, 2013 at 11:16:30PM +0800, lijun wrote: As Eric and Eduardo's suggestions, use is_power_of_2 to check whether nr_cores and nr_threads is the power of 2 in function x86_apicid_from_cpu_idx in file target-i386/topology.h. This check is very simple, I prefer add it in a function

[Qemu-devel] [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-07 Thread Eduardo Habkost
Errors when closing the file we just created should not be ignored. I/O errors may happen and qemu-img create should fail in those cases. If we are already exiting due to an error, we will still return the original error number, though. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

[Qemu-devel] [PATCH 0/2] qcow2_create() error handling fixes

2010-10-07 Thread Eduardo Habkost
From: Eduardo Habkost ehabk...@raisama.net Hi, Here are two small fixes on qcow2_create() error handling. Eduardo Habkost (2): fix fd leak on a qcow2_create2() error path check for close() errors on qcow2_create() block/qcow2.c | 11 --- 1 files changed, 8 insertions(+), 3

[Qemu-devel] [PATCH 1/2] fix fd leak on one qcow2_create2() error path

2010-10-07 Thread Eduardo Habkost
When getting an invalid cluster size, the open fd must be closed before qcow2_create() returns an error. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- block/qcow2.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index ee3481b

Re: [Qemu-devel] [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Eduardo Habkost
On Fri, Oct 08, 2010 at 10:28:37AM +0100, Stefan Hajnoczi wrote:  exit_close: -    close(fd); +    cret = close(fd); +    if (ret == 0 cret 0) if (close(fd) 0 ret == 0) { Does the same without variable cret. Yes. I used the variable just for readability. I personally don't like

[Qemu-devel] Re: [PATCH 2/2] check for close() errors on qcow2_create()

2010-10-08 Thread Eduardo Habkost
On Fri, Oct 08, 2010 at 12:14:07PM +0200, Kevin Wolf wrote: Am 07.10.2010 22:25, schrieb Eduardo Habkost: Errors when closing the file we just created should not be ignored. I/O errors may happen and qemu-img create should fail in those cases. If we are already exiting due to an error

[Qemu-devel] [PATCH 4/4] add CONFIG_VMPORT option

2011-02-01 Thread Eduardo Habkost
This allows vmport to be easily enabled or disabled at build time. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile.target|3 ++- default-configs/i386-softmmu.mak |2 ++ default-configs/x86_64-softmmu.mak |2 ++ hw/pc_piix.c

[Qemu-devel] [PATCH 0/4] fix/add CONFIG_* options for VMWare device emulation

2011-02-01 Thread Eduardo Habkost
Hi, This series makes CONFIG_VMWARE_VGA actually work (today we can't disable the option without getting a build error). It also add two new options: CONFIG_VMMOUSE and CONFIG_VMPORT, for vmmouse.o and vmport.o. Eduardo Habkost (4): Add config-devices.h again skip pci_vmsvga_init() calls

[Qemu-devel] [PATCH 3/4] add CONFIG_VMMOUSE option

2011-02-01 Thread Eduardo Habkost
This will allow vmmouse to be disabled at build time if necessary. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile.target|5 - default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/pc.c

[Qemu-devel] [PATCH 2/4] skip pci_vmsvga_init() calls if CONFIG_VMWARE_VGA is disabled

2011-02-01 Thread Eduardo Habkost
work and can't be disabled. I don't see a good way to implement it that wouldn't involve heavily refactoring completely the '-vga' option parsing code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/mips_malta.c |4 hw/pc.c |4 2 files changed, 8 insertions(+), 0

[Qemu-devel] [PATCH 1/4] Add config-devices.h again

2011-02-01 Thread Eduardo Habkost
-timestamp make: *** [subdir-x86_64-softmmu] Error 2 config-devices.h will allow us to add an #ifdef to fix the above error, and other similar cases. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile|7 +-- Makefile.target |2 +- config.h| 11

[Qemu-devel] Re: [PATCH 0/4] fix/add CONFIG_* options for VMWare device emulation

2011-02-02 Thread Eduardo Habkost
On Wed, Feb 02, 2011 at 05:16:23PM +, Blue Swirl wrote: On Wed, Feb 2, 2011 at 7:55 AM, Paolo Bonzini pbonz...@redhat.com wrote: On 02/01/2011 07:10 PM, Blue Swirl wrote: One way to solve this which would preserve the device model would be to add stub devices. For example,

Re: [Qemu-devel] [PATCH 1/4] Add config-devices.h again

2011-02-02 Thread Eduardo Habkost
On Tue, Feb 01, 2011 at 07:14:00PM +0100, Stefan Weil wrote: + #include config-host.h #include config-target.h + +/* We want to include different config files for specific targets + And for the common library. They need a different name because + we don't want to rely in paths */

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. Disable this feature until a better

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Tue, Sep 14, 2010 at 09:24:11AM -0500, Adam Litke wrote: On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: [...] static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f) { -f |= (1

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Tue, Sep 14, 2010 at 11:41:55AM -0300, Eduardo Habkost wrote: On Tue, Sep 14, 2010 at 09:24:11AM -0500, Adam Litke wrote: On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: [...] static uint32_t

[Qemu-devel] [PATCH] [for 0.13] disable guest-provided stats on info balloon command

2010-09-14 Thread Eduardo Habkost
) virtio feature bit, causing issues for migration. Original discussion is available at: http://marc.info/?l=qemu-develm=128448124328314w=2 Signed-off-by: Eduardo Habkost ehabk...@redhat.com Acked-by: Adam Litke a...@us.ibm.com --- diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index 1e4dfdd

[Qemu-devel] [PATCH] disable guest-provided stats on info balloon command

2010-09-14 Thread Eduardo Habkost
) virtio feature bit, causing issues for migration. Original discussion is available at: http://marc.info/?l=qemu-develm=128448124328314w=2 Signed-off-by: Eduardo Habkost ehabk...@redhat.com Acked-by: Adam Litke a...@us.ibm.com --- diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index 1e4dfdd

[Qemu-devel] [PATCH] fix '/' and '|' on russian keymap

2010-10-01 Thread Eduardo Habkost
Patch from Oleg L. Sadov. Removes broken 'slash' and 'bar' definitions (that were duplicated) from the 'ru' keymap. I can't test it myself, but the the fix was reported to be working, at: https://bugzilla.redhat.com/show_bug.cgi?id=580637 Signed-off-by: Eduardo Habkost ehabk...@redhat.com

Testing of russian keymap (was Re: [Qemu-devel] [PATCH] fix '/' and '|' on russian keymap)

2010-10-06 Thread Eduardo Habkost
, Eduardo Habkost wrote: Patch from Oleg L. Sadov. Removes broken 'slash' and 'bar' definitions (that were duplicated) from the 'ru' keymap. I can't test it myself, but the the fix was reported to be working, at: https://bugzilla.redhat.com/show_bug.cgi?id=580637 Signed-off-by: Eduardo

[Qemu-devel] [PATCH] monitor: allow device to be ejected if no disk is inserted

2010-06-01 Thread Eduardo Habkost
, as do_change() calls eject_device() before re-opening the block device, but bdrv_close() is never called. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- monitor.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/monitor.c b/monitor.c index

Re: [Qemu-devel] [PATCH] monitor: allow device to be ejected if no disk is inserted

2010-06-07 Thread Eduardo Habkost
On Mon, Jun 07, 2010 at 02:19:28PM +0200, Markus Armbruster wrote: Kevin Wolf kw...@redhat.com writes: Am 02.06.2010 00:12, schrieb Eduardo Habkost: The first eject command didn't work because the is_inserted() check failed. But does it really make a difference? The guest should not see

Re: [Qemu-devel] [PATCH 2/2] Fix for cdrom un-eject

2009-12-18 Thread Eduardo Habkost
7: ftp://ftp.seagate.com/sff/INF-8090.PDF [ehabkost: solved conficts on monitor.c eject_device()] Signed-off-by: Naphtali Sprei nsp...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com This patch needs to be rebaed to the new monitor printing code. Naphtali, do you plan to do

[Qemu-devel] [PATCH v2 STABLE] monitor: allow device to be ejected if no disk is inserted

2009-12-18 Thread Eduardo Habkost
re-opening the block device, but bdrv_close() is never called. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- monitor.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/monitor.c b/monitor.c index 96f7876..97fbe25 100644 --- a/monitor.c +++ b

[Qemu-devel] Re: [PATCH v2 STABLE] monitor: allow device to be ejected if no disk is inserted

2009-12-18 Thread Eduardo Habkost
On Fri, Dec 18, 2009 at 06:15:27PM -0200, Luiz Capitulino wrote: On Fri, 18 Dec 2009 17:07:43 -0200 Eduardo Habkost ehabk...@redhat.com wrote: When using a file, eject works as expected. But when using a host cdrom device: (qemu) change ide1-cd0 /dev/cdrom (qemu) info block

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
Excerpts from Anthony Liguori's message of Mon Nov 23 00:17:46 -0200 2009: Paolo Bonzini wrote: I don't see how this fixes anything. If you used feature bits, how do you migrate from a version that has a feature bit that an older version doesn't know about? Do you just ignore it? I'd

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
On Mon, Nov 23, 2009 at 03:21:24PM +0100, Paolo Bonzini wrote: On 11/23/2009 02:51 PM, Eduardo Habkost wrote: Right, but I wouldn't be surprised if a user complains that I know that my guest don't use that VM feature, so I want to be able to migrate to an older version anyway. That's a bit

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
Excerpts from Anthony Liguori's message of Mon Nov 23 12:49:23 -0200 2009: Juan Quintela wrote: But if you know substitute qemu-0.11 and qemu-0.12 for RHEL5.4 and RHEL5.4.1, you will see that the code bases are going to be really, really similar. And if any savevm format is changed, it is

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
On Mon, Nov 23, 2009 at 09:00:05AM -0600, Anthony Liguori wrote: snip I think the problem is that you shouldn't be changing the guest visible state in a stable update of qemu. If you change the guest visible state in a stable update, then you won't be able to support live migration

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
Excerpts from Anthony Liguori's message of Mon Nov 23 14:16:39 -0200 2009: Eduardo Habkost wrote: Excerpts from Anthony Liguori's message of Mon Nov 23 12:49:23 -0200 2009: snip In our own stable branch, we do not introduce any savevm changes. I would recommend the same policy

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
On Mon, Nov 23, 2009 at 12:28:16PM -0600, Anthony Liguori wrote: Eduardo Habkost wrote: That may be good enough for upstream Qemu, but IMO for RHEL it is not a realistic policy. If the definition of guest visible state is buggy on the current implementation, we can't drop entirely

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
Excerpts from Anthony Liguori's message of Mon Nov 23 14:44:04 -0200 2009: I don't want to transparently migrate from 5.4.1 to 5.4.0 and have my guest's time start drifting. I specifically want that to fail. If you migrate from 5.4.0 to 5.4.0 or from 5.4.0 to 5.4.1, the guest will also

Re: [Qemu-devel] Re: Live migration protocol, device features, ABIs and other beasts

2009-11-23 Thread Eduardo Habkost
On Mon, Nov 23, 2009 at 01:49:09PM -0600, Anthony Liguori wrote: Eduardo Habkost wrote: On Mon, Nov 23, 2009 at 12:28:16PM -0600, Anthony Liguori wrote: snip After mulling over it a bit, here's what I'd suggest: 1) Integrate VMstate with qdev 2) Introduce a bitmap blacklist

[Qemu-devel] [PATCH] monitor: make 'eject' work when there is no disk on the host drive

2009-11-30 Thread Eduardo Habkost
, as do_change() calls eject_device() before re-opening the block device, but bdrv_close() is never called. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- monitor.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/monitor.c b/monitor.c index 3286ba2

Re: [Qemu-devel] [PATCH] Permit zero-sized qemu_malloc() friends

2009-12-01 Thread Eduardo Habkost
than 200 uses of qemu_mallocz(), qemu_malloc() and qemu_realloc() that don't have an argument of the form sizeof(...) or similar: Acked-by: Eduardo Habkost ehabk...@redhat.com This also makes qemu_realloc(NULL, size) completely equivalent to qemu_malloc(size), and that's a good thing. -- Eduardo

[Qemu-devel] [PATCH 1/2] monitor: allow device to be ejected if no disk is inserted

2009-12-03 Thread Eduardo Habkost
wants the virtual device to be disconnected from the host device. The is_inserted() has another side effect: a memory leak if the change command is used multiple times, as do_change() calls eject_device() before re-opening the block device, but bdrv_close() is never called. Signed-off-by: Eduardo

[Qemu-devel] [PATCH 2/2] Fix for cdrom un-eject

2009-12-03 Thread Eduardo Habkost
eject_device()] Signed-off-by: Naphtali Sprei nsp...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- block.c | 24 block.h |1 + block_int.h |1 + hw/ide/core.c | 35 +-- monitor.c |1 + 5

[Qemu-devel] [PATCH 0/2] integrate eject/uneject fixes

2009-12-03 Thread Eduardo Habkost
is missing on eject_device()). Naphtali's patch should have included the bdrv_forget_fname() call inside the bdrv_is_inserted() if block. But instead of fixing it, it can be simply applied after my patch. Eduardo Habkost (1): monitor: allow device to be ejected if no disk is inserted Naphtali Sprei

[Qemu-devel] [PATCH 1/3] net: remove NICInfo.bootable field

2010-04-06 Thread Eduardo Habkost
It is just set by net_set_boot_mask() and never used. The logic for rom loading changed a lot since this field was introduced. It is not needed anymore. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- net.c |1 - net.h |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff

<    1   2   3   4   5   6   7   8   9   10   >