Re: [GIT PULL] xen /proc/mtrr implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Wright
Date: Monday, May 18, 2009 - 10:51 am

* Ingo Molnar (mingo@elte.hu) wrote:

Could you be specific re: technical issues?  I see in the general mtrr
impact has one oddity:

+int __init common_num_var_ranges
+static int __init xen_num_var_ranges(void);
+.num_var_ranges    =

A bit unusual to have an __init function in an ops table.  Albeit safe in
this case.  Could slightly minimize impact by keeping setup_num_var_ranges
and have it do:

	if (mtrr_if->num_var_ranges)
		num_var_ranges = mtrr_if->num_var_ranges();
	else
		num_var_ranges = common_num_var_ranges;

Similarly, could do a simple inline stub to remove the extra ifdef.

+#ifdef CONFIG_XEN_DOM0
+		xen_init_mtrr();
+#endif

But those are pretty minor.  I think the changes proposed are pretty
small and reasonable to make existing /proc/mtrr usable in Xen dom0
(different discussion of when to formally deprecate /proc/mtrr).

thanks,
-chris
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Tue May 12, 4:27 pm)
[PATCH 3/6] xen mtrr: Use generic_validate_add_page(), Jeremy Fitzhardinge, (Tue May 12, 4:27 pm)
[PATCH 5/6] xen mtrr: Add xen_{get,set}_mtrr() implementations, Jeremy Fitzhardinge, (Tue May 12, 4:27 pm)
[PATCH 6/6] xen mtrr: Kill some unnecessary includes, Jeremy Fitzhardinge, (Tue May 12, 4:27 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Ingo Molnar, (Wed May 13, 6:30 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Wed May 13, 7:39 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Ingo Molnar, (Fri May 15, 11:27 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Fri May 15, 1:09 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Eric W. Biederman, (Fri May 15, 4:26 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Fri May 15, 4:49 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Jesse Barnes, (Fri May 15, 8:22 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Eric W. Biederman, (Fri May 15, 9:26 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Jesse Barnes, (Sat May 16, 11:22 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Sun May 17, 9:57 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Sun May 17, 10:02 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Ingo Molnar, (Mon May 18, 1:59 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Chris Wright, (Mon May 18, 10:51 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Mon May 18, 11:07 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Ingo Molnar, (Tue May 19, 2:59 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Andi Kleen, (Wed May 20, 1:16 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Wed May 20, 9:12 am)
Re: [Xen-devel] Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Wed May 20, 9:35 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Wed May 20, 9:39 am)
Re: [GIT PULL] xen /proc/mtrr implementation, Jeremy Fitzhardinge, (Wed May 20, 3:49 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, Andi Kleen, (Wed May 20, 3:52 pm)
Re: [GIT PULL] xen /proc/mtrr implementation, H. Peter Anvin, (Wed May 20, 4:03 pm)