qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] be894f: pit: fix pit interrupt can't inject i


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] be894f: pit: fix pit interrupt can't inject into vm after ...
Date: Fri, 26 Sep 2014 10:30:10 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: be894f51b6fe87b4df673fdc9613034de30eb6ca
      
https://github.com/qemu/qemu/commit/be894f51b6fe87b4df673fdc9613034de30eb6ca
  Author: ChenLiang <address@hidden>
  Date:   2014-09-16 (Tue, 16 Sep 2014)

  Changed paths:
    M hw/i386/kvm/i8254.c

  Log Message:
  -----------
  pit: fix pit interrupt can't inject into vm after migration

kvm_pit is running in kmod. kvm_pit is going to inject
interrupt to vm before cpu_synchronize_all_post_init at
dest side. vcpu will lose the pit interrupt, but
ack_irq(in kmod) has been 0. ack_irq become 1 after
vcpu responds pit interrupt. pit interruptcan inject
to vm when ack_irq is 1.

By the way, kvm_pit_vm_state_change has save and load
state of pit, so pre_save and post_load is unnecessary.

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


  Commit: de9d61e83d43be9069e6646fa9d57a3f47779d28
      
https://github.com/qemu/qemu/commit/de9d61e83d43be9069e6646fa9d57a3f47779d28
  Author: Marcelo Tosatti <address@hidden>
  Date:   2014-09-16 (Tue, 16 Sep 2014)

  Changed paths:
    M cpus.c
    M include/sysemu/cpus.h
    M include/sysemu/kvm.h
    M kvm-all.c

  Log Message:
  -----------
  Introduce cpu_clean_all_dirty

Introduce cpu_clean_all_dirty, to force subsequent cpu_synchronize_all_states
to read in-kernel register state.

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


  Commit: 317b0a6d8ba44e9bf8f9c3dbd776c4536843d82c
      
https://github.com/qemu/qemu/commit/317b0a6d8ba44e9bf8f9c3dbd776c4536843d82c
  Author: Marcelo Tosatti <address@hidden>
  Date:   2014-09-16 (Tue, 16 Sep 2014)

  Changed paths:
    M hw/i386/kvm/clock.c

  Log Message:
  -----------
  kvmclock: Ensure proper env->tsc value for kvmclock_current_nsec calculation

Ensure proper env->tsc value for kvmclock_current_nsec calculation.

Reported-by: Marcin Gibuła <address@hidden>
Analyzed-by: Marcin Gibuła <address@hidden>
Cc: address@hidden
Signed-off-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 9a48bcd1b82494671c111109b0eefdb882581499
      
https://github.com/qemu/qemu/commit/9a48bcd1b82494671c111109b0eefdb882581499
  Author: Alexander Graf <address@hidden>
  Date:   2014-09-16 (Tue, 16 Sep 2014)

  Changed paths:
    M hw/i386/kvm/clock.c

  Log Message:
  -----------
  kvmclock: Ensure time in migration never goes backward

When we migrate we ask the kernel about its current belief on what the guest
time would be. However, I've seen cases where the kvmclock guest structure
indicates a time more recent than the kvm returned time.

To make sure we never go backwards, calculate what the guest would have seen as 
time at the point of migration and use that value instead of the kernel 
returned one when it's more recent.
This bases the view of the kvmclock after migration on the
same foundation in host as well as guest.

Signed-off-by: Alexander Graf <address@hidden>
Cc: address@hidden
Reviewed-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 7dbb4c49bfa60b92251a97ddda2c3cdace6b73e4
      
https://github.com/qemu/qemu/commit/7dbb4c49bfa60b92251a97ddda2c3cdace6b73e4
  Author: Philipp Hahn <address@hidden>
  Date:   2014-09-16 (Tue, 16 Sep 2014)

  Changed paths:
    M hw/dma/i8257.c
    M trace-events

  Log Message:
  -----------
  hw/dma/i8257: Silence phony error message

Convert into trace event. Otherwise the message
        dma: unregistered DMA channel used nchan=0 dma_pos=0 dma_len=1
gets printed every time and fills up the log-file with 50 MiB / minute.

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


  Commit: 5bde14078d181439a1170094d7774372242ab739
      
https://github.com/qemu/qemu/commit/5bde14078d181439a1170094d7774372242ab739
  Author: Pavel Dovgalyuk <address@hidden>
  Date:   2014-09-18 (Thu, 18 Sep 2014)

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

  Log Message:
  -----------
  target-i386: update fp status fix

This patch introduces cpu_set_fpuc() function, which changes fpuc field
of the CPU state and calls update_fp_status() function.
These calls update status of softfloat library and prevent bugs caused
by non-coherent rounding settings of the FPU and softfloat.

v2 changes:
 * Added missed calls and intoduced setter function (as suggested by TeLeMan)

Reviewed-by: TeLeMan <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Pavel Dovgalyuk <address@hidden>


  Commit: 4df7961faaa317d57e873ecdec58422d3f979336
      
https://github.com/qemu/qemu/commit/4df7961faaa317d57e873ecdec58422d3f979336
  Author: Paolo Bonzini <address@hidden>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M hw/char/serial.c

  Log Message:
  -----------
  serial: reset state at startup

When a serial port is started, its initial state is all zero.  Make
it consistent with reset state instead.

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


  Commit: a30cf8760f4a59797fc060c3c5a13b7749551d0c
      
https://github.com/qemu/qemu/commit/a30cf8760f4a59797fc060c3c5a13b7749551d0c
  Author: Paolo Bonzini <address@hidden>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M hw/char/serial.c

  Log Message:
  -----------
  serial: check if backed by a physical serial port at realize time

Right now, s->poll_msl may linger at "0" value for an arbitrarily long
time, until serial_update_msl is called for the first time.  This is
unnecessary, and will lead to the s->poll_msl field being unnecessarily
migrated.

We can call serial_update_msl immediately at realize time (via
serial_reset) and be done with it.  The memory-mapped UART was already
doing that, but not the ISA and PCI variants.

Regarding the delta bits, be consistent with what serial_reset does when
the serial port is not backed by a physical serial port, and always clear
them at reset time.

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


  Commit: 5a6e8ba64fb236068fef0f2ce26fe6579cf6a75c
      
https://github.com/qemu/qemu/commit/5a6e8ba64fb236068fef0f2ce26fe6579cf6a75c
  Author: Pavel Dovgalyuk <address@hidden>
  Date:   2014-09-26 (Fri, 26 Sep 2014)

  Changed paths:
    M hw/i386/kvmvapic.c

  Log Message:
  -----------
  kvmvapic: fix migration when VM paused and when not running Windows

This patch fixes migration by extending do_vapic_enable function. This function
called vapic_enable which read cpu number from the guest memory. When cpu
number could not be read, vapic was not enabled while loading the VM state.
This patch adds required code for cpu_number=0 to do_vapic_enable function,
because it is called only when cpu_number=0.

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


  Commit: a697d240ff0f913da3f8cf082ed49acceccdd569
      
https://github.com/qemu/qemu/commit/a697d240ff0f913da3f8cf082ed49acceccdd569
  Author: Paolo Bonzini <address@hidden>
  Date:   2014-09-26 (Fri, 26 Sep 2014)

  Changed paths:
    M po/Makefile

  Log Message:
  -----------
  po: fix conflict with %.mo rule in rules.mak

po/Makefile includes rules.mak to use the nice quiet-command macro.
However, this also brings in a %.mo rule that breaks "make build".
Put our own rule before the include, so that it has precedence.

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


  Commit: 541be9274e8ef227fb1b50ce124fd2cc2dce81a5
      
https://github.com/qemu/qemu/commit/541be9274e8ef227fb1b50ce124fd2cc2dce81a5
  Author: Christian Borntraeger <address@hidden>
  Date:   2014-09-26 (Fri, 26 Sep 2014)

  Changed paths:
    M configure
    M kvm-all.c

  Log Message:
  -----------
  kvm/valgrind: don't mark memory as initialized

since commit 7dda5dc82a77 ("migration: initialize RAM to zero") the
guest memory is defined zero. No need to call valgrind on guest memory.
This reverts commit 62fe83318d2f ("qemu: Use valgrind annotations to
mark kvm guest memory as defined") thus speeding up kvm start if
<includedir>/valgrind/valgrind.h is available.

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


  Commit: 81ab11a7a524d12412a59ef49c6b270671e62ea0
      
https://github.com/qemu/qemu/commit/81ab11a7a524d12412a59ef49c6b270671e62ea0
  Author: Peter Maydell <address@hidden>
  Date:   2014-09-26 (Fri, 26 Sep 2014)

  Changed paths:
    M configure
    M cpus.c
    M hw/char/serial.c
    M hw/dma/i8257.c
    M hw/i386/kvm/clock.c
    M hw/i386/kvm/i8254.c
    M hw/i386/kvmvapic.c
    M include/sysemu/cpus.h
    M include/sysemu/kvm.h
    M kvm-all.c
    M po/Makefile
    M target-i386/cpu.c
    M target-i386/cpu.h
    M target-i386/fpu_helper.c
    M target-i386/gdbstub.c
    M target-i386/machine.c
    M trace-events

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

Usual mix of patches, the most important being Alex and Marcelo's
kvmclock fix.  This was reverted last minute for 2.1, but it is now back
with the problematic case fixed.

Note: I will soon switch to a subkey for signing purposes.  To verify
future signed pull requests from me, please update my key with
"gpg --recv-keys 9B4D86F2".  You should see 3 new subkeys---the
one for signing will be a 2048-bit RSA key, 4E6B09D7.

# gpg: Signature made Fri 26 Sep 2014 15:34:44 BST using RSA key ID 9B4D86F2
# gpg: Good signature from "Paolo Bonzini <address@hidden>"
# gpg:                 aka "Paolo Bonzini <address@hidden>"

* remotes/bonzini/tags/for-upstream:
  kvm/valgrind: don't mark memory as initialized
  po: fix conflict with %.mo rule in rules.mak
  kvmvapic: fix migration when VM paused and when not running Windows
  serial: check if backed by a physical serial port at realize time
  serial: reset state at startup
  target-i386: update fp status fix
  hw/dma/i8257: Silence phony error message
  kvmclock: Ensure time in migration never goes backward
  kvmclock: Ensure proper env->tsc value for kvmclock_current_nsec calculation
  Introduce cpu_clean_all_dirty
  pit: fix pit interrupt can't inject into vm after migration

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


Compare: https://github.com/qemu/qemu/compare/da1c4ec88ad5...81ab11a7a524

reply via email to

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