xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>,
	Nitin A Kamble <nitin.a.kamble@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: RE: [PATCH] to fix ACPI slit table access at runtime
Date: Fri, 26 Feb 2010 08:36:18 +0000	[thread overview]
Message-ID: <4B8796120200007800031701@vpn.id2.novell.com> (raw)
In-Reply-To: <8EA2C2C4116BF44AB370468FBF85A7770124F8BB50@orsmsx504.amr.corp.intel.com>

But the alloc_boot_pages() isn't done on x86-64 only, as Keir pointed
out has to be the case.

Jan

>>> "Kamble, Nitin A" <nitin.a.kamble@intel.com> 25.02.10 20:31 >>>
> Keir, here is the updated patch. I did verify that it is giving right information at runtime.

This is re-updated and bit simplified patch.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>


diff -r b474725a242b xen/arch/x86/srat.c
--- a/xen/arch/x86/srat.c	Thu Feb 25 07:50:38 2010 -0800
+++ b/xen/arch/x86/srat.c	Fri Feb 26 03:26:08 2010 -0800
@@ -140,11 +140,18 @@
 /* Callback for SLIT parsing */
 void __init acpi_numa_slit_init(struct acpi_table_slit *slit)
 {
+	unsigned long mfn;
 	if (!slit_valid(slit)) {
 		printk(KERN_INFO "ACPI: SLIT table looks invalid. Not used.\n");
 		return;
 	}
-	acpi_slit = slit;
+	mfn = alloc_boot_pages(PFN_UP(slit->header.length), 1);
+	if (!mfn) {
+		printk(KERN_ERR "ACPI: Unable to allocate memory for saving ACPI SLIT numa information.\n");
+		return;
+	}
+	acpi_slit = mfn_to_virt(mfn);
+	memcpy(acpi_slit, slit, slit->header.length);
 }
 
 /* Callback for Proximity Domain -> LAPIC mapping */


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com 
http://lists.xensource.com/xen-devel

  reply	other threads:[~2010-02-26  8:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  0:06 [PATCH] to fix ACPI slit table access at runtime Kamble, Nitin A
2010-02-25 12:13 ` Keir Fraser
2010-02-25 13:03   ` Jan Beulich
2010-02-25 13:16     ` Keir Fraser
2010-02-25 13:35       ` [PATCH] " Jan Beulich
2010-02-25 17:50   ` Kamble, Nitin A
2010-02-25 18:01     ` Keir Fraser
2010-02-25 18:47       ` Kamble, Nitin A
2010-02-25 21:53         ` Warning in current pv_ops Kernel Carsten Schiers
2010-02-25 21:57           ` Pasi Kärkkäinen
2010-02-25 19:31       ` [PATCH] to fix ACPI slit table access at runtime Kamble, Nitin A
2010-02-26  8:36         ` Jan Beulich [this message]
2010-02-26 18:37           ` Kamble, Nitin A

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=4B8796120200007800031701@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=nitin.a.kamble@intel.com \
    --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;
as well as URLs for NNTP newsgroup(s).