521c6d4a-x86-don-t-allow-Dom0-access-to-the-MSI-address-range.patch 521c6d6c-x86-don-t-allow-Dom0-access-to-the-HT-address-range.patch 521c6e23-x86-Intel-add-support-for-Haswell-CPU-models.patch 521db25f-Fix-inactive-timer-list-corruption-on-second-S3-resume.patch 521e1156-x86-AVX-instruction-emulation-fixes.patch 521ef8d9-AMD-IOMMU-add-missing-checks.patch 52205a7d-hvmloader-smbios-Correctly-count-the-number-of-tables-written.patch 52205a90-public-hvm_xs_strings.h-Fix-ABI-regression-for-OEM-SMBios-strings.patch 52205e27-x86-xsave-initialization-improvements.patch 5226020f-xend-handle-extended-PCI-configuration-space-when-saving-state.patch 52260214-xend-fix-file-descriptor-leak-in-pci-utilities.patch 52285317-hvmloader-fix-SeaBIOS-interface.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=271
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
# Commit 4aa19549e17650b9bfe2b31d7f52a95696d388f0
|
|
# Date 2013-08-30 10:40:29 +0200
|
|
# Author Andrew Cooper <andrew.cooper3@citrix.com>
|
|
# Committer Jan Beulich <jbeulich@suse.com>
|
|
hvmloader/smbios: Correctly count the number of tables written
|
|
|
|
Fixes regression indirectly introduced by c/s 4d23036e709627
|
|
|
|
That changeset added some smbios tables which were option based on the
|
|
toolstack providing appropriate xenstore keys. The do_struct() macro would
|
|
unconditionally increment nr_structs, even if a table was not actually
|
|
written.
|
|
|
|
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
|
|
Acked-by: Keir Fraser <keir@xen.org>
|
|
|
|
--- 2013-08-30.orig/tools/firmware/hvmloader/smbios.c 2013-07-09 20:57:12.000000000 +0200
|
|
+++ 2013-08-30/tools/firmware/hvmloader/smbios.c 2013-09-09 11:23:52.000000000 +0200
|
|
@@ -192,7 +192,8 @@ write_smbios_tables(void *ep, void *star
|
|
|
|
#define do_struct(fn) do { \
|
|
q = (fn); \
|
|
- (*nr_structs)++; \
|
|
+ if ( q != p ) \
|
|
+ (*nr_structs)++; \
|
|
if ( (q - p) > *max_struct_size ) \
|
|
*max_struct_size = q - p; \
|
|
p = q; \
|