From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>,
the arch/x86 maintainers <x86@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Xen-devel <xen-devel@lists.xensource.com>,
Stephen Tweedie <sct@redhat.com>,
Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Subject: Re: [PATCH 05/16] xen mtrr: Add mtrr_ops support for Xen mtrr
Date: Wed, 03 Jun 2009 16:34:19 +1000 [thread overview]
Message-ID: <4A26196B.10402@goop.org> (raw)
In-Reply-To: <alpine.LFD.2.00.0906021729260.3419@localhost.localdomain>
Thomas Gleixner wrote:
> On Tue, 12 May 2009, Jeremy Fitzhardinge wrote:
>
>> if (cpu_has_mtrr) {
>> mtrr_if = &generic_mtrr_ops;
>> +#ifdef CONFIG_XEN_DOM0
>> + xen_init_mtrr();
>> +#endif
>> +
>>
>
> No #ifdefs please. Also isn't there some common place where Xen can
> do all of it's magic extra init ?
>
This init function overrides mtrr_if if its running under Xen, so it
needs to happen here. But we can certainly lose the #ifdef.
> Aside of that this patch needs to be split into two. One adding the
> num_var_ranges op and one adding the Xen bits.
>
OK.
>> +#include <xen/interface/platform.h>
>> +#include <asm/xen/hypervisor.h>
>> +#include <asm/xen/hypercall.h>
>> +
>> +static int __init xen_num_var_ranges(void);
>>
>
> Can we move the function here please ?
>
OK.
>> +/* DOM0 TODO: Need to fill in the remaining mtrr methods to have full
>> + * working userland mtrr support. */
>> +static struct mtrr_ops xen_mtrr_ops = {
>> + .vendor = X86_VENDOR_UNKNOWN,
>> + .get_free_region = generic_get_free_region,
>> + .have_wrcomb = positive_have_wrcomb,
>> + .use_intel_if = 0,
>> + .num_var_ranges = xen_num_var_ranges,
>> +};
>> +
>> +static int __init xen_num_var_ranges(void)
>> +{
>> + int ranges;
>> + struct xen_platform_op op;
>> +
>> + for (ranges = 0; ; ranges++) {
>> + op.cmd = XENPF_read_memtype;
>>
>
> Is op.cmd changed in the hypervisor call ?
>
No, it can be hoisted.
> cpu_has_mtrr ..... please
>
OK.
Thanks,
J
next prev parent reply other threads:[~2009-06-03 6:34 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 21:28 [GIT PULL] xen dom0 core changes Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 01/16] xen dom0: Make hvc_xen console work for dom0 Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 02/16] xen dom0: Initialize xenbus " Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 03/16] xen dom0: Set up basic IO permissions " Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 04/16] xen dom0: Add support for the platform_ops hypercall Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 05/16] xen mtrr: Add mtrr_ops support for Xen mtrr Jeremy Fitzhardinge
2009-06-02 15:36 ` Thomas Gleixner
2009-06-03 6:34 ` Jeremy Fitzhardinge [this message]
2009-05-12 21:28 ` [PATCH 06/16] xen: disable PAT Jeremy Fitzhardinge
2009-06-02 15:37 ` Thomas Gleixner
2009-06-03 6:33 ` Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 07/16] xen/dom0: use _PAGE_IOMAP in ioremap to do machine mappings Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 08/16] xen/dom0: Use host E820 map Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 09/16] xen: implement XENMEM_machphys_mapping Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 10/16] xen: clear reserved bits in l3 entries given in the initial pagetables Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 11/16] xen: allow enable use of VGA console on dom0 Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 12/16] xen/dom0: add XEN_DOM0 config option Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 13/16] x86: make /dev/mem mappings _PAGE_IOMAP Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 14/16] paravirtualize IO permission bitmap Jeremy Fitzhardinge
2009-06-02 16:11 ` Thomas Gleixner
2009-06-03 6:36 ` Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 15/16] x86: don't need "changed" parameter for set_io_bitmap() Jeremy Fitzhardinge
2009-05-12 21:28 ` [PATCH 16/16] xen/i386: make sure initial VGA/ISA mappings are not overridden Jeremy Fitzhardinge
-- strict thread matches above, loose matches on Subject: below --
2009-05-27 7:15 [GIT PULL REPOST] xen/dom0/core - core Xen dom0 support changes Jeremy Fitzhardinge
2009-05-27 7:15 ` [PATCH 05/16] xen mtrr: Add mtrr_ops support for Xen mtrr Jeremy Fitzhardinge
2009-05-07 21:10 [GIT PULL] xen: core dom0 support Jeremy Fitzhardinge
2009-05-07 21:10 ` [PATCH 05/16] xen mtrr: Add mtrr_ops support for Xen mtrr Jeremy Fitzhardinge
2009-05-08 11:17 ` Ingo Molnar
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=4A26196B.10402@goop.org \
--to=jeremy@goop.org \
--cc=jeremy.fitzhardinge@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=sct@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xensource.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