All of lore.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@suse.de>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: Can't boot as Xen dom0 due to commit fe055896
Date: Thu, 15 Dec 2016 18:36:09 +0100	[thread overview]
Message-ID: <20161215173609.ornfok6lk5oro2pj@pd.tnic> (raw)
In-Reply-To: <d92fb691-6671-63c9-ba42-f8a2d411cb1e@oracle.com>

On Thu, Dec 15, 2016 at 12:27:49PM -0500, Boris Ostrovsky wrote:
> It will probably fix it but I don't think we want this: it's a
> build-time solution. Most kernels have XEN on even though they are
> booted bare-metal.

Lemme tell you want I want: a way to detect I'm running on xen. Does
CPUID(4) work really early, at load_ucode_bsp() time?

IOW, can I use some of the functionality hypervisor_cpuid_base() uses to
detect xen and stop loading any further?

> I meant, for example:
> 
>         proc_fam = find_cpu_family_by_equiv_cpu(proc_id);
>         if (!proc_fam) {
>                 pr_err("No patch family for equiv ID: 0x%04x\n", proc_id);
>                 return crnt_size;
>         }
> 
> -boris
> 
> > It returns
> > crnt_size which can be a positive number so that we can advance to the
> > next patch in the blob.
^^^^^^^^^^^^^^^

Read what I wrote here.

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

WARNING: multiple messages have this Message-ID (diff)
From: Borislav Petkov <bp@suse.de>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Can't boot as Xen dom0 due to commit fe055896
Date: Thu, 15 Dec 2016 18:36:09 +0100	[thread overview]
Message-ID: <20161215173609.ornfok6lk5oro2pj@pd.tnic> (raw)
In-Reply-To: <d92fb691-6671-63c9-ba42-f8a2d411cb1e@oracle.com>

On Thu, Dec 15, 2016 at 12:27:49PM -0500, Boris Ostrovsky wrote:
> It will probably fix it but I don't think we want this: it's a
> build-time solution. Most kernels have XEN on even though they are
> booted bare-metal.

Lemme tell you want I want: a way to detect I'm running on xen. Does
CPUID(4) work really early, at load_ucode_bsp() time?

IOW, can I use some of the functionality hypervisor_cpuid_base() uses to
detect xen and stop loading any further?

> I meant, for example:
> 
>         proc_fam = find_cpu_family_by_equiv_cpu(proc_id);
>         if (!proc_fam) {
>                 pr_err("No patch family for equiv ID: 0x%04x\n", proc_id);
>                 return crnt_size;
>         }
> 
> -boris
> 
> > It returns
> > crnt_size which can be a positive number so that we can advance to the
> > next patch in the blob.
^^^^^^^^^^^^^^^

Read what I wrote here.

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-12-15 17:37 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 16:12 Can't boot as Xen dom0 due to commit fe055896 Juergen Gross
2016-12-15 16:46 ` Borislav Petkov
2016-12-15 16:46   ` Borislav Petkov
2016-12-15 16:53   ` [Xen-devel] " Jan Beulich
2016-12-15 16:53     ` Jan Beulich
2016-12-15 16:59     ` Andrew Cooper
2016-12-15 16:59     ` [Xen-devel] " Andrew Cooper
2016-12-15 17:14       ` Borislav Petkov
2016-12-15 17:14         ` Borislav Petkov
2016-12-15 17:00   ` Boris Ostrovsky
2016-12-15 17:17     ` Borislav Petkov
2016-12-15 17:17     ` Borislav Petkov
2016-12-15 17:27       ` Boris Ostrovsky
2016-12-15 17:27         ` Boris Ostrovsky
2016-12-15 17:36         ` Borislav Petkov [this message]
2016-12-15 17:36           ` Borislav Petkov
2016-12-15 19:08           ` Boris Ostrovsky
2016-12-15 19:08           ` Boris Ostrovsky
2016-12-15 19:23             ` Borislav Petkov
2016-12-15 19:23               ` Borislav Petkov
2016-12-15 19:36               ` Boris Ostrovsky
2016-12-15 19:36                 ` Boris Ostrovsky
2016-12-15 20:03                 ` Borislav Petkov
2016-12-15 22:56                   ` Boris Ostrovsky
2016-12-15 22:56                     ` Boris Ostrovsky
2016-12-15 23:04                     ` Borislav Petkov
2016-12-16  3:56                       ` Boris Ostrovsky
2016-12-16  3:56                         ` Boris Ostrovsky
2016-12-16  9:01                         ` Borislav Petkov
2016-12-16  9:01                         ` Borislav Petkov
2016-12-16  9:14                           ` [Xen-devel] " Andrew Cooper
2016-12-16  9:14                             ` Andrew Cooper
2016-12-16  4:14                       ` Henrique de Moraes Holschuh
2016-12-16  4:14                         ` Henrique de Moraes Holschuh
2016-12-15 23:04                     ` Borislav Petkov
2016-12-15 20:03                 ` Borislav Petkov
2016-12-16  7:28           ` Juergen Gross
2016-12-16  7:28           ` Juergen Gross
2016-12-16  9:02             ` Borislav Petkov
2016-12-16  9:02             ` Borislav Petkov
2016-12-16  9:20               ` Juergen Gross
2016-12-16  9:20               ` Juergen Gross
2016-12-16  9:43                 ` Borislav Petkov
2016-12-16  9:43                 ` Borislav Petkov
2016-12-16 10:00                   ` Juergen Gross
2016-12-16 10:45                     ` Borislav Petkov
2016-12-16 10:45                       ` Borislav Petkov
2016-12-16 12:15                       ` Juergen Gross
2016-12-16 12:15                       ` Juergen Gross
2016-12-16 12:19                         ` Borislav Petkov
2016-12-16 12:19                           ` Borislav Petkov
2016-12-16 13:07                           ` Borislav Petkov
2016-12-16 13:07                           ` Borislav Petkov
2016-12-16 14:40                             ` Boris Ostrovsky
2016-12-16 14:40                               ` Boris Ostrovsky
2016-12-16 15:17                               ` Borislav Petkov
2016-12-16 15:17                               ` Borislav Petkov
2016-12-16 10:00                   ` Juergen Gross
2016-12-15 17:00   ` Boris Ostrovsky
2016-12-15 17:06   ` Juergen Gross
2016-12-15 17:06     ` Juergen Gross
  -- strict thread matches above, loose matches on Subject: below --
2016-12-15 16:12 Juergen Gross

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=20161215173609.ornfok6lk5oro2pj@pd.tnic \
    --to=bp@suse.de \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.