Skip to content
  1. Aug 19, 2017
  2. Aug 18, 2017
  3. Aug 13, 2017
  4. Aug 11, 2017
  5. Aug 08, 2017
  6. Aug 06, 2017
  7. Aug 01, 2017
    • Caesar Wang's avatar
      arm64: dts: rockchip: update dynamic-power-coefficient for rk3399 · 45a995c0
      Caesar Wang authored
      
      
      This patch updates the dynamic-power-coefficient for big cluster on
      rk3399 SoCs.
      
      The dynamic power consumption of the CPU is proportional to the square of
      the Voltage (V) and the clock frequency (f). The coefficient is used to
      calculate the dynamic power as below -
      Pdyn = dynamic-power-coefficient * V^2 * f
      Where Voltage is in uV, frequency is in MHz.
      
      As the following is the tested data on rk3399's big cluster.
      frequency(MHz)  Voltage(V)  Current(mA) Dynamic-power-coefficient
      24              0.8         15
      48              0.8         23          ~417
      96              0.8         40          ~443
      216             0.8         82          ~438
      312             0.8         115         ~430
      408             0.8         150         ~455
      So the dynamic-power-coefficient average value is about 436.
      
      Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      45a995c0
  8. Jul 30, 2017
  9. Jul 26, 2017
  10. Jul 23, 2017
  11. Jul 16, 2017
  12. Jul 15, 2017
  13. Jul 14, 2017
    • Roman Kagan's avatar
      kvm: x86: hyperv: make VP_INDEX managed by userspace · d3457c87
      Roman Kagan authored
      
      
      Hyper-V identifies vCPUs by Virtual Processor Index, which can be
      queried via HV_X64_MSR_VP_INDEX msr.  It is defined by the spec as a
      sequential number which can't exceed the maximum number of vCPUs per VM.
      APIC ids can be sparse and thus aren't a valid replacement for VP
      indices.
      
      Current KVM uses its internal vcpu index as VP_INDEX.  However, to make
      it predictable and persistent across VM migrations, the userspace has to
      control the value of VP_INDEX.
      
      This patch achieves that, by storing vp_index explicitly on vcpu, and
      allowing HV_X64_MSR_VP_INDEX to be set from the host side.  For
      compatibility it's initialized to KVM vcpu index.  Also a few variables
      are renamed to make clear distinction betweed this Hyper-V vp_index and
      KVM vcpu_id (== APIC id).  Besides, a new capability,
      KVM_CAP_HYPERV_VP_INDEX, is added to allow the userspace to skip
      attempting msr writes where unsupported, to avoid spamming error logs.
      
      Signed-off-by: default avatarRoman Kagan <rkagan@virtuozzo.com>
      Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
      d3457c87
    • Wanpeng Li's avatar
      KVM: async_pf: Let guest support delivery of async_pf from guest mode · 52a5c155
      Wanpeng Li authored
      
      
      Adds another flag bit (bit 2) to MSR_KVM_ASYNC_PF_EN. If bit 2 is 1,
      async page faults are delivered to L1 as #PF vmexits; if bit 2 is 0,
      kvm_can_do_async_pf returns 0 if in guest mode.
      
      This is similar to what svm.c wanted to do all along, but it is only
      enabled for Linux as L1 hypervisor.  Foreign hypervisors must never
      receive async page faults as vmexits, because they'd probably be very
      confused about that.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Radim Krčmář <rkrcmar@redhat.com>
      Signed-off-by: default avatarWanpeng Li <wanpeng.li@hotmail.com>
      Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
      52a5c155