1. 10 1月, 2016 24 次提交
  2. 08 1月, 2016 2 次提交
    • I
    • L
      hw/i386: fill in the CENTURY field of the FADT (FACP) ACPI table · f070efa8
      Laszlo Ersek 提交于
      The ACPI specification (minimally versions 1.0b through 6.0) define the
      FADT.CENTURY field as:
      
        The RTC CMOS RAM index to the century of data value (hundred and
        thousand year decimals). If this field contains a zero, then the RTC
        centenary feature is not supported. If this field has a non-zero value,
        then this field contains an index into RTC RAM space that OSPM can use
        to program the centenary field.
      
      The x86 targets generate ACPI payload, emulate an RTC
      (CONFIG_MC146818RTC), and that RTC supports the "centenary feature" (see
      occurrences of RTC_CENTURY in cmos_ioport_write() and cmos_ioport_read()
      in "hw/timer/mc146818rtc.c".)
      
      However, FADT.CENTURY is left at zero currently:
      
        [06Ch 0108   1]            RTC Century Index : 00
      
      which -- according to analysis done by Ruiyu Ni at Intel -- should cause
      Linux and Windows 8+ to think the RTC centenary feature is unavailable,
      and cause Windows 7 to (incorrectly) assume that the offset to use is
      constant 0x32. (0x32 happens to be the right value on QEMU, but Windows 7
      is wrong to assume anything at all).
      
      Exposing the right nonzero offset in FADT.CENTURY informs Linux and
      Windows 8+ about the right capabilities of the hardware, plus it retrofits
      our FADT to Windows 7's behavior.
      
      Regression tested with the following guests (all UEFI installs):
      - i386 Q35: Fedora 21 ("Fedlet" edition)
      - x86_64:
        - i440fx:
          - Fedora 21
          - RHEL 6 and 7
          - Windows 7 and 10
          - Windows Server 2008 R2 and 2012 R2
        - Q35:
          - Fedora 22
          - Windows 8.1
      
      Cc: "Michael S. Tsirkin" <mst@redhat.com> (supporter:ACPI/SMBIOS)
      Cc: Igor Mammedov <imammedo@redhat.com> (supporter:ACPI/SMBIOS)
      Cc: Paolo Bonzini <pbonzini@redhat.com> (maintainer:X86)
      Cc: Richard Henderson <rth@twiddle.net> (maintainer:X86)
      Cc: Eduardo Habkost <ehabkost@redhat.com> (maintainer:X86)
      Cc: Ruiyu Ni <ruiyu.ni@intel.com>
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      
      f070efa8
  3. 23 12月, 2015 7 次提交
  4. 22 12月, 2015 2 次提交
  5. 17 12月, 2015 1 次提交
  6. 15 12月, 2015 1 次提交
    • G
      fw_cfg: remove offset argument from callback prototype · 3f8752b4
      Gabriel L. Somlo 提交于
      Read callbacks are now only invoked at item selection, before any
      data is read. As such, the value of the offset argument passed to
      the callback will always be 0. Also, the two callback instances
      currently in use both leave their offset argument unused.
      
      This patch removes the offset argument from the fw_cfg read callback
      prototype, and from the currently available instances. The unused
      (write) callback prototype is also removed (write support was removed
      earlier, in commit 023e3148).
      
      Cc: Laszlo Ersek <lersek@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Marc Marí <markmb@redhat.com>
      Signed-off-by: NGabriel Somlo <somlo@cmu.edu>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Message-id: 1446733972-1602-4-git-send-email-somlo@cmu.edu
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3f8752b4
  7. 13 8月, 2015 1 次提交
  8. 28 7月, 2015 1 次提交
  9. 04 7月, 2015 1 次提交