From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andre Przywara" Subject: [PATCH 0/4] [HVM] NUMA support in HVM guests Date: Mon, 13 Aug 2007 12:01:04 +0200 Message-ID: <46C02BE0.2070400@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, these four patches allow to forward NUMA characteristics into HVM guests. This works by allocating memory explicitly from different NUMA=20 nodes and create an appropriate SRAT-ACPI table which describes the=20 topology. Needs a decent guest kernel which uses the SRAT table to=20 discover the NUMA topology. This allows to break the current de-facto limitation of guests to one=20 NUMA node, one can use more memory and/or more VCPUs than there are=20 available on one node. Patch 1/4: introduce numanodes=3Dn config file option. this states how many NUMA nodes the guest should see, the default is 0,=20 which means to turn off most parts of the code. Patch 2/4: introduce CPU affinity for allocate_physmap call. currently=20 the correct NUMA node to take the memory from is chosen by simply using=20 the currently scheduled CPU, this patch allows to explicitly specify a=20 CPU and provides XENMEM_DEFAULT_CPU for the old behavior Patch 3/4: allocate memory with NUMA in mind. actually look at the numanodes=3Dn option to split the memory request up into n parts and allocate it from different nodes. Also change the VCPUs affinity to match the nodes. Patch 4/4: inject created SRAT table into the guest. create a SRAT table, fill it up with the desired NUMA topology and inject it into the guest Applies against staging c/s #15719. Signed-off-by: Andre Przywara Regards, Andre. --=20 Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden,=20 Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington,=20 Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy