qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 0034a0: pc: fix KVM features in pc-1.3 and ea


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 0034a0: pc: fix KVM features in pc-1.3 and earlier machine...
Date: Mon, 26 Jan 2015 05:30:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 0034a0f239623388525c884dabf9a125eafb1acb
      
https://github.com/qemu/qemu/commit/0034a0f239623388525c884dabf9a125eafb1acb
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M hw/i386/pc_piix.c

  Log Message:
  -----------
  pc: fix KVM features in pc-1.3 and earlier machine types

Due to a typo, instead of disabling KVM_FEATURE_PV_EOI (bit
6) these machine types are disabling bits 1 and 2, which are
KVM_FEATURE_NOP_IO_DELAY and KVM_FEATURE_MMU_OP.  Not a big deal
because they aren't very important and KVM_FEATURE_MMU_OP is
disabled anyway.  The worst part is actually that KVM_FEATURE_PV_EOI
is remaining enabled.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 43bfb507f422a642ea2893555e13ccc2557d810a
      
https://github.com/qemu/qemu/commit/43bfb507f422a642ea2893555e13ccc2557d810a
  Author: Kevin Wolf <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M tests/multiboot/mmap.out

  Log Message:
  -----------
  tests/multiboot: Update reference output

The changes look okay (larger PCI hole, some rounding differences), so
just update the reference output of the test case.

Signed-off-by: Kevin Wolf <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: b4168498f613db3d908909106146001a9279e732
      
https://github.com/qemu/qemu/commit/b4168498f613db3d908909106146001a9279e732
  Author: Kevin Wolf <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M hw/i386/multiboot.c

  Log Message:
  -----------
  multiboot: Fix offset of bootloader name

This fixes a bug introduced in commit 5eba5a66 ('Add bootloader name to
multiboot implementation').

The calculation of the bootloader name offset didn't consider space
occupied by module command lines, so some unlucky module got its command
line partially overwritten with a "qemu" string.

Signed-off-by: Kevin Wolf <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: a9c837d8ef573604328e4cb61e2e0cab61bba319
      
https://github.com/qemu/qemu/commit/a9c837d8ef573604328e4cb61e2e0cab61bba319
  Author: Kevin Wolf <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M tests/multiboot/Makefile
    M tests/multiboot/libc.c
    M tests/multiboot/libc.h
    A tests/multiboot/module.txt
    A tests/multiboot/modules.c
    A tests/multiboot/modules.out
    M tests/multiboot/run_test.sh

  Log Message:
  -----------
  tests/multiboot: Add test for modules

This test case is meant to detect corruptions of the Multiboot modules
as well as the multiboot modules list and the module command lines.

Signed-off-by: Kevin Wolf <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: a03c3e90e11976fb147904d537457984bb938ce2
      
https://github.com/qemu/qemu/commit/a03c3e90e11976fb147904d537457984bb938ce2
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M include/migration/vmstate.h
    M target-i386/machine.c

  Log Message:
  -----------
  target-i386: use vmstate_offset_sub_array for AVX registers

After the next patch, each vmstate field will extract parts of a larger
(32x512-bit) array, so we cannot check the vmstate field against the
type of the array.

While changing this, change the macros to accept the index of the first
element (which will not be 0 for Hi16_ZMM_REGS) instead of the number
of elements (which is always CPU_NB_REGS).

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: b7711471f551aa4419f9d46a11121f48ced422da
      
https://github.com/qemu/qemu/commit/b7711471f551aa4419f9d46a11121f48ced422da
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M target-i386/cpu.h
    M target-i386/kvm.c
    M target-i386/machine.c

  Log Message:
  -----------
  target-i386: make xmm_regs 512-bit wide

Right now, the AVX512 registers are split in many different fields:
xmm_regs for the low 128 bits of the first 16 registers, ymmh_regs
for the next 128 bits of the same first 16 registers, zmmh_regs
for the next 256 bits of the same first 16 registers, and finally
hi16_zmm_regs for the full 512 bits of the second 16 bit registers.

This makes it simple to move data in and out of the xsave region,
but would be a nightmare for a hypothetical TCG implementation and
leads to a proliferation of [XYZ]MM_[BWLSQD] macros.  Instead,
this patch marshals data manually from the xsave region to a single
32x512-bit array, simplifying the macro jungle and clarifying which
bits are in which vmstate subsection.

The migration format is unaffected.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 65a81af8df722714298f17d2b40da8e5f045e059
      
https://github.com/qemu/qemu/commit/65a81af8df722714298f17d2b40da8e5f045e059
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M include/qemu/timer.h

  Log Message:
  -----------
  qemu-timer: add timer_init and timer_init_ns/us/ms

These functions for the main loop TimerListGroup will replace
timer_new and timer_new_ns/us/ms.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: cd1bd53a669c88f219ca47b538889cd918605fea
      
https://github.com/qemu/qemu/commit/cd1bd53a669c88f219ca47b538889cd918605fea
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M include/qemu/timer.h
    M qemu-timer.c

  Log Message:
  -----------
  qemu-timer: introduce timer_deinit

In some cases, a timer was set to NULL so that we could check if it is
initialized.  Use the timer_list field instead, and add a timer_deinit
function that NULLs it.

It then makes sense that timer_del be a no-op (instead of a crasher) on
such a de-initialized timer.  It avoids the need to poke at the timerlist
field to check if the timers are initialized.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: e720677e32e70b1f60637ebbcf2ffb23a4607f3e
      
https://github.com/qemu/qemu/commit/e720677e32e70b1f60637ebbcf2ffb23a4607f3e
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M hw/acpi/ich9.c
    M hw/acpi/piix4.c
    M hw/arm/stellaris.c
    M hw/block/fdc.c
    M hw/char/cadence_uart.c
    M hw/char/serial.c
    M hw/core/ptimer.c
    M hw/dma/pl330.c
    M hw/input/lm832x.c
    M hw/intc/armv7m_nvic.c
    M hw/isa/vt82c686.c
    M hw/misc/macio/cuda.c
    M hw/net/pcnet.c
    M hw/sd/sdhci.c
    M hw/timer/a9gtimer.c
    M hw/timer/arm_mptimer.c
    M hw/timer/hpet.c
    M hw/timer/mc146818rtc.c
    M hw/usb/hcd-ehci.c
    M hw/usb/hcd-ohci.c
    M hw/usb/hcd-uhci.c
    M hw/usb/hcd-xhci.c
    M hw/usb/redirect.c
    M hw/watchdog/wdt_i6300esb.c
    M hw/watchdog/wdt_ib700.c
    M include/migration/vmstate.h
    M target-arm/machine.c

  Log Message:
  -----------
  vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR*

Old users of VMSTATE_TIMER* are mechanically changed to VMSTATE_TIMER_PTR
variants.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: b30934cb52a72a763da21dccc9994c64517d6f25
      
https://github.com/qemu/qemu/commit/b30934cb52a72a763da21dccc9994c64517d6f25
  Author: Jiri Slaby <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M MAINTAINERS
    M default-configs/pci.mak
    A docs/specs/edu.txt
    M hw/misc/Makefile.objs
    A hw/misc/edu.c

  Log Message:
  -----------
  hw: misc, add educational driver

I am using qemu for teaching the Linux kernel at our university. I
wrote a simple PCI device that can answer to writes/reads, generate
interrupts and perform DMA. As I am dragging it locally over 2 years,
I am sending it to you now.

Signed-off-by: Jiri Slaby <address@hidden>
[Fix 32-bit compilation. - Paolo]
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: edcbc401f42077f9d62713d439839201a73a5966
      
https://github.com/qemu/qemu/commit/edcbc401f42077f9d62713d439839201a73a5966
  Author: Wei Huang <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M scripts/kvm/kvm_stat

  Log Message:
  -----------
  kvm_stat: Add aarch64 support

This patch enables aarch64 support for kvm_stat. The platform detection
is based on OS uname.

Signed-off-by: Wei Huang <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 2c9d535a2e43699de32987b76cf548a39e4d04d2
      
https://github.com/qemu/qemu/commit/2c9d535a2e43699de32987b76cf548a39e4d04d2
  Author: Wei Huang <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M scripts/kvm/kvm_stat

  Log Message:
  -----------
  kvm_stat: Update exit reasons to the latest defintion

This patch updates the exit reasons for x86_vmx, x86_svm, and userspace
to the latest definition.

Signed-off-by: Wei Huang <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 874b1cfad51e325d535f99261f91c92df444c18c
      
https://github.com/qemu/qemu/commit/874b1cfad51e325d535f99261f91c92df444c18c
  Author: Wei Huang <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M scripts/kvm/kvm_stat

  Log Message:
  -----------
  kvm_stat: Print errno when syscall to perf_event_open() fails

kvm_stat uses syscall() to call perf_event_open(). If this function
call fails, the returned value is -1, which doesn't tell the details
of such failure (i.e. ENOSYS or EINVAL). This patch retrieves errno
and prints it when syscall() fails. The error message will look like
"Exception: perf_event_open failed, errno = 38".

Signed-off-by: Wei Huang <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 927411fa42c5fcf16ed0fcc0447d5ee8c83b22ca
      
https://github.com/qemu/qemu/commit/927411fa42c5fcf16ed0fcc0447d5ee8c83b22ca
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M hw/intc/apic_common.c

  Log Message:
  -----------
  apic: do not dereference pointer before it is checked for NULL

Right now you only get to apic_init_reset if you have an APIC
(do_cpu_init is reached only if CPU_INTERRUPT_INIT is set and
that only happens in hw/intc/apic.c).  However, this is wrong
because for example a port 92 or keyboard controller reset is
really an INIT, and that can happen also with no APIC.  So
keep the check and fix the error that Coverity reported.

Reported-by: Markus Armbruster <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: dd858343a73c5c47019c6ade282a91681e0d7105
      
https://github.com/qemu/qemu/commit/dd858343a73c5c47019c6ade282a91681e0d7105
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  .travis.yml: Add "--enable-modules"

We will change the default to "--enable-modules", let's cover it before
the switch.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: a904c91196a9c5dbd7b9abcd3d40b0824286fb1c
      
https://github.com/qemu/qemu/commit/a904c91196a9c5dbd7b9abcd3d40b0824286fb1c
  Author: Paolo Bonzini <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M exec.c

  Log Message:
  -----------
  exec: fix madvise of NULL pointer

Coverity flags this as "dereference after null check".  Not quite a
dereference, since it will just EFAULT, but still nice to fix.

Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 80fd48df4a53d01cc5d8a41e565f81af5978121f
      
https://github.com/qemu/qemu/commit/80fd48df4a53d01cc5d8a41e565f81af5978121f
  Author: Christian Borntraeger <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M configure

  Log Message:
  -----------
  sparse: Fix build with sparse on .S files

rules.mak has a rule for .S files using CPP. This will result in
errors like
  CPP   s390-ccw/start.asm
 cc: error: unrecognized command line option '-Wbitwise'

Lets also redefine CPP in case of --enable-sparse.

Signed-off-by: Christian Borntraeger <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 13704e4c455770d500d6b87b117e32f0d01252c9
      
https://github.com/qemu/qemu/commit/13704e4c455770d500d6b87b117e32f0d01252c9
  Author: Eduardo Habkost <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M target-i386/cpu.c

  Log Message:
  -----------
  target-i386: Disable HLE and RTM on Haswell & Broadwell

All Haswell CPUs and some Broadwell CPUs were updated by Intel to have
the HLE and RTM features disabled. This will prevent
"-cpu Haswell,enforce" and "-cpu Broadwell,enforce" from running out of
the box on those CPUs.

Disable those features by default on Broadwell and Haswell CPU models,
starting on pc-*-2.3. Users who want to use those features can enable
them explicitly on the command-line.

Signed-off-by: Eduardo Habkost <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: fc116efad0aadb2f8a49d51240bddbfe21b631a0
      
https://github.com/qemu/qemu/commit/fc116efad0aadb2f8a49d51240bddbfe21b631a0
  Author: Wei Huang <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M scripts/kvm/kvm_stat

  Log Message:
  -----------
  kvm_stat: Add RESET support for perf event ioctl

While running kvm_stat using tracepoint on ARM64 hardware (e.g. "kvm_stat
-1 -t"), the initial values of some kvm_userspace_exit counters were found
to be very suspecious. For instance the tracing tool showed that S390_TSCH
was called many times on ARM64 machine, which apparently was wrong.

This patch adds RESET ioctl support for perf monitoring. Before calling
ioctl to enable a perf event, this patch resets the counter first. With
this patch, the init counter values become correct on ARM64 hardware.

Example:

==== before patch ====
kvm_userspace_exit(S390_SIEIC)      1426         0
kvm_userspace_exit(S390_TSCH)       339         0

==== after patch ====
kvm_userspace_exit(S390_SIEIC)         0         0
kvm_userspace_exit(S390_TSCH)         0         0

Signed-off-by: Wei Huang <address@hidden>


  Commit: 0c28d0d07fbcd7aa44d231241d444d00882256e2
      
https://github.com/qemu/qemu/commit/0c28d0d07fbcd7aa44d231241d444d00882256e2
  Author: Peter Maydell <address@hidden>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M .travis.yml
    M MAINTAINERS
    M configure
    M default-configs/pci.mak
    A docs/specs/edu.txt
    M exec.c
    M hw/acpi/ich9.c
    M hw/acpi/piix4.c
    M hw/arm/stellaris.c
    M hw/block/fdc.c
    M hw/char/cadence_uart.c
    M hw/char/serial.c
    M hw/core/ptimer.c
    M hw/dma/pl330.c
    M hw/i386/multiboot.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M hw/input/lm832x.c
    M hw/intc/apic_common.c
    M hw/intc/armv7m_nvic.c
    M hw/isa/vt82c686.c
    M hw/misc/Makefile.objs
    A hw/misc/edu.c
    M hw/misc/macio/cuda.c
    M hw/net/pcnet.c
    M hw/sd/sdhci.c
    M hw/timer/a9gtimer.c
    M hw/timer/arm_mptimer.c
    M hw/timer/hpet.c
    M hw/timer/mc146818rtc.c
    M hw/usb/hcd-ehci.c
    M hw/usb/hcd-ohci.c
    M hw/usb/hcd-uhci.c
    M hw/usb/hcd-xhci.c
    M hw/usb/redirect.c
    M hw/watchdog/wdt_i6300esb.c
    M hw/watchdog/wdt_ib700.c
    M include/migration/vmstate.h
    M include/qemu/timer.h
    M qemu-timer.c
    M scripts/kvm/kvm_stat
    M target-arm/machine.c
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/kvm.c
    M target-i386/machine.c
    M tests/multiboot/Makefile
    M tests/multiboot/libc.c
    M tests/multiboot/libc.h
    M tests/multiboot/mmap.out
    A tests/multiboot/module.txt
    A tests/multiboot/modules.c
    A tests/multiboot/modules.out
    M tests/multiboot/run_test.sh

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging

- Many fixes from the floor as usual
- New "edu" device (v1->v2: fix 32-bit compilation)
- Disabling HLE and RTM on Haswell & Broadwell
- kvm_stat updates
- Added --enable-modules to Travis, in preparation for switching
  the default

# gpg: Signature made Mon 26 Jan 2015 11:44:40 GMT using RSA key ID 78C7AE83
# gpg: Good signature from "Paolo Bonzini <address@hidden>"
# gpg:                 aka "Paolo Bonzini <address@hidden>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
#      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83

* remotes/bonzini/tags/for-upstream:
  kvm_stat: Add RESET support for perf event ioctl
  target-i386: Disable HLE and RTM on Haswell & Broadwell
  sparse: Fix build with sparse on .S files
  exec: fix madvise of NULL pointer
  .travis.yml: Add "--enable-modules"
  apic: do not dereference pointer before it is checked for NULL
  kvm_stat: Print errno when syscall to perf_event_open() fails
  kvm_stat: Update exit reasons to the latest defintion
  kvm_stat: Add aarch64 support
  hw: misc, add educational driver
  vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR*
  qemu-timer: introduce timer_deinit
  qemu-timer: add timer_init and timer_init_ns/us/ms
  target-i386: make xmm_regs 512-bit wide
  target-i386: use vmstate_offset_sub_array for AVX registers
  tests/multiboot: Add test for modules
  multiboot: Fix offset of bootloader name
  tests/multiboot: Update reference output
  pc: fix KVM features in pc-1.3 and earlier machine types

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/d109f80af3ad...0c28d0d07fbc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]