From: Claudio Imbrenda <imbrenda@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: frankja@linux.ibm.com, nrb@linux.ibm.com, seiden@linux.ibm.com,
scgl@linux.ibm.com, thuth@redhat.com
Subject: [kvm-unit-tests PATCH v1 2/2] s390x: uv-host: fix allocation of UV memory
Date: Tue, 18 Oct 2022 16:09:51 +0200 [thread overview]
Message-ID: <20221018140951.127093-3-imbrenda@linux.ibm.com> (raw)
In-Reply-To: <20221018140951.127093-1-imbrenda@linux.ibm.com>
Allocate the donated storage with 1M alignment from the normal pool, to
force it to be above 2G without wasting a whole 2G block of memory.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
---
s390x/uv-host.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/s390x/uv-host.c b/s390x/uv-host.c
index a1a6d120..e1fc0213 100644
--- a/s390x/uv-host.c
+++ b/s390x/uv-host.c
@@ -329,7 +329,7 @@ static void test_init(void)
struct psw psw;
/* Donated storage needs to be over 2GB */
- mem = (uint64_t)memalign(1UL << 31, uvcb_qui.uv_base_stor_len);
+ mem = (uint64_t)memalign_pages_flags(SZ_1M, uvcb_qui.uv_base_stor_len, AREA_NORMAL);
uvcb_init.header.len = sizeof(uvcb_init);
uvcb_init.header.cmd = UVC_CMD_INIT_UV;
--
2.37.3
next prev parent reply other threads:[~2022-10-18 14:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-18 14:09 [kvm-unit-tests PATCH v1 0/2] s390x misc fixes Claudio Imbrenda
2022-10-18 14:09 ` [kvm-unit-tests PATCH v1 1/2] lib: s390x: terminate if PGM interrupt in interrupt handler Claudio Imbrenda
2022-10-19 7:34 ` Nico Boehr
2022-10-19 9:51 ` Claudio Imbrenda
2022-10-20 7:58 ` Nico Boehr
2022-10-20 8:57 ` Claudio Imbrenda
2022-10-20 11:19 ` Janosch Frank
2022-10-20 11:45 ` Claudio Imbrenda
2022-10-20 12:12 ` Janosch Frank
2022-10-18 14:09 ` Claudio Imbrenda [this message]
2022-10-19 6:34 ` [kvm-unit-tests PATCH v1 2/2] s390x: uv-host: fix allocation of UV memory Janosch Frank
2022-10-20 8:07 ` Steffen Eiden
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=20221018140951.127093-3-imbrenda@linux.ibm.com \
--to=imbrenda@linux.ibm.com \
--cc=frankja@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=nrb@linux.ibm.com \
--cc=scgl@linux.ibm.com \
--cc=seiden@linux.ibm.com \
--cc=thuth@redhat.com \
/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.