mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>,
	Andy Lutomirski <luto@amacapital.net>,
	x86@kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: Is GET_CR0_INTO_EAX macro unused?
Date: Tue, 3 Oct 2017 21:41:13 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1710032139040.2278@nanos> (raw)
In-Reply-To: <9138e8d1-9e31-5ac7-a5cd-727967a847ef@redhat.com>

On Mon, 2 Oct 2017, Denys Vlasenko wrote:

> Hi Andy,
> 
> From by git archaeology, looks like last use of GET_CR0_INTO_EAX
> was removed long ago, in 2008 (see commit below).
> 
> Right now, I only grep it here in a comment in entry_32.S:
> /*
>  * We use macros for low-level operations which need to be overridden
>  * for paravirtualization.  The following will never clobber any registers:
>  *   INTERRUPT_RETURN (aka. "iret")
>  *   GET_CR0_INTO_EAX (aka. "movl %cr0, %eax")
> 
> To support GET_CR0_INTO_EAX, paravirt has PV_CPU_read_cr0 a.k.a.
> struct pv_cpu_ops::read_cr0 and a bunch of code to support it
> for each hypervisor.
> 
> Can we delete it?
> Or am I missing a non-obvious place where this macro is still in use?

That thing was simply forgotten and bitrots happily since 2008.

Thanks,

	tglx

      reply	other threads:[~2017-10-03 19:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 12:36 Denys Vlasenko
2017-10-03 19:41 ` Thomas Gleixner [this message]

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=alpine.DEB.2.20.1710032139040.2278@nanos \
    --to=tglx@linutronix.de \
    --cc=dvlasenk@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=luto@kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®