From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
Alexander Graf <agraf@suse.de>,
Richard Henderson <rth@twiddle.net>,
Janosch Frank <frankja@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH 01/11] s390x/kvm: Rework cmma management
Date: Wed, 12 Jul 2017 15:49:03 +0200 [thread overview]
Message-ID: <20170712154903.12ae15f9@dhcp-192-215.str.redhat.com> (raw)
In-Reply-To: <1499864265-144136-2-git-send-email-borntraeger@de.ibm.com>
On Wed, 12 Jul 2017 14:57:35 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> From: Janosch Frank <frankja@linux.vnet.ibm.com>
>
> Let's keep track of cmma enablement and move the mem_path check into
> the actual enablement. This now also warns users that do not use
> cpu-models about disabled cmma when using huge pages.
>
> Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
> target/s390x/cpu.h | 1 +
> target/s390x/kvm.c | 26 +++++++++++++++++---------
> 2 files changed, 18 insertions(+), 9 deletions(-)
> @@ -177,6 +179,11 @@ int kvm_s390_set_mem_limit(KVMState *s, uint64_t new_limit, uint64_t *hw_limit)
> return kvm_vm_ioctl(s, KVM_SET_DEVICE_ATTR, &attr);
> }
>
> +int kvm_s390_cmma_active(void)
> +{
> + return active_cmma;
> +}
This is rather "has cmma ever been enabled"...
> +
> static bool kvm_s390_cmma_available(void)
> {
> static bool initialized, value;
> @@ -197,7 +204,7 @@ void kvm_s390_cmma_reset(void)
> .attr = KVM_S390_VM_MEM_CLR_CMMA,
> };
>
> - if (mem_path || !kvm_s390_cmma_available()) {
> + if (!kvm_s390_cmma_active()) {
> return;
> }
...as you don't clear it on reset, right?
Confused me a bit at first, but
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
next prev parent reply other threads:[~2017-07-12 13:49 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 12:57 [Qemu-devel] [PATCH 00/11] pending s390 patches part 1 Christian Borntraeger
2017-07-12 12:57 ` [Qemu-devel] [PATCH 01/11] s390x/kvm: Rework cmma management Christian Borntraeger
2017-07-12 13:49 ` Cornelia Huck [this message]
2017-07-13 5:37 ` Janosch Frank
2017-07-12 12:57 ` [Qemu-devel] [PATCH 02/11] linux-headers: update to 4.13-rc0 Christian Borntraeger
2017-07-12 12:57 ` [Qemu-devel] [PATCH 03/11] s390x/migration: Storage attributes device Christian Borntraeger
2017-07-12 14:09 ` Thomas Huth
2017-07-13 7:11 ` Christian Borntraeger
2017-07-13 7:32 ` Cornelia Huck
2017-07-13 7:35 ` Thomas Huth
2017-07-13 7:45 ` Christian Borntraeger
2017-07-12 12:57 ` [Qemu-devel] [PATCH 04/11] s390x/migration: Monitor commands for storage attributes Christian Borntraeger
2017-07-12 12:57 ` [Qemu-devel] [PATCH 05/11] s390x/cpumodel: clean up spacing and comments Christian Borntraeger
2017-07-12 12:57 ` [Qemu-devel] [PATCH 06/11] s390x/cpumodel: provide compat handling for new cpu features Christian Borntraeger
2017-07-12 14:51 ` Cornelia Huck
2017-07-12 12:57 ` [Qemu-devel] [PATCH 07/11] s390x: add flags field for registering I/O adapter Christian Borntraeger
2017-07-12 15:00 ` Cornelia Huck
2017-07-12 12:57 ` [Qemu-devel] [PATCH 08/11] s390x/flic: introduce modify_ais_mode callback Christian Borntraeger
2017-07-12 15:07 ` Cornelia Huck
2017-07-13 7:12 ` Christian Borntraeger
2017-07-13 7:27 ` Cornelia Huck
2017-07-13 7:35 ` Christian Borntraeger
2017-07-13 7:47 ` Cornelia Huck
2017-07-12 12:57 ` [Qemu-devel] [PATCH 09/11] s390x/flic: introduce inject_airq callback Christian Borntraeger
2017-07-12 15:12 ` Cornelia Huck
2017-07-12 12:57 ` [Qemu-devel] [PATCH 10/11] s390x/sic: realize SIC handling Christian Borntraeger
2017-07-12 13:40 ` Thomas Huth
2017-07-12 15:40 ` Cornelia Huck
2017-07-12 12:57 ` [Qemu-devel] [PATCH 11/11] s390x/css: update css_adapter_interrupt Christian Borntraeger
2017-07-12 14:26 ` Thomas Huth
2017-07-13 8:08 ` Christian Borntraeger
2017-07-13 8:18 ` Thomas Huth
2017-07-13 8:46 ` Cornelia Huck
2017-07-12 13:31 ` [Qemu-devel] [PATCH 00/11] pending s390 patches part 1 Cornelia Huck
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=20170712154903.12ae15f9@dhcp-192-215.str.redhat.com \
--to=cohuck@redhat.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=frankja@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).