[Qemu-devel] [PATCH 3/3] boot: remove unused boot_devices_bitmap variable

2010-04-06 Thread Eduardo Habkost
In addition to removing the variable, this also renames the parse_bootdevices() function to validate_bootdevices(), as we don't need its return value anymore. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- vl.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 2/3] net: remove broken net_set_boot_mask() boot device validation

2010-04-06 Thread Eduardo Habkost
. Checking if the requested boot device is valid is now a task for the BIOS or the machine-type code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- net.c | 19 --- net.h |1 - vl.c |5 + 3 files changed, 1 insertions(+), 24 deletions(-) diff --git a/net.c b/net.c

[Qemu-devel] [PATCH 0/3] fix network booting when using -device instead of -net nic

2010-04-06 Thread Eduardo Habkost
. Eduardo Habkost (3): Kill NICInfo.bootable field kill broken net_set_boot_mask() boot device validation kill unused boot_devices_bitmap variable net.c | 20 net.h |2 -- vl.c | 13 - 3 files changed, 4 insertions(+), 31 deletions(-)

Re: [Qemu-devel] [PATCH 10/15] test: eliminate libcheck tests and have make check use gtester

2012-01-12 Thread Eduardo Habkost
On Tue, Jan 10, 2012 at 01:10:51PM -0600, Anthony Liguori wrote: [...] @@ -733,10 +732,6 @@ for opt do ;; --enable-fdt) fdt=yes ;; - --disable-check-utests) check_utests=no - ;; - --enable-check-utests) check_utests=yes - ;; --disable-nptl) nptl=no ;;

[Qemu-devel] [RHEL6 qemu-kvm PATCH 02/11] Allow an optional qemu_early_init_vcpu()

2011-06-02 Thread Eduardo Habkost
Subject line shorter] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- cpus.c |8 kvm-all.c| 36 +--- kvm.h|1 + qemu-common.h|2

[Qemu-devel] [RHEL6 qemu-kvm PATCH 05/11] cpu defs: use Intel flag names for Intel models

2011-06-02 Thread Eduardo Habkost
submission is at Message-ID: 4ddad5e7.2020...@redhat.com, http://marc.info/?l=qemu-develm=130618871926030. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6 +++--- target-i386/cpuid.c |4 ++-- 2 files changed, 5 insertions(+), 5

[Qemu-devel] [RHEL6 qemu-kvm PATCH 07/11] cpu defs: uncomment empty extfeatures_ecx definition for Opteron_G1

2011-06-02 Thread Eduardo Habkost
://marc.info/?l=qemu-develm=130618871926030. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sysconfigs/target/target-x86_64.conf b/sysconfigs/target/target-x86_64.conf index 09b30a4

[Qemu-devel] [RHEL6 qemu-kvm PATCH 04/11] Support -readconfig ? to debug config file loading

2011-06-02 Thread Eduardo Habkost
of the existing user interface, a solution which minimally impacts the user is ultimately required. [ehabkost: edited commit message to have better Subject line] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- qemu-config.c | 30

[Qemu-devel] [RHEL6 qemu-kvm PATCH 08/11] reorder cpuid feature bits on target-x86_64.conf

2011-06-02 Thread Eduardo Habkost
-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sysconfigs/target/target-x86_64.conf b/sysconfigs/target/target-x86_64.conf index ea310bb..d368b6c 100644

[Qemu-devel] [RHEL6 qemu-kvm PATCH 06/11] cpu defs: remove replicated flags from Intel

2011-06-02 Thread Eduardo Habkost
cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysconfigs/target/target-x86_64.conf b/sysconfigs/target/target-x86_64.conf index fd4e421..09b30a4

[Qemu-devel] [RHEL6 qemu-kvm PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-02 Thread Eduardo Habkost
Subject lines and split one large patch changing CPU flags into small steps, so the changes can be more easily reviewed/discussed. The proof can be checked by looking at the 'cpudefs-v1-john' and 'cpudefs-v2-ehabkost' branches at git://github.com/ehabkost/qemu-hacks.git. Eduardo Habkost (5): cpu defs

[Qemu-devel] [RHEL6 qemu-kvm PATCH 01/11] correct archaic CPU model model field for Intel CPUs.

2011-06-02 Thread Eduardo Habkost
recommendations were received which more accurately represent shipped silicon. [ehabkost: made Subject line shorter] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6 +++--- 1 files changed, 3 insertions

[Qemu-devel] [RHEL6 qemu-kvm PATCH 03/11] Add kvm emulated x2apic flag to config defined cpu models (v2)

2011-06-02 Thread Eduardo Habkost
Subject line shorter] [ehabkost: v2: cosmetic: add x2apic kvm emulated comments to conf file] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/pc.c |2 +- sysconfigs/target/target-x86_64.conf | 12

[Qemu-devel] [RHEL6 qemu-kvm PATCH 09/11] cpu defs: add pse36, mca, mtrr to AMD CPU definitions

2011-06-02 Thread Eduardo Habkost
] -- Intel host [Opteron_G1, Opteron_G2, Opteron_G3] x [F12-64, win64, win32] -- AMD host Yielding successful boots in all cases. Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf |6

[Qemu-devel] [RHEL6 qemu-kvm PATCH 10/11] add Westmere as a qemu cpu model

2011-06-02 Thread Eduardo Habkost
address such quirks. [ehabkost: edited commit message to have a better Subject line] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/target-x86_64.conf | 14 ++ 1 files changed, 14 insertions(+), 0 deletions

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-02 Thread Eduardo Habkost
Ouch, the subject prefix is completely wrong because of broken git-send-email config on my side, sorry. Please ignore the 'RHEL6 qemu-kvm' prefix, it is actually supposed to go to the main Qemu tree. -- Eduardo

[Qemu-devel] [RHEL6 qemu-kvm PATCH 11/11] add default pseudo CPU model name

2011-06-02 Thread Eduardo Habkost
] Signed-off-by: john cooper john.coo...@redhat.com Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/pc.c | 39 +++ target-i386/helper.c |1 + 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 5b94e53

Re: [Qemu-devel] [PATCH 00/11] cpu model bug fixes and definition corrections (v2)

2011-06-03 Thread Eduardo Habkost
(CCing Marcelo, Avi, and kvm mailing list, so they can help answering the uq/master patch flow question) On Fri, Jun 03, 2011 at 12:51:42AM +0200, Jan Kiszka wrote: On 2011-06-02 21:34, Eduardo Habkost wrote: Ouch, the subject prefix is completely wrong because of broken git-send-email

Re: [Qemu-devel] [PATCH 11/12] kvm: x86: Pass KVMState to kvm_arch_get_supported_cpuid

2011-06-09 Thread Eduardo Habkost
On Wed, Jun 08, 2011 at 04:11:05PM +0200, Jan Kiszka wrote: kvm_arch_get_supported_cpuid checks for global cpuid restrictions, it does not require any CPUState reference. Changing its interface allows to call it before any VCPU is initialized. I'm wondering if it wouldn't be simpler to keep

Re: [Qemu-devel] [PATCH 11/12] kvm: x86: Pass KVMState to kvm_arch_get_supported_cpuid

2011-06-09 Thread Eduardo Habkost
On Thu, Jun 09, 2011 at 07:41:03PM +0200, Jan Kiszka wrote: snip I'm wondering if it wouldn't be simpler to keep the existing interface but just initialize CPUState-kvm_state earlier (today it is initialized only on kvm_init_vcpu(), although the kvm_state global is initialized much

Re: [Qemu-devel] [PATCH 09/12] kvm: ppc: Drop KVM_CAP build dependencies

2011-06-10 Thread Eduardo Habkost
On Wed, Jun 08, 2011 at 04:11:03PM +0200, Jan Kiszka wrote: snip @@ -217,7 +209,6 @@ int kvm_arch_get_registers(CPUState *env) return ret; } -#ifdef KVM_CAP_PPC_BOOKE_SREGS if (sregs.u.e.features KVM_SREGS_E_BASE) { env-spr[SPR_BOOKE_CSRR0] =

[Qemu-devel] semantics of -cpu host and check/enforce

2011-06-10 Thread Eduardo Habkost
Hi, While checking the cpu model code, I don't think I understand fully what is supposed to be the right semantics for '-cpu host' on qemu-kvm, and what exactly we are aiming to. Maybe this was already discussed before, but I failed to find any additional information except for the original

Re: [Qemu-devel] [PATCH 0/4] add make check

2011-10-24 Thread Eduardo Habkost
enables the unit tests by default, so you don't have to re-run configure with a special switch. Reviewed-by: Markus Armbruster arm...@redhat.com One test fails, but Luiz has a fix in his tree. Reviewed-by: Eduardo Habkost ehabk...@redhat.com Now all tests are passing. Why

Re: [Qemu-devel] [PATCH 0/4] add make check

2011-10-25 Thread Eduardo Habkost
On Tue, Oct 25, 2011 at 03:27:35PM +0200, Gerd Hoffmann wrote: [...] A while ago I played with some simple IDE tests. It basically was a small x86 kernel with an empty image that sends IDE commands and prints some results, and a script that invokes the guest and checks whether the test has

Re: [Qemu-devel] [PATCH] Fix segfault after migration completes

2011-10-28 Thread Eduardo Habkost
clearing 's-file'. In both cases the fix below could just be hiding the real issue, but let's get started... Signed-off-by: Luiz Capitulino lcapitul...@redhat.com Acked-by: Eduardo Habkost ehabk...@redhat.com However, it looks like the error-check interface of QEMUFile is really easy to misuse

[Qemu-devel] [RFC PATCH 04/11] migrate_fd_cleanup: accept any negative qemu_fclose() value as error

2011-11-01 Thread Eduardo Habkost
value - migrate_fd_cancel(): doesn't check the migrate_fd_cleanup() return value Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/migration.c b/migration.c index 3b4abbd..a98897c 100644 --- a/migration.c

[Qemu-devel] [RFC PATCH 09/11] fd_close(): check for close() errors too

2011-11-01 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-fd.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration-fd.c b/migration-fd.c index d0aec89..4d86d43 100644 --- a/migration-fd.c +++ b

[Qemu-devel] [RFC PATCH 07/11] stdio_fclose: return -errno on errors

2011-11-01 Thread Eduardo Habkost
This is what qemu_fclose() expects. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 63dd719..7fbc4ca 100644 --- a/savevm.c +++ b/savevm.c @@ -243,9 +243,11 @@ static int

[Qemu-devel] [RFC PATCH 01/11] savevm: use qemu_file_set_error() instead of setting last_error directly

2011-11-01 Thread Eduardo Habkost
Some code uses qemu_file_set_error() already, so use it everywhere when setting last_error, for consistency. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index f01838f..dc3311b

[Qemu-devel] [RFC PATCH 08/11] exec_close(): return -errno on errors

2011-11-01 Thread Eduardo Habkost
All qemu_fclose() callers were already changed to accept any negative value as error, so we now can change it to return -errno. When the process exits with a non-zero exit code, we return -EIO to as a fake errno value. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c

[Qemu-devel] [RFC PATCH 10/11] tcp_close(): check for close() errors too

2011-11-01 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-tcp.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration-tcp.c b/migration-tcp.c index 5aa742c..fd5fd56 100644 --- a/migration-tcp.c

[Qemu-devel] [RFC PATCH 03/11] exec_close(): accept any negative value as qemu_fclose() error

2011-11-01 Thread Eduardo Habkost
Note that we don't return the unchanged return value back yet, because we need to change all qemu_fclose() callers to accept any positive value as success. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[Qemu-devel] [RFC PATCH 02/11] QEMUFileCloseFunc: add return value documentation

2011-11-01 Thread Eduardo Habkost
qemu_fclose() and QEMUFile-close will return -errno on error, and any positive value on success. We need the positive non-zero success values because migration-exec.c:exec_close() relies on non-zero return values to get the process exit code. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

[Qemu-devel] [RFC PATCH 05/11] qemu_fclose: return last_error if set

2011-11-01 Thread Eduardo Habkost
check (yet) - do_savevm(): no return value check (yet) - load_vmstate(): no return value check (yet) Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c | 46 +++--- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/savevm.c b

[Qemu-devel] [RFC PATCH 11/11] unix_close(): check for close() errors too

2011-11-01 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-unix.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration-unix.c b/migration-unix.c index 8596353..197285c 100644 --- a/migration-unix.c

[Qemu-devel] [RFC PATCH 06/11] stdio_pclose: return -errno on error

2011-11-01 Thread Eduardo Habkost
This is what qemu_fclose() expects. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 3c746a6..63dd719 100644 --- a/savevm.c +++ b/savevm.c @@ -233,8 +233,9 @@ static int

[Qemu-devel] [RFC PATCH 00/11] qemu_fclose() error handling fixes

2011-11-01 Thread Eduardo Habkost
) - socket_close - No system call is made, returns always 0. - bdrv_fclose - No system call is made, returns always 0. Eduardo Habkost (11): savevm: use qemu_file_set_error() instead of setting last_error directly QEMUFileCloseFunc: add return value documentation exec_close(): accept any

Re: [Qemu-devel] [RFC PATCH 05/11] qemu_fclose: return last_error if set

2011-11-02 Thread Eduardo Habkost
On Wed, Nov 02, 2011 at 08:33:05AM +0100, Paolo Bonzini wrote: On 11/01/2011 08:20 PM, Eduardo Habkost wrote: +/** Calls close function and set last_error if needed + * + * Internal function. qemu_fflush() must be called before this. + * + * Returns f-close() return value, or 0 if close

Re: [Qemu-devel] [RFC PATCH 05/11] qemu_fclose: return last_error if set

2011-11-02 Thread Eduardo Habkost
On Wed, Nov 02, 2011 at 01:15:46PM +0100, Paolo Bonzini wrote: On 11/02/2011 12:56 PM, Eduardo Habkost wrote: No, if it's positive it won't be set on last_error, so we have to save it somewhere other than last_error (that's what the qemu_close() return value is used for). Ok, I was confused

Re: [Qemu-devel] [RFC PATCH 06/11] stdio_pclose: return -errno on error

2011-11-02 Thread Eduardo Habkost
On Tue, Nov 01, 2011 at 05:20:25PM -0200, Eduardo Habkost wrote: This is what qemu_fclose() expects. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 3c746a6..63dd719

Re: [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus

2011-11-09 Thread Eduardo Habkost
On Tue, Nov 08, 2011 at 11:24:30AM -0600, Anthony Liguori wrote: On 11/03/2011 09:45 PM, Wen Congyang wrote: We disable vm_clock when pausing all vcpus, but we forget to reenable it when resuming all vcpus. It will cause that the guest can not be rebooted. Signed-off-by: Wen

[Qemu-devel] [PATCH 05/10] qemu_fclose: return last_error if set (v2)

2011-11-09 Thread Eduardo Habkost
check (yet) - do_savevm(): no return value check (yet) - load_vmstate(): no return value check (yet) Changes v1 - v2: - Add small comment about the need to return previously-spotted errors Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c | 49

[Qemu-devel] [PATCH 07/10] stdio_fclose: return -errno on errors

2011-11-09 Thread Eduardo Habkost
This is what qemu_fclose() expects. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 5112d66..ee49288 100644 --- a/savevm.c +++ b/savevm.c @@ -244,9 +244,11 @@ static int

[Qemu-devel] [PATCH 04/10] migrate_fd_cleanup: accept any negative qemu_fclose() value as error

2011-11-09 Thread Eduardo Habkost
value - migrate_fd_cancel(): doesn't check the migrate_fd_cleanup() return value Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/migration.c b/migration.c index 4b17566..5a33003 100644 --- a/migration.c

[Qemu-devel] [PATCH 01/10] savevm: use qemu_file_set_error() instead of setting last_error directly

2011-11-09 Thread Eduardo Habkost
Some code uses qemu_file_set_error() already, so use it everywhere when setting last_error, for consistency. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index bee16c0..2dab5dc

[Qemu-devel] [PATCH 03/10] exec_close(): accept any negative value as qemu_fclose() error

2011-11-09 Thread Eduardo Habkost
Note that we don't return the unchanged return value back yet, because we need to change all qemu_fclose() callers to accept any positive value as success. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[Qemu-devel] [PATCH 10/10] unix_close(): check for close() errors too

2011-11-09 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-unix.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration-unix.c b/migration-unix.c index 8596353..197285c 100644 --- a/migration-unix.c

[Qemu-devel] [PATCH 09/10] tcp_close(): check for close() errors too

2011-11-09 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-tcp.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration-tcp.c b/migration-tcp.c index 5aa742c..fd5fd56 100644 --- a/migration-tcp.c

[Qemu-devel] [PATCH 00/10] qemu_fclose() error handling fixes (v2)

2011-11-09 Thread Eduardo Habkost
- Fixed to return -errno on close() errors. (patch 11) - socket_close - No system call is made, returns always 0. - bdrv_fclose - No system call is made, returns always 0. Eduardo Habkost (10): savevm: use qemu_file_set_error() instead of setting last_error directly

[Qemu-devel] [PATCH 08/10] exec_close(): return -errno on errors

2011-11-09 Thread Eduardo Habkost
All qemu_fclose() callers were already changed to accept any negative value as error, so we now can change it to return -errno. When the process exits with a non-zero exit code, we return -EIO to as a fake errno value. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c

[Qemu-devel] [PATCH 02/10] QEMUFileCloseFunc: add return value documentation (v2)

2011-11-09 Thread Eduardo Habkost
on comment text Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/hw.h |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index ed20f5a..efa04d1 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -27,7 +27,13 @@ typedef int (QEMUFilePutBufferFunc)(void *opaque

[Qemu-devel] [PATCH 06/10] stdio_pclose: return -errno on error (v2)

2011-11-09 Thread Eduardo Habkost
This is what qemu_fclose() expects. Changes v1 - v2: - On success, keep returning pclose() return value, instead of always 0. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index

Re: [Qemu-devel] [PATCH 00/10] qemu_fclose() error handling fixes (v2)

2011-11-10 Thread Eduardo Habkost
On Wed, Nov 09, 2011 at 07:57:35PM -0600, Anthony Liguori wrote: On 11/09/2011 04:03 PM, Eduardo Habkost wrote: I am not sure if this is appropriate post-freeze, I will let the maintainers decide this. Personally I think the code is more reliable with these changes, but on the other hand

Re: [Qemu-devel] [PATCH 09/10] tcp_close(): check for close() errors too

2011-11-10 Thread Eduardo Habkost
On Thu, Nov 10, 2011 at 04:21:46PM +0800, Dong Xu Wang wrote:     if (s-fd != -1) { -        close(s-fd); +        if (close(s-fd) 0) +            r = -errno; Braces {} are necessary, or checkpatch.pl will give warnings, also in other patches in your series. No mistake, just

Re: [Qemu-devel] [PATCH 00/10] qemu_fclose() error handling fixes (v2)

2011-11-10 Thread Eduardo Habkost
I will send v3 of this series with changes to comply with coding style, fixing warnings detected by checkpatch.pl. -- Eduardo

[Qemu-devel] [PATCH 04/10] migrate_fd_cleanup: accept any negative qemu_fclose() value as error

2011-11-10 Thread Eduardo Habkost
value - migrate_fd_cancel(): doesn't check the migrate_fd_cleanup() return value Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/migration.c b/migration.c index 4b17566..5a33003 100644 --- a/migration.c

[Qemu-devel] [PATCH 09/10] tcp_close(): check for close() errors too (v2)

2011-11-10 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Changes v1 - v2: - Use braces on if statement to match coding style Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-tcp.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/migration-tcp.c b

[Qemu-devel] [PATCH 07/10] stdio_fclose: return -errno on errors (v2)

2011-11-10 Thread Eduardo Habkost
This is what qemu_fclose() expects. Changes v1 - v2: - Add braces to if statement to match coding style Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index a870b3f..4ccbc1c

[Qemu-devel] [PATCH 03/10] exec_close(): accept any negative value as qemu_fclose() error

2011-11-10 Thread Eduardo Habkost
Note that we don't return the unchanged return value back yet, because we need to change all qemu_fclose() callers to accept any positive value as success. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[Qemu-devel] [PATCH 01/10] savevm: use qemu_file_set_error() instead of setting last_error directly

2011-11-10 Thread Eduardo Habkost
Some code uses qemu_file_set_error() already, so use it everywhere when setting last_error, for consistency. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index bee16c0..2dab5dc

[Qemu-devel] [PATCH 02/10] QEMUFileCloseFunc: add return value documentation (v2)

2011-11-10 Thread Eduardo Habkost
on comment text Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/hw.h |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index ed20f5a..efa04d1 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -27,7 +27,13 @@ typedef int (QEMUFilePutBufferFunc)(void *opaque

[Qemu-devel] [PATCH 08/10] exec_close(): return -errno on errors (v2)

2011-11-10 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-exec.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/migration-exec.c b/migration-exec.c index 626b648..e14552e 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -50,12 +50,9 @@ static int

[Qemu-devel] [PATCH 05/10] qemu_fclose: return last_error if set (v3)

2011-11-10 Thread Eduardo Habkost
check (yet) - do_savevm(): no return value check (yet) - load_vmstate(): no return value check (yet) Changes v1 - v2: - Add small comment about the need to return previously-spotted errors Changes v2 - v3: - Add braces to if statements to match coding style Signed-off-by: Eduardo Habkost ehabk

[Qemu-devel] [PATCH 10/10] unix_close(): check for close() errors too (v2)

2011-11-10 Thread Eduardo Habkost
In case close() fails, we want to report the error back. Changes v1 - v2: - Use braces on if statement to match coding style Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- migration-unix.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/migration-unix.c b

[Qemu-devel] [PATCH 00/10] qemu_fclose() error handling fixes (v3)

2011-11-10 Thread Eduardo Habkost
-errno on close() errors. (patch 11) - socket_close - No system call is made, returns always 0. - bdrv_fclose - No system call is made, returns always 0. Eduardo Habkost (10): savevm: use qemu_file_set_error() instead of setting last_error directly QEMUFileCloseFunc: add return

[Qemu-devel] [PATCH 06/10] stdio_pclose: return -errno on error (v3)

2011-11-10 Thread Eduardo Habkost
This is what qemu_fclose() expects. Changes v1 - v2: - On success, keep returning pclose() return value, instead of always 0. Changes v2 - v3: - Add braces on if statements to match coding style Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- savevm.c |3 +++ 1 files changed, 3

Re: [Qemu-devel] SeaBIOS, FW_CFG_NUMA, and FW_CFG_MAX_CPUS

2012-07-25 Thread Eduardo Habkost
On Wed, Jul 25, 2012 at 05:47:36PM +0300, Gleb Natapov wrote: On Fri, Jul 20, 2012 at 05:00:25PM -0300, Eduardo Habkost wrote: Hi, While working at the CPU index vs APIC ID changes, I stumbled upon another not-very-well-defined interface between SeaBIOS and QEMU, and I would like

[Qemu-devel] [QEMU PATCH 3/3] x86: pc: versioned CPU model names compatibility aliases

2012-07-25 Thread Eduardo Habkost
), but by coincidence every single one was changed on QEMU-1.1. - Conroe, Penryn, Nehalem, Opteron_G1, Opteron_G2, Opteron_G3: added on 0.13, changed on 1.1 - Westmere, SandyBridge, Opteron_G4: added on 1.1 Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/pc_piix.c | 56

[Qemu-devel] [QEMU PATCH 1/3] vl.c: extract qemu_machine_init() function

2012-07-25 Thread Eduardo Habkost
Other code directly related to the board init function may be moved there. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/boards.h |7 +++ vl.c| 14 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/hw/boards.h b/hw/boards.h index 59c01d0

[Qemu-devel] [QEMU PATCH 0/3] versioned CPU models / per-machine-type aliases

2012-07-25 Thread Eduardo Habkost
could use. Eduardo Habkost (3): vl.c: extract qemu_machine_init() function per-machine-type CPU model alias system x86: pc: versioned CPU model names compatibility aliases hw/boards.h| 13 + hw/pc_piix.c | 56

[Qemu-devel] [QEMU PATCH 2/3] per-machine-type CPU model alias system

2012-07-25 Thread Eduardo Habkost
This allow QEMUMachine structs to contain a list of CPU model aliases, used to keep command-line compatibility with older machine types, while making CPU model fixes available on newer machine types. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/boards.h |6 ++ vl.c

Re: [Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-25 Thread Eduardo Habkost
On Mon, Jul 23, 2012 at 03:20:14PM +0300, Gleb Natapov wrote: On Fri, Jul 20, 2012 at 02:04:50PM -0300, Eduardo Habkost wrote: Extract Local APIC IDs directly from the CPUs, and instead of check for i CountCPUs, check if the APIC ID was present on boot, when building ACPI tables and the MP

[Qemu-devel] [SeaBIOS PATCH 0/2] Allow non-contiguous APIC IDs (v3)

2012-07-25 Thread Eduardo Habkost
Changes v2 - v3: - Report I/O APIC ID = 0 on MP-table, too Changes v1 - v2: - Patch 1/2: cosmetic whitespace change - Patch 2/2: use size suffixes on asm instructions on smp.c - New patch descriptions Eduardo Habkost (2): report real I/O APIC ID (0) on MADT and MP-table (v3) allow CPUs

[Qemu-devel] [SeaBIOS PATCH 1/2] report real I/O APIC ID (0) on MADT and MP-table (v3)

2012-07-25 Thread Eduardo Habkost
reality. Changes v2 - v3: - Fix MP-table too, not just ACPI MADT table Changes v1 - v2: - Cosmetic: whitespace change (removed extra newline) - New patch description Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- src/acpi.c|2 +- src/config.h |1 + src/mptable.c |2 +- 3

[Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-25 Thread Eduardo Habkost
be exactly the same. This patch will simply allow QEMU to start setting non-contiguous APIC IDs (that is a requirement for some sockets/cores/threads topology settings). Changes v1 - v2: - Use size suffixes on all asm instructions on smp.c - New patch description Signed-off-by: Eduardo Habkost ehabk

Re: [Qemu-devel] [QEMU PATCH 0/3] versioned CPU models / per-machine-type aliases

2012-07-26 Thread Eduardo Habkost
On Wed, Jul 25, 2012 at 06:43:25PM -0500, Anthony Liguori wrote: Eduardo Habkost ehabk...@redhat.com writes: Hi, This is the first try at a simple system to make the CPU model definitions versioned (to allow them to get bug fixes while allowing migration from older versions

Re: [Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 09:08:40AM +0300, Gleb Natapov wrote: On Wed, Jul 25, 2012 at 03:42:21PM -0300, Eduardo Habkost wrote: On Mon, Jul 23, 2012 at 03:20:14PM +0300, Gleb Natapov wrote: On Fri, Jul 20, 2012 at 02:04:50PM -0300, Eduardo Habkost wrote: Extract Local APIC IDs directly

Re: [Qemu-devel] [QEMU PATCH 3/3] x86: pc: versioned CPU model names compatibility aliases

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 12:52:33AM +0200, Andreas Färber wrote: Am 25.07.2012 20:18, schrieb Eduardo Habkost: This adds version number to CPU model names on the pc-version machine-types, so we can create new models with bug fixes while keeping compatibility when using older machine-types

Re: [Qemu-devel] [QEMU PATCH 0/3] versioned CPU models / per-machine-type aliases

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 04:06:03PM +0200, Andreas Färber wrote: Am 26.07.2012 15:53, schrieb Eduardo Habkost: On Wed, Jul 25, 2012 at 06:43:25PM -0500, Anthony Liguori wrote: Eduardo Habkost ehabk...@redhat.com writes: Hi, This is the first try at a simple system to make the CPU model

Re: [Qemu-devel] [QEMU PATCH 3/3] x86: pc: versioned CPU model names compatibility aliases

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 04:31:45PM +0200, Andreas Färber wrote: Am 26.07.2012 16:24, schrieb Eduardo Habkost: On Thu, Jul 26, 2012 at 12:52:33AM +0200, Andreas Färber wrote: Am 25.07.2012 20:18, schrieb Eduardo Habkost: This adds version number to CPU model names on the pc-version machine

Re: [Qemu-devel] [QEMU PATCH 3/3] x86: pc: versioned CPU model names compatibility aliases

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 04:33:36PM +0200, Jiri Denemark wrote: On Wed, Jul 25, 2012 at 15:18:43 -0300, Eduardo Habkost wrote: This adds version number to CPU model names on the pc-version machine-types, so we can create new models with bug fixes while keeping compatibility when using older

Re: [Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 05:55:09PM +0300, Avi Kivity wrote: On 07/26/2012 05:16 PM, Eduardo Habkost wrote: It's possible to replace the atomic read of CountCPUs with the bitmap weight calculation on the loop, but: is it really worth it? Why not? This eliminates one more global

Re: [Qemu-devel] [SeaBIOS PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs (v2)

2012-07-26 Thread Eduardo Habkost
On Thu, Jul 26, 2012 at 07:08:19PM +0300, Avi Kivity wrote: On 07/26/2012 06:07 PM, Eduardo Habkost wrote: On Thu, Jul 26, 2012 at 05:55:09PM +0300, Avi Kivity wrote: On 07/26/2012 05:16 PM, Eduardo Habkost wrote: It's possible to replace the atomic read of CountCPUs with the bitmap

Re: [Qemu-devel] [libvirt] [QEMU PATCH 1/3] vl.c: extract qemu_machine_init() function

2012-07-30 Thread Eduardo Habkost
On Wed, Jul 25, 2012 at 04:18:01PM -0600, Eric Blake wrote: On 07/25/2012 12:18 PM, Eduardo Habkost wrote: Other code directly related to the board init function may be moved there. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- hw/boards.h |7 +++ vl.c

Re: [Qemu-devel] KVM call agenda for Tuesday, July 31

2012-07-31 Thread Eduardo Habkost
On Mon, Jul 30, 2012 at 09:34:05AM +0200, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - 1.2 plans for CPU model versioning/compatibility (global properties vs QOM vs qdev) -- Eduardo

Re: [Qemu-devel] [PATCH v4] Fixes related to processing of qemu's -numa option

2012-07-31 Thread Eduardo Habkost
(or) suggest who I should talk to get these changes in ? Thanks! Vinod -Original Message- From: Eduardo Habkost [mailto:ehabk...@redhat.com] Sent: Wednesday, July 18, 2012 10:15 AM To: Vinod, Chegu Cc: qemu-devel@nongnu.org; aligu...@us.ibm.com; k...@vger.kernel.org Subject: Re: [Qemu

Re: [Qemu-devel] [QEMU PATCH 3/3] x86: pc: versioned CPU model names compatibility aliases

2012-07-31 Thread Eduardo Habkost
On Tue, Jul 31, 2012 at 03:22:59PM +0200, Igor Mammedov wrote: On Thu, Jul 26, 2012 at 10:48:45AM -0400, Eduardo Habkost wrote: ... [1] There are multiple changes I want to make the cpudef config format: - Make it based on boolean per-feature flags, not low-level feature_register

[Qemu-devel] QEMU CPU model versioning/compatibility (was Re: KVM call minutes July 31th)

2012-07-31 Thread Eduardo Habkost
On Tue, Jul 31, 2012 at 04:32:05PM +0200, Juan Quintela wrote: - 1.2 plans for CPU model versioning/compatibility (eduardo) (global properties vs QOM vs qdev) how to do it ? configuration file? moving back to the code? different external interface from internal one (CCing libvir-list)

Re: [Qemu-devel] KVM call minutes July 31th

2012-07-31 Thread Eduardo Habkost
On Tue, Jul 31, 2012 at 04:32:05PM +0200, Juan Quintela wrote: - 1.2 plans for CPU model versioning/compatibility (eduardo) (global properties vs QOM vs qdev) how to do it ? configuration file? moving back to the code? different external interface from internal one Another question:

Re: [Qemu-devel] [PATCH 6/7] target-i386: add implementation of query-cpudefs

2012-07-31 Thread Eduardo Habkost
On Fri, Jul 27, 2012 at 08:37:18AM -0500, Anthony Liguori wrote: Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- target-i386/cpu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index

[Qemu-devel] [PATCH 0/3] Move CPU model definitions to C

2012-08-01 Thread Eduardo Habkost
(indicating they are built-in models), the output of -cpu ?dump is exactly the same before and after applying this series. [1] http://article.gmane.org/gmane.comp.emulators.kvm.devel/95328 Eduardo Habkost (3): i386: add missing CPUID_* constants move CPU models from cpus-x86_64.conf to C

[Qemu-devel] [PATCH 3/3] eliminate cpus-x86_64.conf file

2012-08-01 Thread Eduardo Habkost
This file is not needed anymore, as QEMU won't ship any config-based cpudefs out of the box, relying only on the builtin CPU models. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- Makefile | 1 - arch_init.c| 1 - sysconfigs/target/cpus

[Qemu-devel] [PATCH 2/3] move CPU models from cpus-x86_64.conf to C

2012-08-01 Thread Eduardo Habkost
Those models are maintained by QEMU and may require compatibility code to be added when making some changes. Keeping the data in the C source code should make it simpler to handle those details. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- sysconfigs/target/cpus-x86_64.conf | 129

[Qemu-devel] [PATCH 1/3] i386: add missing CPUID_* constants

2012-08-01 Thread Eduardo Habkost
Those constants will be used by new CPU model definitions. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 2a61c81..c81f7bf 100644 --- a/target-i386

Re: [Qemu-devel] [PATCH 3/3] eliminate cpus-x86_64.conf file

2012-08-01 Thread Eduardo Habkost
On Wed, Aug 01, 2012 at 10:37:04PM +0300, Lluís Vilanova wrote: Eduardo Habkost writes: This file is not needed anymore, as QEMU won't ship any config-based cpudefs out of the box, relying only on the builtin CPU models. Signed-off-by: Eduardo Habkost ehabk...@redhat.com

Re: [Qemu-devel] [PATCH 0/3] Move CPU model definitions to C

2012-08-01 Thread Eduardo Habkost
On Wed, Aug 01, 2012 at 10:04:50PM +0200, Andreas Färber wrote: Am 01.08.2012 20:45, schrieb Eduardo Habkost: This makes the change we discussed on the latest KVM conf call[1], moving the existing cpudefs from cpus-x86_64.conf to the C code. The config file data was converted to C

Re: [Qemu-devel] [PATCH 0/3] Move CPU model definitions to C

2012-08-02 Thread Eduardo Habkost
On Wed, Aug 01, 2012 at 03:41:56PM -0500, Anthony Liguori wrote: Eduardo Habkost ehabk...@redhat.com writes: On Wed, Aug 01, 2012 at 10:04:50PM +0200, Andreas Färber wrote: Am 01.08.2012 20:45, schrieb Eduardo Habkost: This makes the change we discussed on the latest KVM conf call[1

Re: [Qemu-devel] [PATCH 0/3] Move CPU model definitions to C

2012-08-02 Thread Eduardo Habkost
On Wed, Aug 01, 2012 at 11:53:51PM +0200, Andreas Färber wrote: Am 01.08.2012 22:27, schrieb Eduardo Habkost: On Wed, Aug 01, 2012 at 10:04:50PM +0200, Andreas Färber wrote: Am 01.08.2012 20:45, schrieb Eduardo Habkost: This makes the change we discussed on the latest KVM conf call[1

[Qemu-devel] [RFC 01/19] target-i386/cpu.c: coding style fixes

2012-08-02 Thread Eduardo Habkost
Changes to make checkpatch.pl happy: - Use sizeof(...) instead of sizeof (...); - Spaces around :; - Use spaces instead of tabs; - Braces on if statements. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 66 ++- 1

[Qemu-devel] [RFC 02/19] x86_cpudef_setup: coding style change

2012-08-02 Thread Eduardo Habkost
Make source code lines shorter. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- target-i386/cpu.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 9414d75..d546534 100644 --- a/target-i386/cpu.c +++ b/target

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