Re: [PATCH 3/5] lscpu: detect OS/400 and pHyp hypervisors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 21, 2014 at 11:43:46AM +0200, Ruediger Meier wrote:
> On Wednesday 21 May 2014, Karel Zak wrote:
> > On Tue, May 20, 2014 at 03:42:29PM +0000, Ruediger Meier wrote:
> > >  const int hv_vendor_pci[] = {
> > > @@ -574,6 +577,51 @@ read_hypervisor_cpuid(struct lscpu_desc *desc)
> > >  static void
> > >  read_hypervisor_cpuid(struct lscpu_desc *desc
> > > __attribute__((__unused__))) {
> > > +#ifdef __powerpc__
> > > +	/* powerpc:
> > > +	 * IBM iSeries: legacy, if /proc/iSeries exists, its
> > > para-virtualized on top of OS/400 +	 * IBM pSeries: always has a
> > > hypervisor
> > > +	 *              if partition-name is "full", its kind of
> > > "bare-metal": full-system-partition +	 *              otherwise its
> > > some partition created by Hardware Management Console +	 *         
> > >     in any case, its always some sort of HVM +	 * KVM: "linux,kvm"
> > > in /hypervisor/compatible indicates a KVM guest +	 * Xen: not in
> > > use, not detected
> > > +	 */
> >
> >  I don't see relation between this code and CPU ID. Why this  codes
> > is with in read_hypervisor_cpuid() ?
> >
> >  Wouldn't be better to add  read_powerpc_hypervisor() and call it
> > from read_hypervisor()?
> 
> Yes, I would call it like this, ok?

 OK.

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux