From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, qemu-trivial@nongnu.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-trivial] [PATCH] target-i386: Remove unused data from local array
Date: Thu, 20 Mar 2014 22:54:21 +0100 [thread overview]
Message-ID: <532B638D.2040608@redhat.com> (raw)
In-Reply-To: <1395351032-11920-1-git-send-email-sw@weilnetz.de>
Il 20/03/2014 22:30, Stefan Weil ha scritto:
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> This patch is based on a previous patch for the same file,
> see http://patchwork.ozlabs.org/patch/330708/.
>
> Regards
> Stefan W.
>
> target-i386/kvm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 4389959..d17eea3 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -130,14 +130,13 @@ static const struct kvm_para_features {
> { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
> { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
> { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
> - { -1, -1 }
> };
>
> static int get_para_features(KVMState *s)
> {
> int i, features = 0;
>
> - for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) {
> + for (i = 0; i < ARRAY_SIZE(para_features); i++) {
> if (kvm_check_extension(s, para_features[i].cap)) {
> features |= (1 << para_features[i].feature);
> }
>
Applied to uq/master, thanks.
I'm leaving the other patch to Andreas or Michael Tokarev.
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, qemu-trivial@nongnu.org
Cc: qemu-devel@nongnu.org, Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org
Subject: Re: [PATCH] target-i386: Remove unused data from local array
Date: Thu, 20 Mar 2014 22:54:21 +0100 [thread overview]
Message-ID: <532B638D.2040608@redhat.com> (raw)
In-Reply-To: <1395351032-11920-1-git-send-email-sw@weilnetz.de>
Il 20/03/2014 22:30, Stefan Weil ha scritto:
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> This patch is based on a previous patch for the same file,
> see http://patchwork.ozlabs.org/patch/330708/.
>
> Regards
> Stefan W.
>
> target-i386/kvm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 4389959..d17eea3 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -130,14 +130,13 @@ static const struct kvm_para_features {
> { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
> { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
> { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
> - { -1, -1 }
> };
>
> static int get_para_features(KVMState *s)
> {
> int i, features = 0;
>
> - for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) {
> + for (i = 0; i < ARRAY_SIZE(para_features); i++) {
> if (kvm_check_extension(s, para_features[i].cap)) {
> features |= (1 << para_features[i].feature);
> }
>
Applied to uq/master, thanks.
I'm leaving the other patch to Andreas or Michael Tokarev.
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, qemu-trivial@nongnu.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] target-i386: Remove unused data from local array
Date: Thu, 20 Mar 2014 22:54:21 +0100 [thread overview]
Message-ID: <532B638D.2040608@redhat.com> (raw)
In-Reply-To: <1395351032-11920-1-git-send-email-sw@weilnetz.de>
Il 20/03/2014 22:30, Stefan Weil ha scritto:
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> This patch is based on a previous patch for the same file,
> see http://patchwork.ozlabs.org/patch/330708/.
>
> Regards
> Stefan W.
>
> target-i386/kvm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 4389959..d17eea3 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -130,14 +130,13 @@ static const struct kvm_para_features {
> { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
> { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
> { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
> - { -1, -1 }
> };
>
> static int get_para_features(KVMState *s)
> {
> int i, features = 0;
>
> - for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) {
> + for (i = 0; i < ARRAY_SIZE(para_features); i++) {
> if (kvm_check_extension(s, para_features[i].cap)) {
> features |= (1 << para_features[i].feature);
> }
>
Applied to uq/master, thanks.
I'm leaving the other patch to Andreas or Michael Tokarev.
Paolo
next prev parent reply other threads:[~2014-03-20 21:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-20 21:30 [Qemu-trivial] [PATCH] target-i386: Remove unused data from local array Stefan Weil
2014-03-20 21:30 ` [Qemu-devel] " Stefan Weil
2014-03-20 21:30 ` Stefan Weil
2014-03-20 21:54 ` Paolo Bonzini [this message]
2014-03-20 21:54 ` [Qemu-devel] " Paolo Bonzini
2014-03-20 21:54 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=532B638D.2040608@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.