author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
528,713 | 13.06.2018 16:04:46 | -28,800 | 8f3b36b2243e06e0a3c60f62ba17e881a190e4ee | HV: add volatile declaration to pointer parameter
Add a volatile declaration to pointer parameter to avoid compiler
to optimize it by using old value saved in register instead of
accessing system memory.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/lib/bits.h",
"new_path": "hypervisor/include/lib/bits.h",
"diff": "@@ -145,7 +145,7 @@ static inline int clz64(unsigned long value)\n* (*addr) |= (1UL<<nr);\n*/\n#define build_bitmap_set(name, lock, nr, addr) \\\n-static inline void name(int... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add volatile declaration to pointer parameter
Add a volatile declaration to pointer parameter to avoid compiler
to optimize it by using old value saved in register instead of
accessing system memory.
Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 04.06.2018 14:25:11 | -28,800 | ddd03d6252a4a4a9acc4a06113217f203fc4ec56 | hv: add suspend/resume callback for lapic.
They will be called when acrn enter S3.
NOTE: it's only needed for native BSP because all APs are offline.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/intr_lapic.c",
"new_path": "hypervisor/arch/x86/intr_lapic.c",
"diff": "@@ -135,6 +135,8 @@ struct lapic_info {\n};\nstatic struct lapic_info lapic_info;\n+static struct lapic_regs saved_lapic_regs;\n+static union lapic_base_msr lapic_base_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add suspend/resume callback for lapic.
They will be called when acrn enter S3.
NOTE: it's only needed for native BSP because all APs are offline.
Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 04.06.2018 14:45:33 | -28,800 | d2ea4546c30b7cb7d24cf0a0a7104552574e2d70 | hv: Add suspend/resume callback for ioapic
These two functions will be called when ACRN enter/exit S3.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ioapic.c",
"new_path": "hypervisor/arch/x86/ioapic.c",
"diff": "#define IOAPIC_REGSEL_OFFSET 0\n#define IOAPIC_WINSWL_OFFSET 0x10\n+#define IOAPIC_MAX_PIN 256\n+\n/* IOAPIC Redirection Table (RTE) Entry structure */\nstruct ioapic_rte {\nui... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Add suspend/resume callback for ioapic
These two functions will be called when ACRN enter/exit S3.
Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Signed-off-by: Yan Like <like.yan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 04.06.2018 15:04:25 | -28,800 | 8eaf4d2ab696504112529ad703202920895a7910 | hv: Add suspend/resume callback for vtd
To handle S3 enter/exit for vtd.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/Kconfig",
"new_path": "hypervisor/arch/x86/Kconfig",
"diff": "@@ -15,6 +15,10 @@ config NR_IOAPICS\nint \"Maximum number of IOAPICs supported\"\ndefault 1\n+config MAX_IOMMU_NUM\n+ int \"Maximum number of iommu dev\"\n+ default 2\n+\nconfig... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Add suspend/resume callback for vtd
To handle S3 enter/exit for vtd.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 04.06.2018 16:35:20 | -28,800 | feed38f5ae7e6cfb030bc7b8b4188fd62f00d05e | hv: add suspend/resume callback for console
To handle s3 enter/exit for console
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/console.c",
"new_path": "hypervisor/debug/console.c",
"diff": "static spinlock_t lock;\nstatic uint32_t serial_handle = SERIAL_INVALID_HANDLE;\n+struct timer console_timer;\n#define CONSOLE_KICK_TIMER_TIMEOUT 40 /* timeout is 40ms*/\n@@ -198,7... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add suspend/resume callback for console
To handle s3 enter/exit for console
Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 04.06.2018 16:02:20 | -28,800 | 74dfa425e0cdcf276c9016fa3013ffad68abb7f0 | hv: Add initialize pm.c
Now, we only add native msr save/restore functions. The native power
related functions will be put to this file.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -113,6 +113,7 @@ C_SRCS += arch/x86/assign.c\nC_SRCS += arch/x86/trusty.c\nC_SRCS += arch/x86/cpu_state_tbl.c\nC_SRCS += arch/x86/mtrr.c\n+C_SRCS += arch/x86/pm.c\nC_SRCS += arch/x86/guest/vc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Add initialize pm.c
Now, we only add native msr save/restore functions. The native power
related functions will be put to this file.
Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,665 | 14.06.2018 02:44:46 | -28,800 | 359b93f4ccf9b4367961da22688e15547b7fda54 | HV: Remove misuesed __unused
There are some __unused attached to variables. But, those variables
are used by the function actually.
This patch remove them. No functional change.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vpic.c",
"new_path": "hypervisor/arch/x86/guest/vpic.c",
"diff": "@@ -247,7 +247,7 @@ static void vpic_notify_intr(struct vpic *vpic)\n}\n}\n-static int vpic_icw1(__unused struct vpic *vpic, struct pic *pic, uint8_t val)\n+static int ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Remove misuesed __unused
There are some __unused attached to variables. But, those variables
are used by the function actually.
This patch remove them. No functional change.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,732 | 14.06.2018 08:58:40 | -28,800 | 2e3af9e0623fb101c0844b1245ce0341cfef1581 | tools: acrn-crashlog: fix typo in Makefile
This patch is to fix libtelemetry.so typo in Makefile.
Acked-by: Zhang Di | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/Makefile",
"new_path": "tools/acrn-crashlog/Makefile",
"diff": "@@ -27,7 +27,7 @@ ifeq ($(strip $(LIB_EXIST)),libsystemd-journal.so)\nEXTRA_LIBS = -lsystemd-journal\nendif\nLIB_EXIST = $(findstring libtelemetry.so, $(LDCNF))\n-ifeq ($(strip... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-crashlog: fix typo in Makefile
This patch is to fix libtelemetry.so typo in Makefile.
Signed-off-by: Liu Xinwu <xinwu.liu@intel.com>
Acked-by: Zhang Di <di.zhang@intel.com> |
528,747 | 14.06.2018 16:09:23 | 25,200 | a167f44e936f61763e1f77b68bf65f77d2c78f94 | doc: add graphviz installation instructions | [
{
"change_type": "MODIFY",
"old_path": "doc/howtos/process/docbuild.rst",
"new_path": "doc/howtos/process/docbuild.rst",
"diff": "@@ -122,13 +122,14 @@ Depending on your Linux version, install the needed tools:\n.. code-block:: bash\n- sudo apt-get install doxygen python3-pip python3-wheel make\n+ s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add graphviz installation instructions
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,725 | 12.06.2018 17:53:43 | -28,800 | 5251f42574cf97b89870636207b0ad6dab5cbfc8 | HV: make: rename minimalconfig to savedefconfig
... following the naming convention of Linux kbuild.
v1 -> v2:
* Introduced.
Acked-by: Anthony Xu
Acked-by: Geoffroy VanCutsem | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/scripts/kconfig/kconfig.mk",
"new_path": "hypervisor/scripts/kconfig/kconfig.mk",
"diff": "@@ -77,9 +77,9 @@ oldconfig: $(KCONFIG_DEPS)\n# Minimize the current .config. This target can be used to generate a defconfig\n# for future use.\n-.PHONY: min... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: make: rename minimalconfig to savedefconfig
... following the naming convention of Linux kbuild.
v1 -> v2:
* Introduced.
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Geoffroy VanCutsem <geoffroy.vancutsem@intel.com> |
528,654 | 08.06.2018 09:04:42 | -28,800 | 46f64b55b4ab0b9d50be0a6dd492bb8d2215bba0 | hv: vlapic_timer: add vlapic one-shot/periodic timer support
Enable guest LAPIC one-shot/periodic timer support. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -224,6 +224,15 @@ vlapic_id_write_handler(struct vlapic *vlapic)\nlapic->id = vlapic_get_id(vlapic);\n}\n+static inline uint32_t\n+vlapic_timer_divisor_shift(uin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vlapic_timer: add vlapic one-shot/periodic timer support
Enable guest LAPIC one-shot/periodic timer support.
Change-Id: I368e28beaa81d6566de2626bbe26c9f8972f0891
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,763 | 14.06.2018 18:06:26 | -28,800 | 8202ba0a7067bce863d262514f617d8f9246ebce | HV: move common stuff from assign.c
Move common stuff, like ptdev entry and softirq, to new ptdev.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -138,6 +138,7 @@ C_SRCS += common/trusty_hypercall.c\nC_SRCS += common/schedule.c\nC_SRCS += common/vm_load.c\nC_SRCS += common/io_request.c\n+C_SRCS += common/ptdev.c\nifdef STACK_PROTECTOR\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: move common stuff from assign.c
Move common stuff, like ptdev entry and softirq, to new ptdev.c
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 14.06.2018 18:22:51 | -28,800 | 098c2e6788b22b5692383218eed52da168fa7ffb | HV: enable SMEP in hypervisor
- this patch is to enable SMEP in hypervisor, SMEP protects
guests' memory from supervisor-mode instruction fetches,
in other words, hypervisor which operating in supervisor
mode can't fetch instructions from (guests' memory)
linear addresses that are accessible in user mode. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -495,6 +495,8 @@ void bsp_boot_init(void)\npr_fatal(\"Please apply the latest CPU uCode patch!\");\n}\n+ enable_smep();\n+\n/* Initialize the shell */\nshell_init();\n@@ -546,6 +5... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: enable SMEP in hypervisor
- this patch is to enable SMEP in hypervisor, SMEP protects
guests' memory from supervisor-mode instruction fetches,
in other words, hypervisor which operating in supervisor
mode can't fetch instructions from (guests' memory)
linear addresses that are accessible in user mode.... |
528,804 | 14.06.2018 15:49:55 | -28,800 | a0b8da77fd2b37dc9722ad6e9099250c93d8ebfe | handle failure when add/create vcpu for a VM in DM
when add/create vcpu failed, before it just exits,
and the resource will not released; now if failed,
let DM release the resource.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -252,7 +252,7 @@ start_thread(void *param)\nreturn NULL;\n}\n-static void\n+static int\nadd_cpu(struct vmctx *ctx, int guest_ncpus)\n{\nint i;\n@@ -260,8 +260,10 @@ add_cpu(struct vmc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | handle failure when add/create vcpu for a VM in DM
when add/create vcpu failed, before it just exits,
and the resource will not released; now if failed,
let DM release the resource.
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@int... |
528,794 | 13.06.2018 22:49:50 | -28,800 | 5754d367ce2f41a1694eccef265a90db40b79d20 | HV: remove redundant code in cpu_secondary_init
cpu_find_logical_id() is called redundantly, remove one.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -554,12 +554,8 @@ void cpu_secondary_init(void)\nearly_init_lapic();\n/* Find the logical ID of this CPU given the LAPIC ID\n- * temp_logical_id =\n- * cpu_find_logical_id(get_cur... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove redundant code in cpu_secondary_init
cpu_find_logical_id() is called redundantly, remove one.
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,747 | 14.06.2018 13:06:27 | 25,200 | 37f33fd3898182a8f642c2ebd46e845f6cc5e6d4 | doc: update doc building tools versions
The latest versions of Sphinx and Breathe work well together so we're
updating the requirements.txt installation information (and
documentation) to use the latest versions of these tools.
Fixes: | [
{
"change_type": "MODIFY",
"old_path": "doc/howtos/process/docbuild.rst",
"new_path": "doc/howtos/process/docbuild.rst",
"diff": "@@ -111,10 +111,10 @@ Our documentation processing has been tested to run with:\n* Python 3.6.3\n* Doxygen version 1.8.13\n-* Sphinx version 1.6.7\n-* Breathe version 4.7... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update doc building tools versions
The latest versions of Sphinx and Breathe work well together so we're
updating the requirements.txt installation information (and
documentation) to use the latest versions of these tools.
Fixes: #395
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,747 | 14.06.2018 13:54:59 | 25,200 | 287fc4cb7faacf1a1c92ec77cb42bb1fc1e42d22 | doc: add hypervisor kconfig option reference
Modify the Zephyr project script for creating documentation from Kconfig
files to generate the hypervisor option configuration docs. While Zephyr
uses a modified version of kconfiglib, we can use the standard
kconfiglib from Pypi (added to the requirements.txt file). | [
{
"change_type": "MODIFY",
"old_path": ".gitignore",
"new_path": ".gitignore",
"diff": "@@ -6,8 +6,10 @@ devicemodel/include/version.h\ndoc/doxygen\ndoc/_build\ndoc/tools\n+doc/reference/kconfig/*.rst\nbuild\n*.bak\n*.sav\n*.log\n*.warnings\n+*.pyc\n"
},
{
"change_type": "MODIFY",
"old_p... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add hypervisor kconfig option reference
Modify the Zephyr project script for creating documentation from Kconfig
files to generate the hypervisor option configuration docs. While Zephyr
uses a modified version of kconfiglib, we can use the standard
kconfiglib from Pypi (added to the requirements.txt file).
Signe... |
528,716 | 18.06.2018 02:55:17 | 14,400 | 18c355f663b12993b72bb4a11fd09f2cfecbadff | DM: Fix build failure with Openssl 1.1+
Some APIs of Openssl 1.0 are deprecated in Openssl 1.1+.
Two different API implementations are adaptable to both
Openssl 1.1- and 1.1+.
Fixes:
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/rpmb/rpmb_sim.c",
"new_path": "devicemodel/hw/platform/rpmb/rpmb_sim.c",
"diff": "#include <string.h>\n#include <inttypes.h>\n#include <openssl/hmac.h>\n+#include <openssl/opensslv.h>\n#include \"rpmb.h\"\n#include \"rpmb_sim.h\"\n@@ -5... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: Fix build failure with Openssl 1.1+
Some APIs of Openssl 1.0 are deprecated in Openssl 1.1+.
Two different API implementations are adaptable to both
Openssl 1.1- and 1.1+.
Fixes: #305
Signed-off-by: Huang Yang <yang.huang@intel.com>
Signed-off-by: Du Min <minx.du@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel... |
528,684 | 08.06.2018 07:18:26 | -28,800 | 59f1f005aa4873c3416a75cc41db8d3f85bd07a0 | bugfix: make remove_intx_remapping static
remove_intx_remapping is not global function, make static.
Unlike global functions in C, access to static functions is restricted to the file where they are declared. Another reason for making functions static can be reuse of the same function name in other files | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -422,7 +422,7 @@ add_intx_remapping(struct vm *vm, uint8_t virt_pin,\n}\n/* deactive & remove mapping entry of vpin for vm */\n-void remove_intx_remapping(struct vm *vm, uin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | bugfix: make remove_intx_remapping static
remove_intx_remapping is not global function, make static.
Unlike global functions in C, access to static functions is restricted to the file where they are declared. Another reason for making functions static can be reuse of the same function name in other files
Signed-off-... |
528,688 | 30.05.2018 09:44:34 | -28,800 | 5f5c16dc15244de2067d8d7dd6d104f3c7ba6bbf | hv: add shell command to trigger crash
this patch add shell command trigger crash for testing crashmode/ramdump
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell_internal.c",
"new_path": "hypervisor/debug/shell_internal.c",
"diff": "@@ -1055,6 +1055,17 @@ int shell_cpuid(struct shell *p_shell, int argc, char **argv)\nreturn 0;\n}\n+int shell_trigger_crash(struct shell *p_shell, int argc, char **a... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add shell command to trigger crash
this patch add shell command trigger crash for testing crashmode/ramdump
Signed-off-by: zhouji3x <jianfengx.zhou@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,688 | 19.06.2018 10:10:01 | -28,800 | 0f842cd38dedae7a86ab3de8dad4482efcf2e567 | DM samples: trigger warm reboot on panic
this patch add "reboot_panic=p,w" to command line of SOS to trigger
warm reboot on panic
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt",
"new_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt",
"diff": "-pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=/dev/mmcblk1p1 rw rootwait clocksourc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM samples: trigger warm reboot on panic
this patch add "reboot_panic=p,w" to command line of SOS to trigger
warm reboot on panic
Signed-off-by: zhouji3x <jianfengx.zhou@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,647 | 13.06.2018 15:54:22 | -28,800 | 57d6a933f6b7054085c80d2d0e3d437005b80073 | tools: correct several Makefile problems
1. mkdir ./tools/build if it does not exist;
2. correct static lib path for acrn-manager;
3. do not remove acrnlog.service if build under source code dir by default. | [
{
"change_type": "MODIFY",
"old_path": "tools/Makefile",
"new_path": "tools/Makefile",
"diff": "T := $(CURDIR)\n-OUT_DIR ?= $(T)/build\n+OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)\n.PHONY: all acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge\nall: acrn-crashlog acrnlog acrn-man... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: correct several Makefile problems
1. mkdir ./tools/build if it does not exist;
2. correct static lib path for acrn-manager;
3. do not remove acrnlog.service if build under source code dir by default.
Reviewed-by: Geoffroy VanCutsem <geoffroy.vancutsem@intel.com>
Signed-off-by: Yan, Like <like.yan@intel.com> |
528,647 | 13.06.2018 21:47:35 | -28,800 | b8bdf171eb2ef5ed5596f15905865e92fdfddca1 | tools: acrnlog: improve for log incompleteness problem
1. add warning when log incompleteness observed;
2. decrease default polling interval to reduce chance of log incompleteness;
3. add option "-t" to allow user to specify the polling interval;
4. modified README.rst to reflect the options. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrnlog/README.rst",
"new_path": "tools/acrnlog/README.rst",
"diff": "@@ -22,6 +22,22 @@ The ``acrnlog`` tool is launched as a service at boot, and limited to\nsupporting four 1MB log files by default. You can change this log file\nlimitation temporarily... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrnlog: improve for log incompleteness problem
1. add warning when log incompleteness observed;
2. decrease default polling interval to reduce chance of log incompleteness;
3. add option "-t" to allow user to specify the polling interval;
4. modified README.rst to reflect the options.
Reviewed-by: Geoffroy Va... |
528,688 | 30.05.2018 09:41:39 | -28,800 | ad2d855302286b708302f90bf07eba4351f94dd9 | hv: save registers on exception
This patch is for crashmode/ramdump. when exception occur:
1) save registers;
2) flush cache
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/dump.c",
"new_path": "hypervisor/debug/dump.c",
"diff": "@@ -44,6 +44,9 @@ static const char *const excp_names[] = {\n[31] = \"Intel Reserved\"\n};\n+/* Global variable for save registers on exception */\n+struct intr_excp_ctx *crash_ctx;\n+\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: save registers on exception
This patch is for crashmode/ramdump. when exception occur:
1) save registers;
2) flush cache
Signed-off-by: zhouji3x <jianfengx.zhou@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 19.06.2018 14:29:20 | -28,800 | c52afb145221f7faafdeebd93c33a4666dc8b901 | hv: fix error use of list_del for delete timer
We should use list_del_init here. Otherwise it would misorder the
timer list if we would delete timer more than once if there're more
than one timer on it. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/timer.c",
"new_path": "hypervisor/arch/x86/timer.c",
"diff": "@@ -96,7 +96,7 @@ int add_timer(struct timer *timer)\nvoid del_timer(struct timer *timer)\n{\nif (timer && !list_empty(&timer->node))\n- list_del(&timer->node);\n+ list_del_init(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix error use of list_del for delete timer
We should use list_del_init here. Otherwise it would misorder the
timer list if we would delete timer more than once if there're more
than one timer on it.
Change-Id: I2d18248173ced1ea1b723352327d2c3d0efc4900
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,646 | 15.06.2018 17:19:55 | -28,800 | fa5229052c5bd4928d1b939c6db6a574e5de2ba2 | tools: acrn-crashlog: Improve the efficiency of do_log
Get the header size by receiving return value of snprintf instead
of initialize log buffer and strlen.
Acked-by: Chen Gang | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/common/log_sys.c",
"new_path": "tools/acrn-crashlog/common/log_sys.c",
"diff": "#include <systemd/sd-journal.h>\n#include \"log_sys.h\"\n-void do_log(int level,\n+void do_log(const int level,\n#ifdef DEBUG_ACRN_CRASHLOG\n- const char *func,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-crashlog: Improve the efficiency of do_log
Get the header size by receiving return value of snprintf instead
of initialize log buffer and strlen.
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com> |
528,690 | 19.06.2018 13:17:07 | -28,800 | b3ca8f43ff1ac8be58ad6a30aa487c4af77f2e2b | add acrnbridge-install to Makefile install target
This was missed out. Added
to fix the makefile install target. | [
{
"change_type": "MODIFY",
"old_path": "tools/Makefile",
"new_path": "tools/Makefile",
"diff": "@@ -28,7 +28,7 @@ clean:\nrm -rf $(OUT_DIR)\n.PHONY: install\n-install: acrn-crashlog-install acrnlog-install acrn-manager-install acrntrace-install\n+install: acrn-crashlog-install acrnlog-install acrn-m... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | add acrnbridge-install to Makefile install target
This was missed out. Added
to fix the makefile install target.
Signed-off-by: Tan Shen Joon <shen.joon.tan@intel.com> |
528,747 | 19.06.2018 07:35:39 | 25,200 | 685d82cdcc86b94dc91b0a61bbc953a2eb5908ce | doc: fix formatting in acrnlog doc
A merged change had problems with the formatting of acrnlog options. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrnlog/README.rst",
"new_path": "tools/acrnlog/README.rst",
"diff": "@@ -24,20 +24,13 @@ limitation temporarily or permanently.\nOptions:\n- -h\n- display the help\n-\n- -t:\n- specify a polling interval (ms). Once buffer is empty, acrnlog stops\n+ -h d... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: fix formatting in acrnlog doc
A merged change had problems with the formatting of acrnlog options.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,711 | 19.06.2018 15:25:20 | -28,800 | fb723efa48103d566eaccff5e71fb034df797fec | dm: check pci_vdev before using
acrn-dm runs to segmentation fault when failed to create VMs with
improper parameters.
If vdevs failed to be created, they are still be freed in deinit(),
and dereference the null pointers leads to segfault.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/core.c",
"new_path": "devicemodel/hw/pci/core.c",
"diff": "@@ -821,7 +821,7 @@ static void\npci_emul_deinit(struct vmctx *ctx, struct pci_vdev_ops *ops, int bus, int slot,\nint func, struct funcinfo *fi)\n{\n- if (ops->vdev_deinit)\n+ if (op... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: check pci_vdev before using
acrn-dm runs to segmentation fault when failed to create VMs with
improper parameters.
If vdevs failed to be created, they are still be freed in deinit(),
and dereference the null pointers leads to segfault.
Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Reviewed-by: Yin Fengwei <fe... |
528,675 | 16.06.2018 14:42:50 | -28,800 | 75c1573affa6244848befab4b6206d93f0e8f7a6 | ept: set trusty eptp to 0 after destroy and only invalidate it when exist
set trusty eptp to 0 after destroy, and only invalidate trusty eptp when it
exist.
Acked-by: Eddie Dong
Acked-by: Xu, Anthony | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -103,8 +103,10 @@ void destroy_ept(struct vm *vm)\n* - trusty is enabled. But not initialized yet.\n* Check vm->arch_vm.sworld_eptp.\n*/\n- if (vm->sworld_control.sworld_enabled &... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | ept: set trusty eptp to 0 after destroy and only invalidate it when exist
set trusty eptp to 0 after destroy, and only invalidate trusty eptp when it
exist.
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com> |
528,675 | 16.06.2018 14:46:51 | -28,800 | e84d4dee197847b4127382d49f83bb1074fccabf | trusty: init & switch world fix
when init, cr0 & cr4 should read from VMCS
when world switch, cr0/cr4 read shadow should also be save/restore
v2:
use context->vmx_cr0/cr4 to save/restore VMX_GUEST_CR0/CR4
use context->cr0/cr4 to save/restore VMX_CR0/CR4_READ_SHADOW
Acked-by: Anthony Xu
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -177,8 +177,10 @@ static void save_world_ctx(struct run_context *context)\n{\n/* VMCS GUEST field */\n/* TSC_OFFSET, CR3, RIP, RSP, RFLAGS already saved on VMEXIT */\n- cont... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | trusty: init & switch world fix
- when init, cr0 & cr4 should read from VMCS
- when world switch, cr0/cr4 read shadow should also be save/restore
v2:
- use context->vmx_cr0/cr4 to save/restore VMX_GUEST_CR0/CR4
- use context->cr0/cr4 to save/restore VMX_CR0/CR4_READ_SHADOW
Signed-off-by: Jason Chen CJ <jason.cj.chen... |
528,647 | 19.06.2018 13:32:59 | -28,800 | 20b50ad4e8b00176852aeb486c8eefa6f93d9c3b | HV: correct loglevel definitions and default values
1. remove duplicated definitions of mem_loglevel/console_loglevel;
2. Set default loglevels to display important messages:
- CONSOLE_LOGLEVEL_DEFALUT is changed from 2 to 3;
- MEM_LOGLEVEL_DEFAULT is changed from 4 to 5.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/Kconfig",
"new_path": "hypervisor/arch/x86/Kconfig",
"diff": "@@ -81,11 +81,11 @@ config HEAP_SIZE\nconfig CONSOLE_LOGLEVEL_DEFAULT\nint \"Default loglevel on the serial console\"\n- default 2\n+ default 3\nconfig MEM_LOGLEVEL_DEFAULT\nint ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: correct loglevel definitions and default values
1. remove duplicated definitions of mem_loglevel/console_loglevel;
2. Set default loglevels to display important messages:
- CONSOLE_LOGLEVEL_DEFALUT is changed from 2 to 3;
- MEM_LOGLEVEL_DEFAULT is changed from 4 to 5.
Acked-by: Eddie Dong <eddie.dong@intel.com>... |
528,788 | 15.06.2018 11:12:29 | -28,800 | e3174bb50ac65c8c352c0d058a5d6e8394fe0767 | script: add plane restriction parameters for NUC
This patch added GVT-g feature and support of plane restriction for APL
NUC platforms. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/nuc/launch_uos.sh",
"new_path": "devicemodel/samples/nuc/launch_uos.sh",
"diff": "@@ -20,6 +20,7 @@ mem_size=1000M\necho 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages\nacrn-dm -T -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | script: add plane restriction parameters for NUC
This patch added GVT-g feature and support of plane restriction for APL
NUC platforms.
Signed-off-by: Min He <min.he@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com> |
528,676 | 19.06.2018 14:06:47 | -28,800 | fe0314e8c31b675b3e9a079e70acec064010b2b6 | HV:header:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.h",
"new_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.h",
"diff": "@@ -121,10 +121,10 @@ struct seg_desc {\n#define SEG_DESC_TYPE(access) ((access) & 0x001f)\n#define SEG_DESC_DPL(access) (((access) >> 5) & ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:header:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 19.06.2018 14:45:30 | -28,800 | 23921384d008e3ac27f90d0e32c64fab000a5076 | HV:debug:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/console.c",
"new_path": "hypervisor/debug/console.c",
"diff": "@@ -61,13 +61,13 @@ int console_puts(const char *s)\nif (serial_handle != SERIAL_INVALID_HANDLE) {\nres = 0;\n- while (*s) {\n+ while ((*s) != 0) {\n/* start output at the beginnin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:debug:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 19.06.2018 14:25:22 | -28,800 | f92931c879a10ec14d2c8f33e2d08cf03b390e9a | HV:common:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hv_main.c",
"new_path": "hypervisor/common/hv_main.c",
"diff": "@@ -42,7 +42,7 @@ void vcpu_thread(struct vcpu *vcpu)\ncontinue;\n}\n- if (need_reschedule(vcpu->pcpu_id)) {\n+ if (need_reschedule(vcpu->pcpu_id) != 0) {\n/*\n* In extrem case, ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:common:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when
in branch statements (if,while...).
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 20.06.2018 21:59:55 | -28,800 | 32fccb2f43671366266c61049c73757a6dac8b67 | HV: 'vlapic_set_local_intr()' code cleanup
change the argument 'cpu_id' to 'vcpu_id' | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1758,23 +1758,23 @@ vlapic_set_intr(struct vcpu *vcpu, uint32_t vector, bool level)\n}\nint\n-vlapic_set_local_intr(struct vm *vm, int cpu_id, uint32_t vector)\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: 'vlapic_set_local_intr()' code cleanup
change the argument 'cpu_id' to 'vcpu_id'
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> |
528,756 | 20.06.2018 16:44:59 | -28,800 | 48067b1cab750672a4b0ca757e8d5f96bb09727b | IOC mediator: Implement VM monitor operations
This patch implements VM monitor operations including stop/suspend/resume.
For other VM monitor operations(pause/unpause/query), IOC mediator would not
register callbacks for them since there is no requirements from VM Manager. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc.c",
"new_path": "devicemodel/hw/platform/ioc.c",
"diff": "#include \"ioc.h\"\n#include \"vmmapi.h\"\n+#include \"monitor.h\"\n/* For debugging log to a file */\nstatic int ioc_debug;\n@@ -126,6 +127,38 @@ static int dummy1_sfd = -1;... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: Implement VM monitor operations
This patch implements VM monitor operations including stop/suspend/resume.
For other VM monitor operations(pause/unpause/query), IOC mediator would not
register callbacks for them since there is no requirements from VM Manager.
Signed-off-by: Yuan Liu <yuan1.liu@intel.com... |
528,725 | 19.06.2018 18:30:40 | -28,800 | f4bd0798e0eb89c133efe53471ba284d73b73ba4 | HV: mmu: convert hexadecimals used in bitops to unsigned | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/gdt.c",
"new_path": "hypervisor/arch/x86/gdt.c",
"diff": "@@ -11,14 +11,14 @@ static void set_tss_desc(union tss_64_descriptor *desc,\n{\nuint32_t u1, u2, u3;\n- u1 = ((uint64_t)tss << 16) & 0xFFFFFFFF;\n- u2 = (uint64_t)tss & 0xFF000000;\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: mmu: convert hexadecimals used in bitops to unsigned
Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
528,762 | 21.06.2018 09:21:02 | -28,800 | 2922a657c919af0542a29b6655374287dd984008 | hv: fix compile error
function definition in header file must be signed as static inline type
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/debug/console.h",
"new_path": "hypervisor/include/debug/console.h",
"diff": "@@ -100,8 +100,8 @@ static inline void console_dump_bytes(__unused const void *p,\nstatic inline void console_setup_timer(void) {}\nstatic inline uint32_t get_seria... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix compile error
function definition in header file must be signed as static inline type
Signed-off-by: Cai Yulong <yulongc@hwtc.com.cn>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 22.06.2018 10:05:25 | -28,800 | 58672cb5627278089047a0f52cb326e0e057ae61 | fix "negative shift"
MISRA C doesn't allowed negative shift, changed any potential signed value
to unsigned value.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -59,7 +59,7 @@ int ibrs_type;\ninline bool cpu_has_cap(uint32_t bit)\n{\nint feat_idx = bit >> 5;\n- int feat_bit = bit & 0x1fU;\n+ uint32_t feat_bit = bit & 0x1fU;\nif (feat_idx ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | fix "negative shift"
MISRA C doesn't allowed negative shift, changed any potential signed value
to unsigned value.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 21.06.2018 16:43:46 | -28,800 | 218a0a8b5dedc5c9f983cae65fc70e27dfcf6af0 | modified struct to fix "negative shift"
The member of width in struct e820_entries,can be declared to
uint32_t(the range of the member is bigger than 0) to avoid
negative shift.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -18,7 +18,7 @@ struct e820_mem_params e820_mem;\nstruct page_walk_info {\nuint64_t top_entry; /* Top level paging structure entry */\nint level;\n- int width;\n+ u... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | modified struct to fix "negative shift"
The member of width in struct e820_entries,can be declared to
uint32_t(the range of the member is bigger than 0) to avoid
negative shift.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 21.06.2018 17:52:07 | -28,800 | c5c338aecce9aef5135d1cfba48335e1302cce47 | vtd:fix "negative shift"
MISRA C doesn't allowed negative shift, changed any potential signed value
to unsigned value.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vtd.c",
"new_path": "hypervisor/arch/x86/vtd.c",
"diff": "@@ -472,9 +472,9 @@ static struct dmar_drhd_rt *device_to_dmaru(uint16_t segment, uint8_t bus,\nreturn NULL;\n}\n-static int alloc_domain_id(void)\n+static uint8_t alloc_domain_id(vo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | vtd:fix "negative shift"
MISRA C doesn't allowed negative shift, changed any potential signed value
to unsigned value.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 21.06.2018 10:08:38 | -28,800 | 2e535855ce6885214e20001c5ec7fa1de5898945 | hv: remove config_page_table_attr
Before we set the page table, we should know the attribute. So
move configure the page table attribute outside of modify_paging.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -478,6 +478,12 @@ int ept_mmap(struct vm *vm, uint64_t hpa,\n}\nif (type == MAP_MEM || type == MAP_MMIO) {\n+ /* EPT & VT-d share the same page tables, set SNP bit\n+ * to force s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove config_page_table_attr
Before we set the page table, we should know the attribute. So
move configure the page table attribute outside of modify_paging.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 20.06.2018 14:16:06 | -28,800 | 437ed88588d61a5b08ea8d6005b60e6ddd4eea2c | hv: uos needn't to ummap trap mmio memory
We wouldn't map this memory region for UOS.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -234,6 +234,13 @@ int register_mmio_emulation_handler(struct vm *vm,\nmmio_node->range_start = start;\nmmio_node->range_end = end;\n+\n+ /*\n+ * SOS would map all its memory at be... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: uos needn't to ummap trap mmio memory
We wouldn't map this memory region for UOS.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 20.06.2018 16:42:56 | -28,800 | 3892bd04553ee386fe926253e4425e61035b00fe | hv: refine the address used in sbl multiboot code
Update the structure definition to define the address type
(HVA vs HPA vs GPA) explicitly.
Convert address to HVA before access the GPA/HPA type of address. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -416,13 +416,14 @@ void init_e820(void)\nunsigned int i;\nif (boot_regs[0] == MULTIBOOT_INFO_MAGIC) {\n- struct multiboot_info *mbi =\n- (struct multiboot_info *)(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: refine the address used in sbl multiboot code
Update the structure definition to define the address type
(HVA vs HPA vs GPA) explicitly.
Convert address to HVA before access the GPA/HPA type of address.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> |
528,715 | 22.06.2018 13:07:27 | -28,800 | c585172492b4f2c8d3c34ae66c0fff98059ae647 | Rename phy_cpu_num as phys_cpu_num
phys_cpu_num is more popular than phy_cpu_num, update them
through command.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -23,7 +23,7 @@ spinlock_t up_count_spinlock = {\n};\nstruct per_cpu_region *per_cpu_data_base_ptr;\n-uint16_t phy_cpu_num = 0U;\n+uint16_t phys_cpu_num = 0U;\nunsigned long pcpu_s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Rename phy_cpu_num as phys_cpu_num
phys_cpu_num is more popular than phy_cpu_num, update them
through command.
Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,728 | 22.06.2018 13:57:09 | -7,200 | 5892b98dbdb7034aeafd28e6a3ca0702593eb3fb | Getting Started Guide: update build dependencies and tools
Add some basic development tools needed to build the ACRN project.
These were not specifically called out (although most likely
already installed in any development system). | [
{
"change_type": "MODIFY",
"old_path": "doc/getting_started/index.rst",
"new_path": "doc/getting_started/index.rst",
"diff": "@@ -392,7 +392,9 @@ each with their own way to install development tools:\n.. code-block:: console\n- $ sudo apt install git \\\n+ $ sudo apt install gcc \\\n+ git \\\n+ make... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Getting Started Guide: update build dependencies and tools
Add some basic development tools needed to build the ACRN project.
These were not specifically called out (although most likely
already installed in any development system).
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,675 | 22.06.2018 21:25:16 | -28,800 | 1d66aaacf3e2ba9e3a439d7c4a88f3caed1eb37a | init: separate init function based on different stack
for bsp_boot_init/cpu_secondary_init, they are on temp stack.
for bsp_boot_post/cpu_secondary_post, they are on runtime stack.
define SWITCH_TO MACRO to switch runtime stack then jump to post functions.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -48,6 +48,8 @@ static struct cpu_capability cpu_caps;\nstruct cpuinfo_x86 boot_cpu_data;\n+static void bsp_boot_post(void);\n+static void cpu_secondary_post(void);\nstatic void va... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | init: separate init function based on different stack
for bsp_boot_init/cpu_secondary_init, they are on temp stack.
for bsp_boot_post/cpu_secondary_post, they are on runtime stack.
define SWITCH_TO MACRO to switch runtime stack then jump to post functions.
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-... |
528,733 | 20.06.2018 00:36:52 | -28,800 | ad59375dfd1a7f8f31ae28ef3e4b90af30c0cac8 | hv: cpu_context is not only used by guest.
It could be also used by host as well. So we remove GUEST from
MACRO name
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -376,55 +376,55 @@ void bsp_boot_init(void)\nASSERT(NR_WORLD == 2, \"Only 2 Worlds supported!\");\nASSERT(offsetof(struct cpu_regs, rax) ==\n- VMX_MACHINE_T_GUEST_RAX_OFFSET,\n+ C... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: cpu_context is not only used by guest.
It could be also used by host as well. So we remove GUEST from
MACRO name
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <Eddie.dong@intel.com> |
528,733 | 22.06.2018 14:56:53 | -28,800 | bab8fadfee64f440f420c3de64702bdd0787ef32 | hv: Makefile flags initialization
For hypervisor, we initliaze the flags used in build command
to empty to avoid flags set in default env impact to hypervisor
build.
Acked-by: VanCutsem Geoffroy
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -19,6 +19,15 @@ BASEDIR := $(shell pwd)\nHV_OBJDIR ?= $(CURDIR)/build\nHV_FILE := acrn\n+# initialize the flags we used\n+CFLAGS :=\n+ASFLAGS :=\n+LDFLAGS :=\n+ARCH_CFLAGS :=\n+ARCH_ASFLAGS :... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Makefile flags initialization
For hypervisor, we initliaze the flags used in build command
to empty to avoid flags set in default env impact to hypervisor
build.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: VanCutsem Geoffroy <geoffroy.vancutsem@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.co... |
528,680 | 22.06.2018 16:58:11 | 25,200 | a69a36960ad63a279a36b72e38ce0147b1631e2f | guest.h: Condition operator fix of foreach_vcpu loop
The for loop statement should work in both & and &&, but it seems
make more sense to have && when executing a condtion. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/guest.h",
"new_path": "hypervisor/include/arch/x86/guest/guest.h",
"diff": "#define foreach_vcpu(idx, vm, vcpu) \\\nfor (idx = 0, vcpu = vm->hw.vcpu_array[idx]; \\\n- (idx < vm->hw.num_vcpus) & (vcpu != NULL); \\\n+ (idx < vm-... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | guest.h: Condition operator fix of foreach_vcpu loop
The for loop statement should work in both & and &&, but it seems
make more sense to have && when executing a condtion.
Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> |
528,681 | 21.06.2018 08:16:33 | 25,200 | 359e5cf794a5663ceeecae6358628ac75097f929 | dm: Disable stolen memory for passthru graphics
When enabling GPU passthru for guest, stolen memory needs to be
disabled. This change disables stolen memory in passthru mode. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/passthrough.c",
"new_path": "devicemodel/hw/pci/passthrough.c",
"diff": "#define PCI_BDF(bus, dev, func) (((bus & 0xFF)<<8) | ((dev & 0x1F)<<3) \\\n| ((func & 0x7)))\n+#define PCI_BDF_GPU 0x00000010 /* 00:02.0 */\n+\n/* Some audio driver get... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: Disable stolen memory for passthru graphics
When enabling GPU passthru for guest, stolen memory needs to be
disabled. This change disables stolen memory in passthru mode.
Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Reviewed-by: Gong Zhipeng <zhipeng.gong@intel.com> |
528,691 | 26.06.2018 09:59:35 | -28,800 | c82551999b6379147635aec8f5fa8af158a75be9 | audio mediator device model
The device model is a userspace application on SOS to config the
PCI devices for the UOS. Audio mediator device model is to config
the virtual audio PCI device. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "devicemodel/hw/pci/virtio/virtio_audio.c",
"diff": "+/*\n+ * Copyright (C) 2018 Intel Corporation. All rights reserved.\n+ *\n+ * SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ */\n+\n+/*\n+ * virtio audio\n+ * audio mediator device model\n+ */\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | audio mediator device model
The device model is a userspace application on SOS to config the
PCI devices for the UOS. Audio mediator device model is to config
the virtual audio PCI device.
Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com> |
528,691 | 26.06.2018 10:05:20 | -28,800 | f67951bf176f8e68683b5b4b063570684bd8e7c8 | enable audio mediator device model
Modify the Makefile to add the virtio_audio.c | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/Makefile",
"new_path": "devicemodel/Makefile",
"diff": "@@ -83,6 +83,7 @@ SRCS += hw/pci/virtio/virtio_input.c\nSRCS += hw/pci/ahci.c\nSRCS += hw/pci/hostbridge.c\nSRCS += hw/pci/passthrough.c\n+SRCS += hw/pci/virtio/virtio_audio.c\nSRCS += hw/pci/... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | enable audio mediator device model
Modify the Makefile to add the virtio_audio.c
Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com> |
528,768 | 26.06.2018 16:37:46 | -28,800 | 9beb1b92b5a35d880b017225eb21745a93beda84 | HV: add MTRR capability check when CPU boot
to avoid reading operations on MTRR registers if
no MTRR feature support on current platform in "init_mtrr()". | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -219,6 +219,11 @@ static int hardware_detect_support(void)\nreturn -ENODEV;\n}\n+ if (!cpu_has_cap(X86_FEATURE_MTRR)) {\n+ pr_fatal(\"%s, MTRR not supported\\n\", __func__);\n+ re... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add MTRR capability check when CPU boot
- to avoid reading operations on MTRR registers if
no MTRR feature support on current platform in "init_mtrr()".
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> |
528,725 | 26.06.2018 19:57:53 | -28,800 | 392542310ffc4252c2fab13b03f2754bd0e4bbbb | HV: treewide: convert suffix ULL to UL
It is already assumed that ''long'' has 8-bytes, and thus there is no need to
use ULL to indicate a 8-byte unsigned constant.
This patch changes all ULL suffixes found in the hypervisor to UL.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -801,8 +801,8 @@ uint64_t create_guest_initial_paging(struct vm *vm)\n/* The GDT defined below compatible with linux kernel */\n#define GUEST_INIT_GDT_DESC_0 (0x0)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: treewide: convert suffix ULL to UL
It is already assumed that ''long'' has 8-bytes, and thus there is no need to
use ULL to indicate a 8-byte unsigned constant.
This patch changes all ULL suffixes found in the hypervisor to UL.
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@int... |
528,665 | 26.06.2018 22:44:04 | -28,800 | 1a607b669d0e4ba8bc4fc8042c6f65633daf848e | HV: Fix wrong comment of trace_entry size
sizeof trace_entry is 4 * 64bit
No functional change.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/debug/trace.h",
"new_path": "hypervisor/include/debug/trace.h",
"diff": "#define TRACE_FUNC_EXIT 0xFE\n#define TRACE_STR 0xFF\n-/* sizeof(trace_entry) == 3 x 64bit */\n+/* sizeof(trace_entry) == 4 x 64bit */\nstruct trace_entry {\nuint64_t t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Fix wrong comment of trace_entry size
sizeof trace_entry is 4 * 64bit
No functional change.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 25.06.2018 17:51:00 | -28,800 | 9600dfa07d4ac6ce68774c4a4aff40b776e6967b | fix "function return type inconsistent"
MISRA C required function return type should be consistented.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -77,7 +77,7 @@ inline bool cpu_has_cap(uint32_t bit)\nif (feat_idx >= FEATURE_WORDS)\nreturn false;\n- return !!(boot_cpu_data.cpuid_leaves[feat_idx] & (1 << feat_bit));\n+ return... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | fix "function return type inconsistent"
MISRA C required function return type should be consistented.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,647 | 20.06.2018 13:45:47 | -28,800 | d5912a4d169e402786da24d538674c84bc793e02 | hv: pirq: rename related source files
To make the file structure clearer, change the file names:
- rename arch/x86/interrupt.c to virq.c, for the virtual irq relavant code,
such as irq injection etc;
- merge arch/x86/intr_main.c into arch/x86/irq.c;
- rename arch/x86/intr_lapic.c to lapic.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -95,14 +95,13 @@ D_SRCS += $(wildcard debug/*.c)\nC_SRCS += boot/acpi.c\nC_SRCS += boot/dmar_parse.c\nC_SRCS += arch/x86/ioapic.c\n-C_SRCS += arch/x86/intr_lapic.c\n+C_SRCS += arch/x86/lapic.... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: pirq: rename related source files
To make the file structure clearer, change the file names:
- rename arch/x86/interrupt.c to virq.c, for the virtual irq relavant code,
such as irq injection etc;
- merge arch/x86/intr_main.c into arch/x86/irq.c;
- rename arch/x86/intr_lapic.c to lapic.c
Signed-off-by: Yan, ... |
528,647 | 20.06.2018 16:30:55 | -28,800 | f74675ce21750d7004bb8c5cae69be10e1d9bfbd | hv: pirq: add a header for common data struct and APIs
add a commont head file include/common/irq.h, to include the common data
structure and APIs;
move the common data struct and APIs from arch/x86/irq.h to the common header.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/irq.c",
"new_path": "hypervisor/arch/x86/irq.c",
"diff": "static spinlock_t exception_spinlock = { .head = 0, .tail = 0, };\n-struct irq_request_info {\n- /* vector set to 0xE0 ~ 0xFF for pri_register_handler\n- * and set to VECTOR_INVALID ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: pirq: add a header for common data struct and APIs
- add a commont head file include/common/irq.h, to include the common data
structure and APIs;
- move the common data struct and APIs from arch/x86/irq.h to the common header.
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.... |
528,768 | 27.06.2018 22:32:52 | -28,800 | a27bfcefedb52184adb14add9552342d26130ee8 | HV: Remove 'register' prefix for data type
it is unnecessary. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/lib/rtl.h",
"new_path": "hypervisor/include/lib/rtl.h",
"diff": "@@ -41,8 +41,8 @@ void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen);\nint udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res);\nint udiv32(uint3... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Remove 'register' prefix for data type
- it is unnecessary.
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> |
528,733 | 14.06.2018 21:07:26 | -28,800 | 443491009ea9f0a267377eaf38f1a95064dcb03f | hv: rename the pm.h to guest_pm.h
We will add host_pm.h for ACRN power manager header file.
Acked-by: Eddie Dong | [
{
"change_type": "RENAME",
"old_path": "hypervisor/include/arch/x86/guest/pm.h",
"new_path": "hypervisor/include/arch/x86/guest/guest_pm.h",
"diff": "* SPDX-License-Identifier: BSD-3-Clause\n*/\n-#ifndef PM_H\n-#define PM_H\n+#ifndef GUEST_PM_H\n+#define GUEST_PM_H\nvoid vm_setup_cpu_state(struct vm... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: rename the pm.h to guest_pm.h
We will add host_pm.h for ACRN power manager header file.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 14.06.2018 10:11:57 | -28,800 | a06a2f28cd525c5b61abcb3827fdb47de0053862 | hv: implement lowlevel S3 enter/wakeup
The S3 enter lowlevel routine saves the cpu context to memory
and enter S3 state
The S3 wakeup lowlevel routine restore cpu context and return.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -119,6 +119,7 @@ C_SRCS += arch/x86/trusty.c\nC_SRCS += arch/x86/cpu_state_tbl.c\nC_SRCS += arch/x86/mtrr.c\nC_SRCS += arch/x86/pm.c\n+S_SRCS += arch/x86/wakeup.S\nC_SRCS += arch/x86/guest/vc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: implement lowlevel S3 enter/wakeup
The S3 enter lowlevel routine saves the cpu context to memory
and enter S3 state
The S3 wakeup lowlevel routine restore cpu context and return.
Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 14.06.2018 21:23:50 | -28,800 | d34700a1aee2bfe8e0dd266a1170772bd37e948f | hv: prepare for Sx(S3/S5) support in ACRN.
Couple of small changes merged in this change:
- export main_entry, trampoline_spinlock and stop_cpus.
- change vm_resume() name to resume_vm()
- change resume_console_enable() name to resume_console()
- extend reset_vcpu to reset more fields of vcpu
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -278,6 +278,13 @@ void reset_vcpu(struct vcpu *vcpu)\nvcpu->ioreq_pending = 0;\nvcpu->arch_vcpu.nr_sipi = 0;\nvcpu->pending_pre_work = 0;\n+\n+ vcpu->arch_vcpu.excep... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: prepare for Sx(S3/S5) support in ACRN.
Couple of small changes merged in this change:
- export main_entry, trampoline_spinlock and stop_cpus.
- change vm_resume() name to resume_vm()
- change resume_console_enable() name to resume_console()
- extend reset_vcpu to reset more fields of vcpu
Signed-off-by: Yin F... |
528,667 | 13.06.2018 10:20:57 | -28,800 | 4ec690fde3c336dfad5977ff9c13fe786013ade0 | DM/samples: remove clocksource assignment
HPET reading is much slower than TSC. Using it will hurt SOS performance
a lot, and then the whole system performance.
Remove the strict assignment from cmdline. Then SOS kernel will pickup
TSC as default clocksource.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt",
"new_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt",
"diff": "-pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=/dev/mmcblk1p1 rw rootwait clocksourc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM/samples: remove clocksource assignment
HPET reading is much slower than TSC. Using it will hurt SOS performance
a lot, and then the whole system performance.
Remove the strict assignment from cmdline. Then SOS kernel will pickup
TSC as default clocksource.
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-b... |
528,676 | 28.06.2018 16:27:12 | -28,800 | b8384ea0dd511db2990c47f768b9f7ddd390d256 | HV:common:transfer local variable type
The local variable type should be transfer to non-basic type,
chaned it to length-prefix(uint32_t,int32_t ...) type.
Char *type or char array type which used to pointer a string
will be keeped.
V1->V2 add extra comments.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hv_main.c",
"new_path": "hypervisor/common/hv_main.c",
"diff": "@@ -11,7 +11,7 @@ bool x2apic_enabled;\nstatic void run_vcpu_pre_work(struct vcpu *vcpu)\n{\n- unsigned long *pending_pre_work = &vcpu->pending_pre_work;\n+ uint64_t *pending_pre... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:common:transfer local variable type
The local variable type should be transfer to non-basic type,
chaned it to length-prefix(uint32_t,int32_t ...) type.
Char *type or char array type which used to pointer a string
will be keeped.
V1->V2 add extra comments.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Ack... |
528,763 | 22.06.2018 14:23:22 | -28,800 | dafca1743ddf410a800da0b252411bcde37fb255 | DM: reset each ptdev before assignment
This helps achieving valid dev state after UOS restart
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/passthrough.c",
"new_path": "devicemodel/hw/pci/passthrough.c",
"diff": "#include <errno.h>\n#include <pthread.h>\n#include <pciaccess.h>\n+#include <fcntl.h>\n+#include <unistd.h>\n#include \"iodev.h\"\n#include \"vmmapi.h\"\n@@ -815,7 +817... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: reset each ptdev before assignment
This helps achieving valid dev state after UOS restart
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,763 | 22.06.2018 19:19:44 | -28,800 | 15f651e5ab270135684b03f95ef8ab8512d7e9c8 | DM: change passthrough parameter
Use right parameter in launch_uos.sh after updating prefer_msi option
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -283,16 +283,15 @@ fi\n-s 13,virtio-rpmb \\\n-s 10,virtio-hyper_dmabuf \\\n-s 11,wdt-i6300esb \\\n- -s 14,passthru,0/e/0 \\\n+ -s 14,passthru,0/e/0... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: change passthrough parameter
Use right parameter in launch_uos.sh after updating prefer_msi option
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,763 | 27.06.2018 11:47:22 | -28,800 | 81b113cfa591c8b07757ef863bbaf4dae05fe9ac | DM: add 'reset' option for ptdev
WIFI dev has no FLR, so 'reset' in sysfs calls secondary bus reset,
which cause PCI configuration mess(all FF) then passthrough failure.
To fix it, this patch makes no reset before passthrough by default,
until append this option.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/passthrough.c",
"new_path": "devicemodel/hw/pci/passthrough.c",
"diff": "@@ -107,6 +107,10 @@ struct passthru_dev {\nint phys_pin;\nuint16_t phys_bdf;\nstruct pci_device *phys_dev;\n+ /* Options for passthrough device:\n+ * need_reset - rese... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: add 'reset' option for ptdev
WIFI dev has no FLR, so 'reset' in sysfs calls secondary bus reset,
which cause PCI configuration mess(all FF) then passthrough failure.
To fix it, this patch makes no reset before passthrough by default,
until append this option.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked... |
528,725 | 28.06.2018 20:00:17 | -28,800 | 1b97c6ea92f1749cc9b4e8c1872ce1dc06d36e21 | HV: vpic: cleanup uses of boolean variables
This patch drops the duplicated definitions to ''true'' and ''false'' and
initializes boolean variables with boolean values instead of integers.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vpic.c",
"new_path": "hypervisor/arch/x86/guest/vpic.c",
"diff": "#define vm_pic(vm) (vm->vpic)\n-#define true ((_Bool) 1)\n-#define false ((_Bool) 0)\n-\n#define ACRN_DBG_PIC 6\nenum irqstate {\n@@ -259,7 +256,7 @@ static int vpic_ic... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: vpic: cleanup uses of boolean variables
This patch drops the duplicated definitions to ''true'' and ''false'' and
initializes boolean variables with boolean values instead of integers.
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,667 | 28.06.2018 02:36:10 | 0 | 1c605a4f50d2c583947114fad93c06cd6e3ee012 | build: Using id tool to get builder username
Some build environment might has no USER pre-defined. So use id tool to
get builder username instead of USER environemnt.
Also add a version cleanup for tools to keep them updated.
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/Makefile",
"new_path": "devicemodel/Makefile",
"diff": "@@ -158,6 +158,7 @@ include/version.h:\nDIRTY=`git diff-index --name-only HEAD`;\\\nif [ -n \"$$DIRTY\" ];then PATCH=\"$$COMMIT-dirty\";else PATCH=\"$$COMMIT\";fi;\\\nTIME=`date \"+%Y-%m-%d %H... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | build: Using id tool to get builder username
Some build environment might has no USER pre-defined. So use id tool to
get builder username instead of USER environemnt.
Also add a version cleanup for tools to keep them updated.
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Geoffroy Van Cutsem <geoffroy.vanc... |
528,665 | 25.06.2018 22:40:14 | -28,800 | 0d9b1638753e85ba95d22db4fd7e2689f8cbc65b | tools: acrntrace: Add new tool acrntrace_format
acrntrace_format.py is used for parsing raw trace data to human-readable file on
given format. A sample format file for acrntrace predefined trace events is available
in tools/acrntrace/scripts/formats in acrn source tree. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tools/acrntrace/scripts/acrntrace_format.py",
"diff": "+#!/usr/bin/python3\n+# -*- coding: UTF-8 -*-\n+\n+import os\n+import re\n+import sys\n+import string\n+import signal\n+import struct\n+import getopt\n+\n+def usage():\n+ print >> sys.stderr... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrntrace: Add new tool acrntrace_format
acrntrace_format.py is used for parsing raw trace data to human-readable file on
given format. A sample format file for acrntrace predefined trace events is available
in tools/acrntrace/scripts/formats in acrn source tree.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Re... |
528,665 | 25.06.2018 22:59:46 | -28,800 | 2bdd8112bd0c3d2ab8852a4eeb04c26809fc1773 | tools: acrntrace: Using array for saving all analyzer
As we may analyze multi-cases at the same time. It's better to store all the
analyzer in an array. Then we can traverse the array and exec all analyzer one
by one. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrntrace/scripts/acrnalyze.py",
"new_path": "tools/acrntrace/scripts/acrnalyze.py",
"diff": "@@ -43,7 +43,8 @@ def do_analysis(ifile, ofile, analyzer):\nRaises:\nNA\n\"\"\"\n- analyzer(ifile, ofile)\n+ for alyer in analyzer:\n+ alyer(ifile, ofile)\n# pr... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrntrace: Using array for saving all analyzer
As we may analyze multi-cases at the same time. It's better to store all the
analyzer in an array. Then we can traverse the array and exec all analyzer one
by one.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Yan, Like <like.yan@intel.com>
Reviewed-by... |
528,665 | 25.06.2018 23:18:15 | -28,800 | 136d5c30fbffca49450dc8715d7548c55191c19b | tools: acrntrace: Add irq related analyzer
This analyzer is implemented in vmexit_analyze. This patch make it as independent
analyzer with an option "--irq" | [
{
"change_type": "MODIFY",
"old_path": "tools/acrntrace/scripts/acrnalyze.py",
"new_path": "tools/acrntrace/scripts/acrnalyze.py",
"diff": "@@ -12,6 +12,7 @@ import getopt\nimport os\nimport config\nfrom vmexit_analyze import analyze_vm_exit\n+from irq_analyze import analyze_irq\ndef usage():\n\"\"\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrntrace: Add irq related analyzer
This analyzer is implemented in vmexit_analyze. This patch make it as independent
analyzer with an option "--irq"
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,654 | 29.06.2018 10:54:16 | -28,800 | 652e37e9080ace4f968f9b9fd920770248e398fb | dm: use hugetlb by default
use hugetlb to set vm memory by default. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -72,7 +72,6 @@ char *guest_uuid_str;\nchar *vsbl_file_name;\nuint8_t trusty_enabled;\nbool stdio_in_use;\n-bool hugetlb;\nstatic int guest_vmexit_on_hlt, guest_vmexit_on_pause;\nstati... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: use hugetlb by default
use hugetlb to set vm memory by default.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 29.06.2018 11:01:17 | -28,800 | 6f097b1633873dc250daf8a808b00e0e603e7290 | dm: remove set vm memory by cma
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -829,7 +829,7 @@ main(int argc, char *argv[])\n}\nvm_set_memflags(ctx, memflags);\n- err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL);\n+ err = vm_setup_memory(ctx, memsize);\nif (err... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: remove set vm memory by cma
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,676 | 29.06.2018 11:04:25 | -28,800 | 5c75f29a2d8f3e5d1c01d3281177db1802429a26 | modified the lapic_id type to uint8_t
According intel mannual and ACPI mannual,lapic_id length is 1 byte.
V1->V2:
Add U suffix to the numeric when do arithmetic operation on lapic.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -54,7 +54,7 @@ static void vapic_cap_detect(void);\nstatic void cpu_xsave_init(void);\nstatic void cpu_set_logical_id(uint32_t logical_id);\nstatic void print_hv_banner(void);\n-i... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | modified the lapic_id type to uint8_t
According intel mannual and ACPI mannual,lapic_id length is 1 byte.
V1->V2:
Add U suffix to the numeric when do arithmetic operation on lapic.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,725 | 28.06.2018 18:47:12 | -28,800 | aadd81941d2333e35bce07656eb85a06d6e90b93 | HV: vpic: spell out conversions to narrower integers
With pins being uint8_t, implicit narrowing conversions arises since unsigned
integer constants, irq IDs and general registers have type ''unsigned
int''. Make such conversions explicit.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vpic.c",
"new_path": "hypervisor/arch/x86/guest/vpic.c",
"diff": "@@ -102,7 +102,7 @@ static inline uint8_t vpic_get_highest_isrpin(struct pic *pic)\nuint8_t bit, pin, i;\nPIC_PIN_FOREACH(pin, pic, i) {\n- bit = (1U << pin);\n+ bit = ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: vpic: spell out conversions to narrower integers
With pins being uint8_t, implicit narrowing conversions arises since unsigned
integer constants, irq IDs and general registers have type ''unsigned
int''. Make such conversions explicit.
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.d... |
528,725 | 28.06.2018 18:52:46 | -28,800 | ccc222d1934b4d06e2815b7716dcc1e80eb7426f | HV: vpic: add suffix 'U' to constants in unsigned contexts
Constants represented in an unsigned type should have the 'U' suffix per MISRA C
requirements even for 0 to get rid of implicit signedness conversions which can
be confusing due to the implementation-defined integer formats.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vpic.c",
"new_path": "hypervisor/arch/x86/guest/vpic.c",
"diff": "@@ -109,7 +109,7 @@ static inline uint8_t vpic_get_highest_isrpin(struct pic *pic)\n* An IS bit that is masked by an IMR bit will not be\n* cleared by a non-specific EO... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: vpic: add suffix 'U' to constants in unsigned contexts
Constants represented in an unsigned type should have the 'U' suffix per MISRA C
requirements even for 0 to get rid of implicit signedness conversions which can
be confusing due to the implementation-defined integer formats.
Signed-off-by: Junjie Mao <junjie.... |
528,768 | 29.06.2018 03:09:56 | -28,800 | bbdb20475025eb6242d4f6e89b0af1e4913ed4cd | HV:- Refine strtol() & strtoul()
- replace 'strtol()' with 'strtol_deci()'
-- supports string with decimal format
- replace 'strtoul()' with 'strtoul_hex()'
-- support string with hex format
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/uefi/cmdline.c",
"new_path": "hypervisor/bsp/uefi/cmdline.c",
"diff": "@@ -46,7 +46,7 @@ static void handle_cmd(const char *cmd, int len)\n/* set uart disabled*/\nuart16550_set_property(0, 0, 0);\n} else if ((i == IDX_PORT_UART) || (i == IDX_MMI... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:- Refine strtol() & strtoul()
- replace 'strtol()' with 'strtol_deci()'
-- supports string with decimal format
- replace 'strtoul()' with 'strtoul_hex()'
-- support string with hex format
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 29.06.2018 14:29:34 | -28,800 | 4de869665e5c1b0ee3bfa49576aa89251b3a3c09 | HV:treewide:transfer the struct member types to non-basic types
The struct member types should be transfer to non-basic types,
chaned it to length-prefix(uint32_t,int32_t ...) type.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -115,11 +115,11 @@ int create_vcpu(uint16_t cpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)\n*rtn_vcpu_handle = vcpu;\nvcpu->launched = false;\n- vcpu->paused_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:treewide:transfer the struct member types to non-basic types
The struct member types should be transfer to non-basic types,
chaned it to length-prefix(uint32_t,int32_t ...) type.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,728 | 29.06.2018 11:19:01 | -7,200 | 92d0f3c66b2b6af57084668123d06d81efcd811f | Documentation: fix minor rendering issue in GSG
Fix a minor rendering issue in the Getting Started Guide where a
code-block is not appearing as such. | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -446,6 +446,7 @@ repository has three main components in it:\n#. The ACRN tools source code located in the ``tools`` directory\nYou can build all these components in o... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Documentation: fix minor rendering issue in GSG
Fix a minor rendering issue in the Getting Started Guide where a
code-block is not appearing as such.
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,728 | 29.06.2018 15:57:59 | -7,200 | 25eae47836b9d522baae47061a7b23793cf27cb0 | Documentation: add tutorial to set up a static IP address
Add a tutorial on how to change the default configuration that
uses DHCP and assign a static IP address to the system. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "doc/tutorials/static-ip.rst",
"diff": "+.. _static_ip:\n+\n+Using a static IP address\n+#########################\n+\n+When you install ACRN on your system following the :ref:`getting_started`, a\n+bridge called ``acrn-br0`` will be created and ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Documentation: add tutorial to set up a static IP address
Add a tutorial on how to change the default configuration that
uses DHCP and assign a static IP address to the system.
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,665 | 28.06.2018 15:56:48 | -28,800 | 83587b771139daf78321c743b7f12082ed1739e6 | HV: Make all trace event prefix consist with TRACE
There are two prefix (aka TRC and TRACE) for trace event. This patch make all
the trace event prefix consist with TRACE.
No functional change.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -364,7 +364,7 @@ int ept_violation_vmexit_handler(struct vcpu *vcpu)\n/* Get the guest physical address */\ngpa = exec_vmread64(VMX_GUEST_PHYSICAL_ADDR_FULL);\n- TRACE_2L(TRC_VMEX... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Make all trace event prefix consist with TRACE
There are two prefix (aka TRC and TRACE) for trace event. This patch make all
the trace event prefix consist with TRACE.
No functional change.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,665 | 28.06.2018 16:15:55 | -28,800 | b67836f722ade59a61521a8f81253808262e7a78 | HV: Minor refactor to get_guest_paging_info
Add a new parameter csar to get_guest_paging_info. We will save one exec_vmread
in this case.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c",
"diff": "@@ -252,13 +252,13 @@ static int32_t get_vmcs_field(int ident)\n}\n}\n-static void get_guest_paging_info(struct vcpu *vcpu, struct emul_cnx ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Minor refactor to get_guest_paging_info
Add a new parameter csar to get_guest_paging_info. We will save one exec_vmread
in this case.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 29.06.2018 13:12:47 | -28,800 | 31cdf8c7e8d9edb8aea4c51c7ff321faf507d08a | HV:transfer page_table_type type
struct map_params's member page_table_type is enum _page_table_type,
transferred it.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/mmu.c",
"new_path": "hypervisor/arch/x86/mmu.c",
"diff": "@@ -190,7 +190,7 @@ void invept(struct vcpu *vcpu)\n_invept(INVEPT_TYPE_ALL_CONTEXTS, desc);\n}\n-bool check_mmu_1gb_support(int page_table_type)\n+bool check_mmu_1gb_support(enum _p... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:transfer page_table_type type
struct map_params's member page_table_type is enum _page_table_type,
transferred it.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,665 | 29.06.2018 15:46:53 | -28,800 | 7a66c317b52f4e3715780e60aa2023f528df5490 | HV: Remove vm->attr.name
We define attr.name in struct vm and named as ("vm_%d", attr.id). attr.name only
be used in debug tool vm_list. It does't deserve to do so in OS created flow
(aka function create_vm). It's better to handle this in vm_list tool.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -102,8 +102,6 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)\nif (bitmap_test_and_set(id, &vmid_bitmap) == 0)\nbreak;\nvm->attr.id = vm->attr.boot_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Remove vm->attr.name
We define attr.name in struct vm and named as ("vm_%d", attr.id). attr.name only
be used in debug tool vm_list. It does't deserve to do so in OS created flow
(aka function create_vm). It's better to handle this in vm_list tool.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong... |
528,783 | 29.06.2018 14:09:44 | -28,800 | eaa5418fbac05d26a56762a10a727ff7945cb567 | hv:merge struct lapic and lapic_regs to lapic_regs
merge these two structures to lapic_regs
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -187,7 +187,7 @@ vlapic_build_id(struct vlapic *vlapic)\nstatic void\nvlapic_dfr_write_handler(struct vlapic *vlapic)\n{\n- struct lapic *lapic;\n+ struct lapic_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:merge struct lapic and lapic_regs to lapic_regs
merge these two structures to lapic_regs
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 29.06.2018 13:35:28 | -28,800 | b068959b78d8be314ee8530c87815be9c0e551c0 | HV:change the cpu state to enum type
enum cpu state is better than cpu state macro.
V1->V2:
move enum cpu_state under #ifndef ASSEMBLER MACRO to avoid
assembler compiler scan.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -293,7 +293,7 @@ static int init_phy_cpu_storage(void)\nreturn bsp_cpu_id;\n}\n-static void cpu_set_current_state(uint32_t logical_id, int state)\n+static void cpu_set_current_sta... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:change the cpu state to enum type
enum cpu state is better than cpu state macro.
V1->V2:
move enum cpu_state under #ifndef ASSEMBLER MACRO to avoid
assembler compiler scan.
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.... |
528,768 | 30.06.2018 01:55:55 | -28,800 | 873e90cd9aabfa6c6508bac0dc1016e50677b2ad | HV: Fix compiler warnings in string.c
fix below warnings when compiling
lib/string.c: In function 'strtoul_hex':
lib/string.c:25:26: warning: suggest parentheses around comparison in
operand of '&' [-Wparentheses]
.define ISSPACE(c) (((c) & 0xFFU == ' ') || ((c) & 0xFFU == '\t'))
remove redundant MACROs in string.c | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/lib/string.c",
"new_path": "hypervisor/lib/string.c",
"diff": "#include <hypervisor.h>\n-#ifndef ULONG_MAX\n#define ULONG_MAX ((uint64_t)(~0UL)) /* 0xFFFFFFFF */\n-#endif\n-\n-#ifndef LONG_MAX\n#define LONG_MAX ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Fix compiler warnings in string.c
- fix below warnings when compiling
lib/string.c: In function 'strtoul_hex':
lib/string.c:25:26: warning: suggest parentheses around comparison in
operand of '&' [-Wparentheses]
.define ISSPACE(c) (((c) & 0xFFU == ' ') || ((c) & 0xFFU == '\t'))
- remove redundant MACROs in ... |
528,652 | 19.06.2018 15:03:14 | 25,200 | 6801d826e22cddf578aaa356bcf1986f570afe65 | hv: intercept IA32_PAT MSR
Preparing for emulating guest's CR0.CD and CR0.NW bits:
- Intercept both rdmsr and wrmsr for IA32_PAT
- Track guest's IA32_PAT MSR with vcpu.arch_vcpu.contexts.ia32_pat
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmsr.c",
"new_path": "hypervisor/arch/x86/guest/vmsr.c",
"diff": "@@ -13,6 +13,7 @@ static const uint32_t emulated_msrs[] = {\nMSR_IA32_BIOS_UPDT_TRIG, /* Enable MSR_IA32_BIOS_UPDT_TRIG */\nMSR_IA32_BIOS_SIGN_ID, /* Enable MSR_IA32_BI... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: intercept IA32_PAT MSR
Preparing for emulating guest's CR0.CD and CR0.NW bits:
- Intercept both rdmsr and wrmsr for IA32_PAT
- Track guest's IA32_PAT MSR with vcpu.arch_vcpu.contexts.ia32_pat
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,652 | 21.06.2018 16:51:21 | 25,200 | 9f4404d0e6ee5869a2ab8f6f369383a610f933b9 | hv: add context->vmx_ia32_pat to save and restore VMCS
Similar to cr0/4:
use context->vmx_ia32_pat to save/restore VMX_GUEST_IA32_PAT field
use context->ia32_pat to keep track the guest' view of IA32_PAT MSR
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -183,7 +183,16 @@ static void save_world_ctx(struct run_context *context)\ncontext->vmx_cr4 = exec_vmread(VMX_GUEST_CR4);\ncontext->dr7 = exec_vmread(VMX_GUEST_DR7);\ncontex... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add context->vmx_ia32_pat to save and restore VMCS
Similar to cr0/4:
- use context->vmx_ia32_pat to save/restore VMX_GUEST_IA32_PAT field
- use context->ia32_pat to keep track the guest' view of IA32_PAT MSR
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,713 | 02.07.2018 09:26:37 | -28,800 | 8b1c5a7cba0043c4abb97c0785ddc3cbb27b6746 | HV: bug fix on emulating guest IPI
With current code, the INIT-STARTUP IPI with EXCLUDING_SELF shorthand
cannot be handled.
This patch is to correct hypervisor to emulate IPI with different
delivery_mode & shorthand.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1024,10 +1024,9 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)\nbool phys;\nuint64_t dmask = 0;\nuint64_t icrval;\n- uint32_t dest, vec, mode;\n+ uint32_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: bug fix on emulating guest IPI
With current code, the INIT-STARTUP IPI with EXCLUDING_SELF shorthand
cannot be handled.
This patch is to correct hypervisor to emulate IPI with different
delivery_mode & shorthand.
Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 28.06.2018 17:10:47 | -28,800 | 57c217bf26d2f09ea9371c4ee284c5155ee6d805 | hv: extend the vlapic_reset
vlapic reset should also zero apic_page and pir_desc if pir is
enabled.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1491,10 +1491,15 @@ vlapic_write(struct vlapic *vlapic, int mmio_access, uint64_t offset,\nvoid\nvlapic_reset(struct vlapic *vlapic)\n{\n+ uint32_t i;\nstruct l... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: extend the vlapic_reset
vlapic reset should also zero apic_page and pir_desc if pir is
enabled.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 28.06.2018 17:29:34 | -28,800 | 8b9fb3780ac37d08fb593200f1c43dc5b8dbecf2 | hv: avoid memory leak in init_msr_emulation
If the vcpu->guest_msrs was allocated, don't allocate the memory
again to avoid memory leak when init_msr_emulation is called
more than once.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmsr.c",
"new_path": "hypervisor/arch/x86/guest/vmsr.c",
"diff": "@@ -130,7 +130,9 @@ void init_msr_emulation(struct vcpu *vcpu)\nexec_vmwrite64(VMX_MSR_BITMAP_FULL, value64);\npr_dbg(\"VMX_MSR_BITMAP: 0x%016llx \", value64);\n- vcpu-... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: avoid memory leak in init_msr_emulation
If the vcpu->guest_msrs was allocated, don't allocate the memory
again to avoid memory leak when init_msr_emulation is called
more than once.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 28.06.2018 17:37:40 | -28,800 | 2a819366ae9d9e1f924f2472b9807afc6fe8b617 | hv: add ioapic reset function
ioapic reset function will be called when doing guest reset.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -523,6 +523,16 @@ vioapic_process_eoi(struct vm *vm, uint32_t vector)\nVIOAPIC_UNLOCK(vioapic);\n}\n+void\n+vioapic_reset(struct vioapic *vioapic)\n+{\n+ int i... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add ioapic reset function
ioapic reset function will be called when doing guest reset.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 02.07.2018 22:35:00 | -28,800 | 228f4df559c701748296c05fc015f17e0460196a | HV: coding style cleanup in string.c
replaced blank space with tab
delete some confusing comments | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/lib/string.c",
"new_path": "hypervisor/lib/string.c",
"diff": "* SPDX-License-Identifier: BSD-3-Clause\n*/\n-/* FIXME: It'd be nice to configure around these, but the include files are too\n- * painful. These macros should at least be more portable ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: coding style cleanup in string.c
- replaced blank space with tab
- delete some confusing comments
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> |
528,725 | 02.07.2018 21:14:15 | -28,800 | ffc0b27db4ddb6f23f359261685077caabb444d2 | HV: lib: make the argument to udelay unsigned
The parameter to udelay is the microseconds to wait for, which should be an
unsigned integer.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/lib/rtl.h",
"new_path": "hypervisor/include/lib/rtl.h",
"diff": "@@ -26,7 +26,7 @@ struct udiv_result {\n};\n/* Function prototypes */\n-void udelay(int us);\n+void udelay(uint32_t us);\nvoid *memchr(const void *void_s, int c, size_t n);\nvo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: lib: make the argument to udelay unsigned
The parameter to udelay is the microseconds to wait for, which should be an
unsigned integer.
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,665 | 29.06.2018 09:24:27 | -28,800 | 59074001825cba80ecb76026ea8dda82c0ca91e2 | tools: acrntrace: Remove unused pre_process.sh | [
{
"change_type": "DELETE",
"old_path": "tools/acrntrace/scripts/pre_process.sh",
"new_path": null,
"diff": "-#!/bin/bash\n-\n-IFILE=$1\n-STR=$2\n-BAK_FILE=${IFILE}.orig\n-\n-if [ ! -f $BAK_FILE ]; then\n- cp $IFILE $BAK_FILE\n-fi\n-\n-echo $IFILE, $BAK_FILE, $STR\n-\n-FIRST_LINE=$(grep -n $STR -m 1 ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrntrace: Remove unused pre_process.sh
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.