1. 13 8月, 2015 1 次提交
  2. 19 3月, 2015 1 次提交
  3. 18 2月, 2015 1 次提交
  4. 27 1月, 2015 2 次提交
  5. 13 11月, 2014 1 次提交
  6. 02 11月, 2014 2 次提交
    • E
      smbios: Encode UUID according to SMBIOS specification · caad057b
      Eduardo Habkost 提交于
      Differently from older versions, SMBIOS version 2.6 is explicit about
      the encoding of UUID fields:
      
      > Although RFC 4122 recommends network byte order for all fields, the PC
      > industry (including the ACPI, UEFI, and Microsoft specifications) has
      > consistently used little-endian byte encoding for the first three fields:
      > time_low, time_mid, time_hi_and_version. The same encoding, also known as
      > wire format, should also be used for the SMBIOS representation of the UUID.
      >
      > The UUID {00112233-4455-6677-8899-AABBCCDDEEFF} would thus be represented
      > as 33 22 11 00 55 44 77 66 88 99 AA BB CC DD EE FF.
      
      The dmidecode tool implements this and decodes the above "wire format"
      when SMBIOS version >= 2.6. We moved from SMBIOS version 2.4 to 2.8 when
      we started building the SMBIOS entry point inside QEMU, on commit
      c97294ec.
      
      Change smbios_build_type_1_table() to encode the UUID as specified.
      
      To make sure we won't change the guest-visible UUID when upgrading to a
      newer QEMU version, keep the old behavior on pc-*-2.1 and older.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      caad057b
    • E
      smbios: Fix assertion on socket count calculation · 7dfddd7f
      Eduardo Habkost 提交于
      QEMU currently allows the number of VCPUs to not be a multiple of the
      number of threads per socket, but the smbios socket count calculation
      introduced by commit c97294ec doesn't
      take that into account, triggering an assertion. e.g.:
      
        $ ./x86_64-softmmu/qemu-system-x86_64 -smp 4,sockets=2,cores=6,threads=1
        qemu-system-x86_64: /home/ehabkost/rh/proj/virt/qemu/hw/i386/smbios.c:825: smbios_get_tables: Assertion `smbios_smp_sockets >= 1' failed.
        Aborted (core dumped)
      
      Socket count calculation doesn't belong to smbios.c and should
      eventually be moved to the main SMP topology configuration code. But
      while we don't move the code, at least make it correct by rounding up
      the division.
      
      Cc: Gabriel Somlo <somlo@cmu.edu>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-By: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      7dfddd7f
  7. 10 6月, 2014 1 次提交
  8. 21 5月, 2014 3 次提交
  9. 05 5月, 2014 4 次提交
  10. 10 12月, 2013 1 次提交
  11. 29 9月, 2013 5 次提交
  12. 14 6月, 2013 4 次提交
  13. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  14. 01 3月, 2013 2 次提交
  15. 19 12月, 2012 1 次提交
  16. 14 1月, 2012 1 次提交
  17. 03 9月, 2011 1 次提交
    • S
      Use new macro QEMU_PACKED for packed structures · 541dc0d4
      Stefan Weil 提交于
      Most changes were made using these commands:
      
      git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__((__packed__))'|xargs perl -pi -e 's/__attribute__\(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((__packed__))'|xargs perl -pi -e 's/__attribute__ \(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute((packed))'|xargs perl -pi -e 's/__attribute\(\(packed\)\)/QEMU_PACKED/'
      
      Whitespace in linux-user/syscall_defs.h was fixed manually
      to avoid warnings from scripts/checkpatch.pl.
      
      Manual changes were also applied to hw/pc.c.
      
      I did not fix indentation with tabs in block/vvfat.c.
      The patch will show 4 errors with scripts/checkpatch.pl.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      541dc0d4
  18. 21 8月, 2011 1 次提交
  19. 20 9月, 2009 1 次提交
    • B
      Compile loader only once · ca20cf32
      Blue Swirl 提交于
      Callers must pass ELF machine, byte swapping and symbol LSB clearing
      information to ELF loader. A.out loader needs page size information, pass
      that too as a parameter.
      
      Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw.
      
      Adjust callers. Also use target_phys_addr_t instead of target_ulong for
      addresses: loader addresses aren't virtual.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      ca20cf32
  20. 11 8月, 2009 1 次提交
  21. 18 4月, 2009 1 次提交
    • A
      qemu: Add support for SMBIOS command line otions (Alex Williamson) · b6f6e3d3
      aliguori 提交于
      Create a new -smbios option (x86-only) to allow binary SMBIOS entries
      to be passed through to the BIOS or modify the default values of
      individual fields of type 0 and 1 entries on the command line.
      
      Binary SMBIOS entries can be generated as follows:
      
      dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \
              perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin
      
      These can then be passed to the BIOS using this switch:
      
       -smbios file=smbios_type_1.bin
      
      Command line generation supports the following syntax:
      
       -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
       -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
                    [,uuid=$(uuidgen)][,sku=str][,family=str]
      
      For instance, to add a serial number to the type 1 table:
      
       -smbios type=1,serial=0123456789
      
      Interface is extensible to support more fields/tables as needed.
      
      aliguori: remove texi formatting from help output
      Signed-off-by: NAlex Williamson <alex.williamson@hp.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
      b6f6e3d3