Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235469

Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled

Path csiph.com!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod
From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled
Date Tue, 29 Sep 2015 20:30:02 +0200
Message-ID <qe7P4-5Ze-7@gated-at.bofh.it> (permalink)
References <qd254-7y5-9@gated-at.bofh.it> <qd3Nw-1lI-19@gated-at.bofh.it> <qd4qe-2k7-11@gated-at.bofh.it> <qdBvQ-7TG-9@gated-at.bofh.it> <qdG2u-5Zh-21@gated-at.bofh.it> <qdZ58-1ZA-13@gated-at.bofh.it> <qe72H-4PH-19@gated-at.bofh.it> <qe7P3-5Ze-5@gated-at.bofh.it>
X-Original-To "H. Peter Anvin" <hpa@zytor.com>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=A/KYWfrRHMrNpKdflirqMppbAVV9qhedW0n3ErK8xQY=; b=TcgIrTnHrXNL7OpZWupeLj8HbtNhlVQ5gFN0BMN3Y0o5X0dUenBxkjDVkk2Q8bi7XZ 3Fu7WnAVyC169nRVhNKpwjBaqbP1K+NLLoHmzbC+rxTs0ImNm7Nj0rWtQ96f9ibl57CN Hta6T6kVrmYSi+aXqNTk+obIEJhJr2JMdt6MLy4Bi2tvNWagLrZtBlNXE5IML4L+MXDB iCpMVOmlP0FgtPgo7o6O4P3/5jVUnsVvn3TXt2i+vHLl9eW8FO8Kjyo3BkTasLTbDPVs bH4zlfGrbHKgF2098nrNVoZOAcaepAvXgEEtDHvzV4gmhV0bKHF0NGA7y+ppcSTLa7nq 9xdQ==
X-Gm-Message-State ALoCoQkzNFdk7FL3UMxiQRfwaDJMDPefXMOeSi1bU5NeaJwEz49EO5gH52jO4FGgWeADgtFA9BPP
X-Received by 10.60.123.2 with SMTP id lw2mr16809396oeb.2.1443550944128; Tue, 29 Sep 2015 11:22:24 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8BIT
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 13
Organization linux.* mail to news gateway
X-Original-Cc Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Paolo Bonzini <pbonzini@redhat.com>, Denys Vlasenko <dvlasenk@redhat.com>, Borislav Petkov <bp@alien8.de>, Andrew Morton <akpm@linux-foundation.org>, David Vrabel <david.vrabel@citrix.com>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Brian Gerst <brgerst@gmail.com>, Linus Torvalds <torvalds@linux-foundation.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Gleb Natapov <gleb@kernel.org>, Kees Cook <keescook@chromium.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Peter Zijlstra <a.p.zijlstra@chello.nl>, Joerg Roedel <joro@8bytes.org>, X86 ML <x86@kernel.org>, kvm list <kvm@vger.kernel.org>
X-Original-Date Tue, 29 Sep 2015 11:22:04 -0700
X-Original-Message-ID <CALCETrW-JFTuEJJke0EMbj5xNKvdqm5aZaT-xV8QS8o+m7vxgA@mail.gmail.com>
X-Original-References <1443290440-14930-1-git-send-email-dvlasenk@redhat.com> <706E9982-24E3-442B-808A-172909449DD4@zytor.com> <56070241.2030407@redhat.com> <20150928075851.GA23998@gmail.com> <56093657.8070409@redhat.com> <20150929090112.GA1400@gmail.com> <CALCETrV3hMxSbX+eUZYLffVzcCTxAtr=tN2W69eF8=ismM=PBw@mail.gmail.com> <7B91910F-C8B5-4E8B-BE1C-15B1E45FA345@zytor.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1235469

Show key headers only | View raw


On Tue, Sep 29, 2015 at 11:18 AM, H. Peter Anvin <hpa@zytor.com> wrote:
> SGDT would be easy to use, and it is logical that it is faster since it reads an internal register.  SIDT does too but unlike the GDT has a secondary limit (it can never be larger than 4096 bytes) and so all limits in the range 4095-65535 are exactly equivalent.
>

Using the IDT limit would have been a great ideal if Intel hadn't
decided to clobber it on every VM exit.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-26 20:10 +0200
  Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-26 22:00 +0200
    Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-26 22:40 +0200
      Re: [PATCH] x86: Use entire page for the per-cpu GDT only if  paravirt-enabled Ingo Molnar <mingo@kernel.org> - 2015-09-28 10:00 +0200
        Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Denys Vlasenko <dvlasenk@redhat.com> - 2015-09-28 14:50 +0200
          Re: [PATCH] x86: Use entire page for the per-cpu GDT only if  paravirt-enabled Ingo Molnar <mingo@kernel.org> - 2015-09-29 11:10 +0200
            Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Andy Lutomirski <luto@amacapital.net> - 2015-09-29 19:40 +0200
              Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-29 20:00 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Andy Lutomirski <luto@amacapital.net> - 2015-09-29 20:10 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if  paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-29 22:40 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled ebiederm@xmission.com (Eric W. Biederman) - 2015-09-30 03:30 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if  paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-30 03:40 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled ebiederm@xmission.com (Eric W. Biederman) - 2015-09-30 04:20 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-30 04:30 +0200
              Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-29 20:30 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled "H. Peter Anvin" <hpa@zytor.com> - 2015-09-29 20:30 +0200
                Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled Andy Lutomirski <luto@amacapital.net> - 2015-09-29 20:30 +0200

csiph-web