• Replicate ACPI irq0->inti2 override in mp table for non-acpi case.
    
    v1 -> v2 adds comment suggested by Ryan.
    
    Signed-off-by: Beth Kon <eak@us.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7169 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • While Intel's spec is not that clear here, latest changes to Linux' HPET
    code (commit c23e253e67c9d8a91a0ffa33c1f571a17f0a2403, "x86: hpet: stop
    HPET_COUNTER when programming periodic mode") strongly suggest that
    HPET_TN_SETVAL rather means: Set _both_ the comparator value and
    register.
    
    With this patch applied, I'm again able to boot 2.6.30-rc kernels as
    they no longer panic like this (which was due to the comparator
    register remaining 0):
    
    ENABLING IO-APIC IRQs
    ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
    ..MP-BIOS bug: 8254 timer not connected to IO-APIC
    ...trying to set up timer (IRQ0) through the 8259A ...
    ..... (found apic 0 pin 2) ...
    ....... failed.
    ...trying to set up timer as Virtual Wire IRQ...
    ..... failed.
    ...trying to set up timer as ExtINT IRQ...
    ..... failed :(.
    Kernel panic - not syncing: IO-APIC + timer doesn't work! [...]
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7168 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »
  • Fix (more or less) spurious guest boot failures due to corrupted cpuid
    states. The reason was insufficient initialization of cpuid entries
    before passing them to the kernel.
    
    At this chance also fix improper entry pointer progression and simplify
    the code a bit.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7167 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »
  • This patch fixes a qcow2 corruption bug introduced in SVN Rev 5861. L2 tables
    are big endian, so entries must be converted before being passed to functions.
    
    This bug is easy to trigger. The following script will create and destroy a
    qcow2 image (the header is gone after three loop iterations):
    
        #!/bin/bash
        qemu-img create -f qcow2 test.qcow 1M
        for i in $(seq 1 10); do
        qemu-system-x86_64 -hda test.qcow -monitor stdio > /dev/null 2>&1 <<EOF
        savevm test-$i
        quit
        EOF
        done
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7165 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »
  • git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7164 c046a42c-6fe2-441c-8c8c-71466251a162
    blueswir1 authored
     
    Browse File »
  • 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: Alex Williamson <alex.williamson@hp.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • SMBIOS parameters can also provide a UUID outside of vl.c.
    
    Signed-off-by: Alex Williamson <alex.williamson@hp.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7162 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »