From: Carsten Otte <cotte@de.ibm.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Christian Ehrhardt <EHRHARDT@de.ibm.com>,
arnd@arndb.de, hollisb@us.ibm.com, carsteno@de.ibm.com,
mschwid2@linux.vnet.ibm.com, heicars2@linux.vnet.ibm.com,
jeroney@us.ibm.com, Avi Kivity <avi@qumranet.com>,
virtualization@lists.linux-foundation.org,
kvm-devel@lists.sourceforge.net, borntrae@linux.vnet.ibm.com,
rvdheij@gmail.com, Olaf Schnapper <os@de.ibm.com>,
jblunck@suse.de, "Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: [RFC/PATCH 14/15] guest: detect when running on kvm
Date: Thu, 20 Mar 2008 21:59:32 +0100 [thread overview]
Message-ID: <47E2D034.4090600@de.ibm.com> (raw)
In-Reply-To: <20080320194137.GA9975@infradead.org>
Christoph Hellwig wrote:
> On Thu, Mar 20, 2008 at 09:37:19PM +0100, Carsten Otte wrote:
>> Christoph Hellwig wrote:
>>> On Thu, Mar 20, 2008 at 05:25:26PM +0100, Carsten Otte wrote:
>>>> @@ -143,6 +143,10 @@ static noinline __init void detect_machi
>>>> /* Running on a P/390 ? */
>>>> if (cpuinfo->cpu_id.machine == 0x7490)
>>>> machine_flags |= 4;
>>>> +
>>>> + /* Running under KVM ? */
>>>> + if (cpuinfo->cpu_id.version == 0xfe)
>>>> + machine_flags |= 64;
>>> Shouldn't these have symbolic names?
>> You mean symbolics for machine_flags? Or symbolics for cpu ids?
>
> Either.
Hmmh. For cpu id's did'nt make sense probably until now that kvm also
uses them. Before, this was the only one place that uses them.
With kvm and 0xfe, this one is sort of temporary one. We intend to
rework this code to use "store system information", which would give
us way more information about the machine and it's hypervisor
topology. Up until my todo list gets to that point, I think we'll have
to cope with a temporary number. We'll aim for making that change
before 2.6.26 gets released.
The machine flags do have symbolic names, defined in
include/asm-s390/setup.h. And yea, they should be used here. Will
change that.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-03-20 20:59 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1206028710.6690.21.camel@cotte.boeblingen.de.ibm.com>
2008-03-20 16:24 ` [RFC/PATCH 01/15] preparation: provide hook to enable pgstes in user pagetable Carsten Otte
2008-03-20 17:28 ` Jeremy Fitzhardinge
2008-03-20 19:13 ` Dave Hansen
2008-03-20 20:35 ` Carsten Otte
2008-03-21 18:29 ` [kvm-devel] " Dave Hansen
2008-03-21 19:03 ` Carsten Otte
2008-03-22 17:57 ` Heiko Carstens
2008-03-23 10:15 ` Avi Kivity
2008-03-23 18:23 ` [kvm-devel] " Martin Schwidefsky
2008-03-24 6:57 ` Avi Kivity
2008-03-25 6:08 ` Carsten Otte
2008-03-25 6:12 ` Avi Kivity
2008-03-25 15:37 ` Carsten Otte
2008-03-20 16:24 ` [RFC/PATCH 02/15] preparation: host memory management changes for s390 kvm Carsten Otte
2008-03-20 16:24 ` [RFC/PATCH 03/15] preparation: address of the 64bit extint parm in lowcore Carsten Otte
2008-03-20 16:24 ` [RFC/PATCH 04/15] preparation: split sysinfo defintions for kvm use Carsten Otte
2008-03-20 16:24 ` [RFC/PATCH 05/15] kvm-s390: s390 arch backend for the kvm kernel module Carsten Otte
2008-03-20 16:43 ` [RFC/PATCH 05/15] KVM_MAX_VCPUS Hollis Blanchard
2008-03-20 16:48 ` Carsten Otte
2008-03-21 10:41 ` [kvm-devel] " Avi Kivity
2008-03-21 11:13 ` Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 06/15] kvm-s390: sie intercept handling Carsten Otte
2008-03-21 10:53 ` [kvm-devel] " Avi Kivity
2008-03-21 11:26 ` Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 07/15] kvm-s390: interrupt subsystem, cpu timer, waitpsw Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 08/15] kvm-s390: intercepts for privileged instructions Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 09/15] kvm-s390: interprocessor communication via sigp Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 10/15] kvm-s390: intercepts for diagnose instructions Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 11/15] kvm-s390: add kvm to kconfig on s390 Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 12/15] kvm-s390: API documentation Carsten Otte
2008-03-20 17:22 ` Randy Dunlap
2008-03-21 10:33 ` [kvm-devel] " Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 13/15] kvm-s390: update maintainers Carsten Otte
2008-03-20 16:25 ` [RFC/PATCH 14/15] guest: detect when running on kvm Carsten Otte
2008-03-20 17:16 ` Randy Dunlap
2008-03-20 17:27 ` Carsten Otte
2008-03-20 17:53 ` Christoph Hellwig
2008-03-20 20:37 ` Carsten Otte
2008-03-20 19:41 ` Christoph Hellwig
2008-03-20 20:59 ` Carsten Otte [this message]
2008-03-20 21:22 ` Heiko Carstens
2008-03-21 11:12 ` Carsten Otte
2008-03-21 14:06 ` Heiko Carstens
2008-03-21 14:33 ` Carsten Otte
2008-03-22 17:25 ` Heiko Carstens
2008-03-20 16:25 ` [RFC/PATCH 15/15] guest: virtio device support, and kvm hypercalls Carsten Otte
2008-03-21 0:24 ` Rusty Russell
2008-03-21 7:12 ` Carsten Otte
2008-03-21 8:15 ` Christian Borntraeger
2008-03-21 23:30 ` Rusty Russell
2008-03-22 7:36 ` Carsten Otte
2008-03-21 10:44 ` 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=47E2D034.4090600@de.ibm.com \
--to=cotte@de.ibm.com \
--cc=EHRHARDT@de.ibm.com \
--cc=arnd@arndb.de \
--cc=avi@qumranet.com \
--cc=borntrae@linux.vnet.ibm.com \
--cc=carsteno@de.ibm.com \
--cc=hch@infradead.org \
--cc=heicars2@linux.vnet.ibm.com \
--cc=hollisb@us.ibm.com \
--cc=jblunck@suse.de \
--cc=jeroney@us.ibm.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=mschwid2@linux.vnet.ibm.com \
--cc=os@de.ibm.com \
--cc=rvdheij@gmail.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=xiantao.zhang@intel.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