1. 19 5月, 2016 1 次提交
  2. 13 5月, 2016 2 次提交
  3. 29 1月, 2016 1 次提交
    • P
      x86: Clean up includes · b6a0aa05
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1453832250-766-11-git-send-email-peter.maydell@linaro.org
      b6a0aa05
  4. 16 1月, 2016 1 次提交
    • P
      i386: avoid null pointer dereference · 4c1396cb
      P J P 提交于
          Hello,
      
      A null pointer dereference issue was reported by Mr Ling Liu, CC'd here. It
      occurs while doing I/O port write operations via hmp interface. In that,
      'current_cpu' remains null as it is not called from cpu_exec loop, which
      results in the said issue.
      
      Below is a proposed (tested)patch to fix this issue; Does it look okay?
      
      ===
      From ae88a4947fab9a148cd794f8ad2d812e7f5a1d0f Mon Sep 17 00:00:00 2001
      From: Prasad J Pandit <pjp@fedoraproject.org>
      Date: Fri, 18 Dec 2015 11:16:07 +0530
      Subject: [PATCH] i386: avoid null pointer dereference
      
      When I/O port write operation is called from hmp interface,
      'current_cpu' remains null, as it is not called from cpu_exec()
      loop. This leads to a null pointer dereference in vapic_write
      routine. Add check to avoid it.
      Reported-by: NLing Liu <liuling-it@360.cn>
      Signed-off-by: NPrasad J Pandit <pjp@fedoraproject.org>
      Message-Id: <alpine.LFD.2.20.1512181129320.9805@wniryva>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NP J P <ppandit@redhat.com>
      4c1396cb
  5. 31 10月, 2014 1 次提交
    • P
      kvmvapic: patch_instruction fix · 076893d3
      Pavel Dovgalyuk 提交于
      When QEMU works in icount mode cpu_restore_state function performs two actions:
      restoring the program counter and updating icount to the correct value.
      kvmvapic's patch_instruction function is called by cpu_report_tpr_access
      function which also invokes cpu_restore_state. It results to calling
      cpu_restore_state twice - in cpu_report_tpr_access and in patch_instruction.
      When icount is disabled second call is safe. But when icount is enabled,
      cpu_restore_state modifies instructions counter twice, which leads to incorrect
      behavior. This patch removes useless cpu_restore_state call from kvmvapic.
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
      076893d3
  6. 26 9月, 2014 1 次提交
  7. 11 9月, 2014 1 次提交
  8. 18 8月, 2014 1 次提交
  9. 16 6月, 2014 1 次提交
  10. 27 4月, 2014 1 次提交
  11. 14 3月, 2014 4 次提交
  12. 23 12月, 2013 3 次提交
    • C
      target-i386: Move apic_state field from CPUX86State to X86CPU · 02e51483
      Chen Fan 提交于
      This motion is preparing for refactoring vCPU APIC subsequently.
      Signed-off-by: NChen Fan <chen.fan.fnst@cn.fujitsu.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      02e51483
    • M
      sysbus: Set cannot_instantiate_with_device_add_yet · 837d3716
      Markus Armbruster 提交于
      device_add plugs devices into suitable bus.  For "real" buses, that
      actually connects the device.  For sysbus, the connections need to be
      made separately, and device_add can't do that.  The device would be
      left unconnected, and could not possibly work.
      
      Quite a few, but not all sysbus devices already set
      cannot_instantiate_with_device_add_yet in their class init function.
      
      Set it in their abstract base's class init function
      sysbus_device_class_init(), and remove the now redundant assignments
      from device class init functions.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel.a@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      837d3716
    • M
      qdev: Replace no_user by cannot_instantiate_with_device_add_yet · efec3dd6
      Markus Armbruster 提交于
      In an ideal world, machines can be built by wiring devices together
      with configuration, not code.  Unfortunately, that's not the world we
      live in right now.  We still have quite a few devices that need to be
      wired up by code.  If you try to device_add such a device, it'll fail
      in sometimes mysterious ways.  If you're lucky, you get an
      unmysterious immediate crash.
      
      To protect users from such badness, DeviceClass member no_user used to
      make device models unavailable with -device / device_add, but that
      regressed in commit 18b6dade.  The device model is still omitted from
      help, but is available anyway.
      
      Attempts to fix the regression have been rejected with the argument
      that the purpose of no_user isn't clear, and it's prone to misuse.
      
      This commit clarifies no_user's purpose.  Anthony suggested to rename
      it cannot_instantiate_with_device_add_yet_due_to_internal_bugs, which
      I shorten somewhat to keep checkpatch happy.  While there, make it
      bool.
      
      Every use of cannot_instantiate_with_device_add_yet gets a FIXME
      comment asking for rationale.  The next few commits will clean them
      all up, either by providing a rationale, or by getting rid of the use.
      
      With that done, the regression fix is hopefully acceptable.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel.a@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      efec3dd6
  13. 04 10月, 2013 1 次提交
  14. 20 9月, 2013 3 次提交
  15. 03 9月, 2013 1 次提交
  16. 30 7月, 2013 1 次提交
  17. 23 7月, 2013 3 次提交
  18. 10 7月, 2013 2 次提交
  19. 04 7月, 2013 3 次提交
  20. 28 6月, 2013 1 次提交
  21. 06 5月, 2013 1 次提交
  22. 01 5月, 2013 1 次提交
  23. 16 4月, 2013 1 次提交
  24. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  25. 05 4月, 2013 1 次提交
  26. 01 3月, 2013 2 次提交