acpi-build.c (dc907b5cac14ef06f59963d697e81ff2516b9b3f) acpi-build.c (a82fe82916432091ca6fcbd7f357cccf35f6e80d)
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
4 * Copyright (C) 2006 Fabrice Bellard
5 * Copyright (C) 2013 Red Hat Inc
6 *
7 * Author: Michael S. Tsirkin <mst@redhat.com>
8 *

--- 1959 unchanged lines hidden (view full) ---

1968 * tried to remove it with some ancient guest OS, however I can't remember
1969 * what that was so keep this around for now
1970 */
1971 slots = (table_data->len - numa_mem_start) / 40 /* mem affinity len */;
1972 for (; slots < nb_numa_nodes + 2; slots++) {
1973 build_srat_memory(table_data, 0, 0, 0, MEM_AFFINITY_NOFLAGS);
1974 }
1975
1/* Support for generating ACPI tables and passing them to Guests
2 *
3 * Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
4 * Copyright (C) 2006 Fabrice Bellard
5 * Copyright (C) 2013 Red Hat Inc
6 *
7 * Author: Michael S. Tsirkin <mst@redhat.com>
8 *

--- 1959 unchanged lines hidden (view full) ---

1968 * tried to remove it with some ancient guest OS, however I can't remember
1969 * what that was so keep this around for now
1970 */
1971 slots = (table_data->len - numa_mem_start) / 40 /* mem affinity len */;
1972 for (; slots < nb_numa_nodes + 2; slots++) {
1973 build_srat_memory(table_data, 0, 0, 0, MEM_AFFINITY_NOFLAGS);
1974 }
1975
1976 build_srat_generic_pci_initiator(table_data);
1976 build_srat_generic_affinity_structures(table_data);
1977
1978 /*
1979 * Entry is required for Windows to enable memory hotplug in OS
1980 * and for Linux to enable SWIOTLB when booted with less than
1981 * 4G of RAM. Windows works better if the entry sets proximity
1982 * to the highest NUMA node in the machine.
1983 * Memory devices may override proximity set by this entry,
1984 * providing _PXM method if necessary.

--- 757 unchanged lines hidden ---
1977
1978 /*
1979 * Entry is required for Windows to enable memory hotplug in OS
1980 * and for Linux to enable SWIOTLB when booted with less than
1981 * 4G of RAM. Windows works better if the entry sets proximity
1982 * to the highest NUMA node in the machine.
1983 * Memory devices may override proximity set by this entry,
1984 * providing _PXM method if necessary.

--- 757 unchanged lines hidden ---