From: Avi Kivity <avi@qumranet.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Carsten Otte <cotte@de.ibm.com>, kvm <kvm@vger.kernel.org>,
Olaf Schnapper <os@de.ibm.com>,
Hollis Blanchard <hollisb@us.ibm.com>
Subject: Re: [PATCH] libkvm-s390
Date: Mon, 14 Jul 2008 14:44:09 +0300 [thread overview]
Message-ID: <487B3C09.9030406@qumranet.com> (raw)
In-Reply-To: <200807141333.56783.borntraeger@de.ibm.com>
Christian Borntraeger wrote:
>
>>> +#define LIBKVM_S390_ORIGIN (0UL)
>>>
>> Thought you got rid of that?
>>
>
> Sort of. We have the kernel code ready to move away the guest from address 0.
> To achieve that goal we use the offset and limit field in the control block.
> Thing is, on older models the offset and limit must be < 128GB. that means we
> still cannot use randomly allocated memory. LIBKVM_S390_ORIGIN=1M,2M or 16M
> would be perfectly fine, 2TB (typical malloc space) is not.
> Furthermore, this change is still in kvm.git, but not in Linus git.
> Therefore, we would like to keep the guest at 0 and fix that at a later time,
> ok?
>
Certainly. I suggest exposing this via a KVM_CAP_blah and adapting at
runtime.
Placing the guest at offset zero is dangerous, since all a guest has to
do is place a function at guest physical address zero and wait for a
kernel bug that calls a null function pointer (at least, it would behave
like that on x86, provided no-execute was disabled; it may well be that
s390 has additional protection).
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-07-14 11:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 17:29 [PATCH] libkvm-s390 Carsten Otte
2008-07-13 8:29 ` Avi Kivity
2008-07-14 11:33 ` Christian Borntraeger
2008-07-14 11:44 ` Avi Kivity [this message]
2008-07-14 12:25 ` Christian Borntraeger
2008-07-14 15:34 ` Anthony Liguori
2008-07-14 17:00 ` Christian Borntraeger
2008-07-14 18:00 ` Anthony Liguori
2008-07-16 15:28 ` [PATCH v2/RFC] libkvm-s390 Christian Borntraeger
2008-07-17 11:08 ` Christian Ehrhardt
2008-07-17 15:28 ` [PATCH v3] libkvm-s390 Christian Borntraeger
2008-07-19 7:56 ` Avi Kivity
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=487B3C09.9030406@qumranet.com \
--to=avi@qumranet.com \
--cc=borntraeger@de.ibm.com \
--cc=cotte@de.ibm.com \
--cc=hollisb@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=os@de.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox