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,794
18.09.2018 09:51:01
-28,800
b501ce4388b3ce9095d1730b8b7de65baf587564
HV: remove dead APIC info MACROs in bsp These MACROs are never used by current code so remove it. The needed APIC info is defined in other files with other MACROs. We will unify kinds of APIC info definition in one place soon. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/sbl/sbl.c", "new_path": "hypervisor/bsp/sbl/sbl.c", "diff": "#include <hypervisor.h>\n-/* IOAPIC id */\n-#define SBL_IOAPIC_ID 8U\n-/* IOAPIC base address */\n-#define SBL_IOAPIC_ADDR 0xfec00000U\n-/* IOAPIC range size */\n-#define SBL_IOAPIC_SI...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: remove dead APIC info MACROs in bsp These MACROs are never used by current code so remove it. The needed APIC info is defined in other files with other MACROs. We will unify kinds of APIC info definition in one place soon. Tracked-On: #1274 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <...
528,768
18.09.2018 17:44:09
-28,800
994a3751035a48b17a80d7d2750e70bbdd6ae79e
HV:fix potential buffer overflow issues - use sizeof(struct lapic_regs),instead of arbitrary size to lear 'apic_page' memory region in vlapic.c - fix potential buffer overflow issues in vpic.c & ioapic.c Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1562,7 +1562,7 @@ vlapic_reset(struct acrn_vlapic *vlapic)\nstruct lapic_regs *lapic;\nlapic = &(vlapic->apic_page);\n- (void)memset((void *)lapic, 0U, CPU_PAGE...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fix potential buffer overflow issues - use sizeof(struct lapic_regs),instead of arbitrary size to lear 'apic_page' memory region in vlapic.c - fix potential buffer overflow issues in vpic.c & ioapic.c Tracked-On: #1252 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@int...
528,702
19.09.2018 05:06:45
-28,800
737c29fad8835ad600e30036a098bd709e061e42
doc: Add known issues in v0.2 release note. Add known issues and description in v0.2 release note.
[ { "change_type": "MODIFY", "old_path": "doc/release_notes_0.2.rst", "new_path": "doc/release_notes_0.2.rst", "diff": "@@ -129,6 +129,25 @@ Fixed Issues\nKnown Issues\n************\n+:acrn-issue:`677` - SSD Disk ID not consistent between SOS/UOS\n+The SSD disk ID in the UOS is not the same as in the ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: Add known issues in v0.2 release note. Add known issues and description in v0.2 release note. Signed-off-by: Xie, nanlin <nanlin.xie@intel.com>
528,647
13.09.2018 15:17:39
-28,800
ccf562402ef3ddcfe5e58858a72e8d7f51f20df7
hv:irq: avoid out-of-range access to irq_alloc_bitmap[] Logically, out-of-range access won't happen at these places. However, it depends on the behaviour of other codes. This commit makes changes to explicitly eliminate the possibility in these functions.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/irq.c", "new_path": "hypervisor/arch/x86/irq.c", "diff": "@@ -41,10 +41,11 @@ uint32_t alloc_irq_num(uint32_t req_irq)\nif (irq == IRQ_INVALID) {\n/* if no valid irq num given, find a free one */\nirq = ffz64_ex(irq_alloc_bitmap, NR_IRQS);\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:irq: avoid out-of-range access to irq_alloc_bitmap[] Logically, out-of-range access won't happen at these places. However, it depends on the behaviour of other codes. This commit makes changes to explicitly eliminate the possibility in these functions. Tracked-On: #1235 Signed-off-by: Yan, Like <like.yan@intel.com...
528,776
17.09.2018 14:26:38
-28,800
0306bb47c8dacad240f100b48c9eef7a3729ac7a
Removed dead funcs in EFI stub module Due to the last patches, some funcs in malloc.c and stdlib.h files for EFI stub module are no longer used. This commit just removes them, no other changes is being introduced. The funcs are: emalloc/efree, calloc/malloc/free, strstr/strdup Ackedr-by: Gen Zheng
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/efi/malloc.c", "new_path": "hypervisor/bsp/uefi/efi/malloc.c", "diff": "@@ -93,143 +93,6 @@ failed:\nreturn err;\n}\n-/**\n- * emalloc - Allocate memory with a strict alignment requirement\n- * @size: size in bytes of the requested allocati...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Removed dead funcs in EFI stub module Due to the last patches, some funcs in malloc.c and stdlib.h files for EFI stub module are no longer used. This commit just removes them, no other changes is being introduced. The funcs are: emalloc/efree, calloc/malloc/free, strstr/strdup Tracked-On:#1260 Signed-off-by: Chao...
528,776
13.09.2018 14:24:17
-28,800
9817eb3909fc3f1023bffb48c8a5a94e66f3ae8a
Add a comment for switch fallthrough to quiet lint warning Some code has switch fallthrough cases, it causes some warning during compiling. Adding a comment can quiet it. Acked-by: Gen Zheng
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/npk_log.c", "new_path": "hypervisor/debug/npk_log.c", "diff": "@@ -44,6 +44,7 @@ void npk_log_setup(struct hv_npk_log_param *param)\ncase HV_NPK_LOG_CMD_CONF:\nif (param->mmio_addr || param->loglevel != 0xffffU)\nparam->res = HV_NPK_LOG_RES_OK...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Add a comment for switch fallthrough to quiet lint warning Some code has switch fallthrough cases, it causes some warning during compiling. Adding a comment can quiet it. Tracked-On:#1260 Signed-off-by: Chaohong Guo <chaohong.guo@intel.com> Acked-by: Gen Zheng <gen.zheng@intel.com>
528,732
06.09.2018 16:40:05
-28,800
33acca5d865d7d530b67557ad27a2fd55d5d6578
tools: acrn-crashlog: exclude crashlog tool for release version This patch is to exclude crashlog tool for release version. Acked-by: Zhang Di
[ { "change_type": "MODIFY", "old_path": "tools/Makefile", "new_path": "tools/Makefile", "diff": "@@ -2,7 +2,11 @@ T := $(CURDIR)\nOUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)\n.PHONY: all acrn-crashlog acrnlog acrn-manager acrntrace acrnbridge\n+ifeq ($(RELEASE),0)\nall: acrn-crashlog ac...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: exclude crashlog tool for release version This patch is to exclude crashlog tool for release version. Tracked-On: #1024 Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Acked-by: Zhang Di <di.zhang@intel.com>
528,747
18.09.2018 10:27:53
25,200
55a71e402db7bb515f7ed00ac6453ccbdab06b96
doc: add watchdog high-level design Review, transcode, and publish watchdog high-level design doc.
[ { "change_type": "ADD", "old_path": "doc/developer-guides/images/watchdog-image1.png", "new_path": "doc/developer-guides/images/watchdog-image1.png", "diff": "Binary files /dev/null and b/doc/developer-guides/images/watchdog-image1.png differ\n" }, { "change_type": "ADD", "old_path": "do...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add watchdog high-level design Review, transcode, and publish watchdog high-level design doc. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
18.09.2018 17:11:56
25,200
dae98a04097056854cbecfc8d654e53fa9ea2a04
doc: add network virtualization hld Review, edit, and transcode network virtualization doc
[ { "change_type": "ADD", "old_path": "doc/developer-guides/images/network-virt-arch.png", "new_path": "doc/developer-guides/images/network-virt-arch.png", "diff": "Binary files /dev/null and b/doc/developer-guides/images/network-virt-arch.png differ\n" }, { "change_type": "ADD", "old_path...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add network virtualization hld Review, edit, and transcode network virtualization doc Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
20.09.2018 10:08:54
25,200
01ce3b6aeed4db84013aad5efc1142c3d6ec52d4
doc: sort title in developer HLD section We've got enough docs now that it would be better to put them in sorted order by title.
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/index.rst", "new_path": "doc/developer-guides/index.rst", "diff": "@@ -19,17 +19,17 @@ specific areas within the ACRN hypervisor system.\n.. toctree::\n:maxdepth: 1\n- memmgt-hld.rst\n- virtio-hld.rst\n- virtio-console.rst\n- uart-virtuali...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: sort title in developer HLD section We've got enough docs now that it would be better to put them in sorted order by title. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
20.09.2018 10:21:39
25,200
7dd3207a6aec42263aedea735f931d71636cf303
doc: fix typo in network virt hld punctuation fix
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/network-virt-hld.rst", "new_path": "doc/developer-guides/network-virt-hld.rst", "diff": "@@ -136,7 +136,7 @@ ACRN UOS TX FLOW\n================\nThe following shows the ACRN UOS network TX flow, using TCP as an\n-example, showing the flow ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: fix typo in network virt hld punctuation fix Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
20.09.2018 22:17:30
25,200
f20ca31145d76e86556f181a63e203400fd1bf83
doc: add tags and checkout info to release notes Add instructions for accessing source for the v0.2 tagged release.
[ { "change_type": "MODIFY", "old_path": "doc/release_notes_0.2.rst", "new_path": "doc/release_notes_0.2.rst", "diff": "@@ -10,9 +10,26 @@ real-time and safety-criticality in mind, optimized to streamline\nembedded development through an open source platform. Check out the\n:ref:`introduction` for mor...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add tags and checkout info to release notes Add instructions for accessing source for the v0.2 tagged release. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
24.09.2018 10:40:10
25,200
c7d87795f0005109df04b936b44f88e1b598a9ca
doc: release notes update for v0.2 release Remove "DRAFT" indicator, and a few tweaks to repo description and download instructions noticed in PR
[ { "change_type": "MODIFY", "old_path": "doc/release_notes_0.2.rst", "new_path": "doc/release_notes_0.2.rst", "diff": ".. _release_notes_0.2:\n-ACRN v0.2 (Sep 2018) DRAFT\n-##########################\n+ACRN v0.2 (Sep 2018)\n+####################\nWe are pleased to announce the release of Project ACRN...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: release notes update for v0.2 release Remove "DRAFT" indicator, and a few tweaks to repo description and download instructions noticed in PR #1316 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
24.09.2018 10:58:31
25,200
b5bf00b6e03156ea3feeed589d15adcfbc45c7be
doc: update doc version menu for v0.2 release Update conf.py selector list to include version 0.2 documentation (and fix an URL typo in the release notes).
[ { "change_type": "MODIFY", "old_path": "doc/conf.py", "new_path": "doc/conf.py", "diff": "@@ -188,6 +188,7 @@ else:\nhtml_context = {\n'current_version': current_version,\n'versions': ( (\"latest\", \"/latest/\"),\n+ (\"0.2\", \"/0.2/\"),\n(\"0.1\", \"/0.1/\"),\n)\n}\n" }, { "change_type": "...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update doc version menu for v0.2 release Update conf.py selector list to include version 0.2 documentation (and fix an URL typo in the release notes). Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
24.09.2018 13:15:50
25,200
23cf8079e7f45d1dc3595ba4182ac1c9d6f9bd34
doc: update tagged release doc build instructions Update the doc build instructions to include how to update the version navigation selector (bottom of the left nav panel), and make commands for building and publishing specific tagged releases (e.g., 0.2)
[ { "change_type": "MODIFY", "old_path": "doc/tutorials/docbuild.rst", "new_path": "doc/tutorials/docbuild.rst", "diff": "@@ -25,12 +25,14 @@ The project's documentation contains the following items:\n* ReStructuredText source files used to generate documentation found at the\nhttp://projectacrn.githu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update tagged release doc build instructions Update the doc build instructions to include how to update the version navigation selector (bottom of the left nav panel), and make commands for building and publishing specific tagged releases (e.g., 0.2) Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
24.09.2018 15:26:30
25,200
d08256dfa97ec6dc8a681877091e8eb9b86cd367
doc: code-block text not readable The .. code-block:: console directive (used for white text on a black background) didn't handle some CSS cases properly resulting in unreadable grey text on a black background.
[ { "change_type": "MODIFY", "old_path": "doc/static/acrn-custom.css", "new_path": "doc/static/acrn-custom.css", "diff": ".highlight-console .highlight {\nbackground-color: black;\n}\n-.highlight-console .highlight .go, .highlight-console .highlight .gp {\n+.highlight-console .highlight pre, .highligh...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: code-block text not readable The .. code-block:: console directive (used for white text on a black background) didn't handle some CSS cases properly resulting in unreadable grey text on a black background. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,661
21.09.2018 11:45:02
-28,800
ac9ebc5e0f7ad9393dad032c4e8a72e18c683aa6
update to support v0.2 release updated Clear Linux version to 25130 as getting started updated pk kernel version to 4.14.68-99 added one bundle installation
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -37,13 +37,13 @@ complete this setup.\n.. note::\n- ACRN v0.1 (and the current master branch) requires Clear Linux\n- version 23690 or newer. If you use a newer versio...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
update to support v0.2 release updated Clear Linux version to 25130 as getting started updated pk kernel version to 4.14.68-99 added one bundle installation
528,732
20.09.2018 14:14:07
-28,800
5affe53a9f67fec43d6962c91d75f1a16a25aa25
tools: acrn-crashlog: update Makefile flags This patch is to sync the compiler options as the Makefile of device model.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/Makefile", "new_path": "tools/acrn-crashlog/Makefile", "diff": "BASEDIR := $(shell pwd)\nOUT_DIR ?= $(BASEDIR)\nBUILDDIR := $(OUT_DIR)/acrn-crashlog\n-CC := gcc\n+CC ?= gcc\nRM = rm\nRELEASE ?= 0\n-CFLAGS := -Wall -Wextra -pedantic\n-CFLAGS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: update Makefile flags This patch is to sync the compiler options as the Makefile of device model. Tracked-On: #1122 Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Reviewed-by: Liu, Xinwu <xinwu.liu@intel.com>
528,772
18.09.2018 18:58:21
-28,800
270a833283dc33c1c94d3e2a1701cd89241ef79c
tools: acrnd: bugfix: service lack of prerequisition As a system service, acrnd will launch UOS, that must be done after all required services and conditions are ready, such as acrnprobe, weston, etc.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrnd.service", "new_path": "tools/acrn-manager/acrnd.service", "diff": "[Unit]\nDescription=ACRN manager deamon\n+After=weston.service\n+After=systemd-resolved.service\n+ConditionPathExists=/sys/kernel/gvt\n+ConditionPathExists=/dev/acrn_vh...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrnd: bugfix: service lack of prerequisition As a system service, acrnd will launch UOS, that must be done after all required services and conditions are ready, such as acrnprobe, weston, etc. Tracked-On: #1278 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
528,647
20.09.2018 09:13:05
-28,800
227a8c436b2f3a33d7360f2db8e0a4688f251197
tools: acrn-manager: fix warnings before updating Makefile Print warning if string truncated to avoid the warning generated by -Wformat-truncation by GCC 7.0 and newer version; fixed strncpy size. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrn_mngr.c", "new_path": "tools/acrn-manager/acrn_mngr.c", "diff": "@@ -479,8 +479,11 @@ static int connect_to_server(const char *name)\n}\nmfd->addr.sun_family = AF_UNIX;\n- snprintf(mfd->addr.sun_path, sizeof(mfd->addr.sun_path),\n+ ret =...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: fix warnings before updating Makefile - Print warning if string truncated to avoid the warning generated by -Wformat-truncation by GCC 7.0 and newer version; - fixed strncpy size. Tracked-On: #1122 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,647
19.09.2018 16:51:50
-28,800
1b9a3b3e711ba109cce072f2f2594a236efca54e
tools: acrn-manager: update Makefile Update the Makefiel to sync the compiler options with devicemode and enable options to harden software. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/Makefile", "new_path": "tools/acrn-manager/Makefile", "diff": "+T := $(CURDIR)\n+OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)\n+CC ?= gcc\n-OUT_DIR ?= .\n+CFLAGS := -g -O0 -std=gnu11\n+CFLAGS += -D_GNU_SOURCE\n+CFLAGS += -DNO_OP...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: update Makefile Update the Makefiel to sync the compiler options with devicemode and enable options to harden software. Tracked-On: #1122 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,647
20.09.2018 09:41:09
-28,800
5e0acac4902f60dd9d560d790059b0cd3cebeb32
tools: acrntrace: fix several compiler warnings This commit fixes several compiler warnings before enabling compiler options to harden software by: remove unused variables; add parentheses around assignment as compiler suggests; print warning if format string is truncated. Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/acrntrace.c", "new_path": "tools/acrntrace/acrntrace.c", "diff": "@@ -141,7 +141,7 @@ static int get_cpu_num(void)\nreturn -1;\n}\n- while (pdir = readdir(dir)) {\n+ while ((pdir = readdir(dir)) != NULL) {\nret = strstr(pdir->d_name, dev_prefix...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: fix several compiler warnings This commit fixes several compiler warnings before enabling compiler options to harden software by: - remove unused variables; - add parentheses around assignment as compiler suggests; - print warning if format string is truncated. Tracked-On: #1122 Signed-off-by: Yan, ...
528,647
20.09.2018 09:43:24
-28,800
c51e2139054df4d435b2dae7195ae2763eb6869c
tools: acrntrace: update Makefile Update the Makefiel to sync the compiler options with devicemode and enable options to harden software. Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/Makefile", "new_path": "tools/acrntrace/Makefile", "diff": "+T := $(CURDIR)\n+OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)\n+CC ?= gcc\n-OUT_DIR ?= .\n-CFLAGS += -fpie\n+CFLAGS := -g -O0 -std=gnu11\n+CFLAGS += -D_GNU_SOURCE\n+CFLAG...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: update Makefile Update the Makefiel to sync the compiler options with devicemode and enable options to harden software. Tracked-On: #1122 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
528,647
20.09.2018 09:29:30
-28,800
74c4d71922ef2ae88b6067d2c152ac34664da298
tools: acrnlog: fix several compiler warnings This commit fixes several compiler warnings before enabling compiler options to harden software by: increase name[] size to avoid string truncation; add parentheses around assignment as compiler suggests. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "tools/acrnlog/acrnlog.c", "new_path": "tools/acrnlog/acrnlog.c", "diff": "@@ -67,7 +67,7 @@ static int get_cpu_num(void)\nreturn -1;\n}\n- while (pdir = readdir(dir)) {\n+ while ((pdir = readdir(dir)) != NULL) {\nret = strstr(pdir->d_name, prefix);\nif (ret)\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrnlog: fix several compiler warnings This commit fixes several compiler warnings before enabling compiler options to harden software by: - increase name[] size to avoid string truncation; - add parentheses around assignment as compiler suggests. Tracked-On: #1122 Signed-off-by: Yan, Like <like.yan@intel.com>...
528,647
20.09.2018 09:37:11
-28,800
52ee615428963c4bdc20dbac7926e43f0fcdded4
tools: acrnlog: update Makefile In order to sync the compiler options with devicemode and enable options to harden software. Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "tools/acrnlog/Makefile", "new_path": "tools/acrnlog/Makefile", "diff": "+T := $(CURDIR)\n+OUT_DIR ?= $(shell mkdir -p $(T)/build;cd $(T)/build;pwd)\n+CC ?= gcc\n-OUT_DIR ?= .\n-CFLAGS += -fpie\n+CFLAGS := -g -O0 -std=gnu11\n+CFLAGS += -D_GNU_SOURCE\n+CFLAGS +=...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrnlog: update Makefile In order to sync the compiler options with devicemode and enable options to harden software. Tracked-On: #1122 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
528,780
25.09.2018 15:45:36
-28,800
228699131bf0ecf8ec41c1207a0d9c07db286e04
HV: Add the definition of VECTOR_HYPERVISOR_CALLBACK_VHM It is from the HYPERVISOR_CALLBACK_VECTOR in sos_kernel. After this vector is used in both kernel and hypervisor, this will be defined as the default vector. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/arch/x86/irq.h", "new_path": "hypervisor/include/arch/x86/irq.h", "diff": "#define VECTOR_NOTIFY_VCPU 0xF0U\n#define VECTOR_VIRT_IRQ_VHM 0xF7U\n#define VECTOR_SPURIOUS 0xFFU\n+#define VECTOR_HYPERVISOR_CALLBACK_VHM 0xF3U\n/* the maximum numb...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Add the definition of VECTOR_HYPERVISOR_CALLBACK_VHM It is from the HYPERVISOR_CALLBACK_VECTOR in sos_kernel. After this vector is used in both kernel and hypervisor, this will be defined as the default vector. Tracked-On: https://github.com/projectacrn/acrn-hypervisor/issues/1325 Signed-off-by: Zhao Yakui <yakui...
528,667
13.07.2018 15:47:18
-28,800
94513ab724e429504da3ae2ae348900a0a342df4
dm: Add vhm ioeventfd and irqfd interfaces ioeventfd and irqfd support for vhm was introduced in kernel vhm module. We provide the interfaces of them for DM users. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/vmmapi.c", "new_path": "devicemodel/core/vmmapi.c", "diff": "@@ -657,3 +657,15 @@ vm_intr_monitor(struct vmctx *ctx, void *intr_buf)\n{\nreturn ioctl(ctx->fd, IC_VM_INTR_MONITOR, intr_buf);\n}\n+\n+int\n+vm_ioeventfd(struct vmctx *ctx, struct ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: Add vhm ioeventfd and irqfd interfaces ioeventfd and irqfd support for vhm was introduced in kernel vhm module. We provide the interfaces of them for DM users. Tracked-On: #1329 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,728
26.09.2018 15:05:29
-7,200
c30437de9bf850b84ed6f801270602422aa92bb6
Fix Doxygen comment in hypercall.h header file Fix a Doxygen comment in the hypercall.h header file which is missing the name of the parameter, this is causing warnings when generating the documentation related to the hcall_set_callback_vector() hypercall.
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/common/hypercall.h", "new_path": "hypervisor/include/common/hypercall.h", "diff": "@@ -463,7 +463,7 @@ int64_t hcall_save_restore_sworld_ctx(struct vcpu *vcpu);\n* to notify the SOS kernel.\n*\n* @param vm Pointer to VM data structure\n- * @...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Fix Doxygen comment in hypercall.h header file Fix a Doxygen comment in the hypercall.h header file which is missing the name of the parameter, this is causing warnings when generating the documentation related to the hcall_set_callback_vector() hypercall. Tracked-On: #1335 Signed-off-by: Geoffroy Van Cutsem <geoffr...
528,801
26.09.2018 14:54:31
-28,800
026ae83bd52937f89bcec723ec17feac3890ffb0
hv: include: fix 'Unused procedure parameter' MISRA-C requires that there should be no unused parameters in functions. This patch removes the unused parameters that is not being used unconditionally. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -450,8 +450,7 @@ static void bsp_boot_post(void)\ncalibrate_tsc();\n/* Enable logging */\n- init_logmsg(CONFIG_LOG_BUF_SIZE,\n- CONFIG_LOG_DESTINATION);\n+ init_logmsg(CONFIG_LOG_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: include: fix 'Unused procedure parameter' MISRA-C requires that there should be no unused parameters in functions. This patch removes the unused parameters that is not being used unconditionally. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,801
26.09.2018 11:17:50
-28,800
6fcaa1aecbacac1267f93705ec70fd3b081d63da
hv: bug fix in atomic.h This patch fixes the typo introduced in atomic operaions refine. The usage of the parameter in function body was not updated according to the changes of input parameter. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/atomic.h", "new_path": "hypervisor/include/lib/atomic.h", "diff": "@@ -176,7 +176,7 @@ static inline type name(volatile type *ptr, \\\n{ \\\ntype ret; \\\nasm volatile(BUS_LOCK \"cmpxchg\" size \" %2,%1\" \\\n- : \"=a\" (ret), \"+m\" (*p...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: bug fix in atomic.h This patch fixes the typo introduced in atomic operaions refine. The usage of the parameter in function body was not updated according to the changes of input parameter. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
20.09.2018 02:46:09
0
6bcfa1520bceab759cb5267a57d7a59450003e5a
hv: Enable the compiler warning as error for HV Fix the compiler warning and turn on the flag to make compiler warning as compiler error. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -42,7 +42,7 @@ CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387\nCFLAGS += -mno-red-zone\nCFLAGS += -nostdinc -nostdlib -fno-common\nCFLAGS += -O2 -D_FORTIFY_SOURCE=2\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Enable the compiler warning as error for HV Fix the compiler warning and turn on the flag to make compiler warning as compiler error. Tracked-On: #1343 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
27.09.2018 13:26:52
-28,800
3178ecea72db10bf7d5599f7b560c0e437e84379
hv: Fix the warning for ACRN release build Now, the warning is promoted to error. The warning break ACRN release build. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -291,8 +291,6 @@ static void init_percpu_data_area(void)\n{\nuint16_t i;\nuint16_t pcpu_num = 0U;\n- uint16_t bsp_cpu_id;\n- uint8_t bsp_lapic_id = 0U;\nuint8_t lapic_id_array[MAX...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Fix the warning for ACRN release build Now, the warning is promoted to error. The warning break ACRN release build. Tracked-On: #1343 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,801
27.09.2018 14:05:54
-28,800
74622d7d29c9718531c8c7b113b19dd9945a47b2
hv: merge hv_lib.h and hypervisor.h merge hv_lib.h and hypervisor.h into one file Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/mptable.c", "new_path": "hypervisor/arch/x86/guest/mptable.c", "diff": "* SPDX-License-Identifier: BSD-3-Clause\n*/\n-#include <hv_lib.h>\n-#include <acrn_common.h>\n-#include <hv_arch.h>\n-#include <hv_debug.h>\n-#include <bsp_extern...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: merge hv_lib.h and hypervisor.h merge hv_lib.h and hypervisor.h into one file Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
27.09.2018 19:41:19
-28,800
dd6a5fbe95b079d87b2582ef15cf7621991721ac
HV: Add hypercall to set/clear IRQ line - wraps ASSERT/DEASSERT IRQ line hypercalls. - remove 'intr_type' from set/clear IRQ line interface. - deprecate "IRQ_ASSERT", "IRQ_DEASSERT" & "IRQ_PULSE". - new adding hypercall will support "GSI_SET_HIGH"/ "GSI_SET_LOW"/ "GSI_RAISING_PULSE"/ "GSI_FALLING_PULSE" operations Acke...
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vmcall.c", "new_path": "hypervisor/arch/x86/guest/vmcall.c", "diff": "@@ -99,6 +99,12 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\nret = hcall_pulse_irqline(vm, (uint16_t)param1, param2);\nbreak;\n+ case HC_SET_IRQLINE:\n+ /* para...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Add hypercall to set/clear IRQ line - wraps ASSERT/DEASSERT IRQ line hypercalls. - remove 'intr_type' from set/clear IRQ line interface. - deprecate "IRQ_ASSERT", "IRQ_DEASSERT" & "IRQ_PULSE". - new adding hypercall will support "GSI_SET_HIGH"/ "GSI_SET_LOW"/ "GSI_RAISING_PULSE"/ "GSI_FALLING...
528,802
10.08.2018 14:51:06
-28,800
bb34ffe67288734bc4bd4702b6a27f24f1db54e2
dm: virtio: add vhost support This patch adds the vhost support to the device model virtio. A vhost proxy is implemented based on the virtio framework and vhost char dev. Key data structures and external interfaces are implemented in this patch. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -62,6 +62,7 @@ SRCS += hw/usb_core.c\nSRCS += hw/uart_core.c\nSRCS += hw/pci/virtio/virtio.c\nSRCS += hw/pci/virtio/virtio_kernel.c\n+SRCS += hw/pci/virtio/vhost.c\nSRCS += hw/platform/usb_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: add vhost support This patch adds the vhost support to the device model virtio. A vhost proxy is implemented based on the virtio framework and vhost char dev. Key data structures and external interfaces are implemented in this patch. Tracked-On: #1329 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>...
528,802
10.08.2018 14:59:19
-28,800
befbc3e9245d6c244bf9d1f53731d2ba1f1c16ef
dm: virtio: implement vhost_vq interfaces vhost_vq related interfaces are implemented in this patch. They are vhost_vq_init/vhost_vq_deinit/vhost_vq_start/vhost_vq_stop. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/vhost.c", "new_path": "devicemodel/hw/pci/virtio/vhost.c", "diff": "@@ -44,6 +44,54 @@ vhost_kernel_deinit(struct vhost_dev *vdev)\n/* to be implemented */\n}\n+static int\n+vhost_kernel_set_vring_addr(struct vhost_dev *vdev,\n+ struc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: implement vhost_vq interfaces vhost_vq related interfaces are implemented in this patch. They are vhost_vq_init/vhost_vq_deinit/vhost_vq_start/vhost_vq_stop. Tracked-On: #1329 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,802
10.08.2018 15:06:05
-28,800
150ad30b09c3065f1cff0c5f4e8f40597d49228f
dm: virtio: implement vhost_set_mem_table vhost kernel driver needs the information of memory mapping between GPA and the virtual addresses in device model process. This is required for virtqueue related operations. This patch gets memory mapping information from vmctx then conveys to vhost. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/vhost.c", "new_path": "devicemodel/hw/pci/virtio/vhost.c", "diff": "@@ -44,6 +44,14 @@ vhost_kernel_deinit(struct vhost_dev *vdev)\n/* to be implemented */\n}\n+static int\n+vhost_kernel_set_mem_table(struct vhost_dev *vdev,\n+ struct...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: implement vhost_set_mem_table vhost kernel driver needs the information of memory mapping between GPA and the virtual addresses in device model process. This is required for virtqueue related operations. This patch gets memory mapping information from vmctx then conveys to vhost. Tracked-On: #1329 Signed-...
528,802
10.08.2018 15:23:21
-28,800
3fdfaa3d127746b2dae6fe2a156f73ce7924c6e4
dm: virtio: implement vhost chardev interfaces vhost proxy interacts with vhost kernel thru vhost char dev. Internal interfaces are implemented based on ioctls of vhost char dev in this patch. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/vhost.c", "new_path": "devicemodel/hw/pci/virtio/vhost.c", "diff": "@@ -31,126 +31,152 @@ static int vhost_debug;\ndo { if (vhost_debug) printf(LOG_TAG fmt, ##args); } while (0)\n#define WPRINTF(fmt, args...) printf(LOG_TAG fmt, ##arg...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: implement vhost chardev interfaces vhost proxy interacts with vhost kernel thru vhost char dev. Internal interfaces are implemented based on ioctls of vhost char dev in this patch. Tracked-On: #1329 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,802
10.08.2018 15:29:58
-28,800
7b0b67df72fd9ab9e4323355a8dfcd511af753f6
dm: virtio-net: add vhost net support One additional command parameter is added for virtio-net to support vhost net. The command line for vhost net is as follows: s n,virtio-net,tap_xxx,vhost Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_net.c", "new_path": "devicemodel/hw/pci/virtio/virtio_net.c", "diff": "#include \"pci_core.h\"\n#include \"mevent.h\"\n#include \"virtio.h\"\n+#include \"vhost.h\"\n#define VIRTIO_NET_RINGSZ 1024\n#define VIRTIO_NET_MAXSEGS 256...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-net: add vhost net support One additional command parameter is added for virtio-net to support vhost net. The command line for vhost net is as follows: -s n,virtio-net,tap_xxx,vhost Tracked-On: #1329 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,647
19.09.2018 13:37:52
-28,800
e6c3ea3b3b5bd286511ed6c06d837932ac9c8ee4
tools: acrn-manager: init vmmngr_head with LIST_HEAD_INITIALIZER To fix the issue that vmmngr_head may be used uninitialized.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrn_vm_ops.c", "new_path": "tools/acrn-manager/acrn_vm_ops.c", "diff": "@@ -47,7 +47,7 @@ static int check_dir(const char *path)\n/* List head of all vm */\nstatic pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;\n-struct vmmngr_li...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: init vmmngr_head with LIST_HEAD_INITIALIZER To fix the issue that vmmngr_head may be used uninitialized. Tracked-On: #1157 Signed-off-by: Yan, Like <like.yan@intel.com>
528,647
27.09.2018 14:36:29
-28,800
398ac203ca8cd75b3857bcb6d2aec887468d470e
Update acrn_vm_ops.c
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrn_vm_ops.c", "new_path": "tools/acrn-manager/acrn_vm_ops.c", "diff": "@@ -47,7 +47,7 @@ static int check_dir(const char *path)\n/* List head of all vm */\nstatic pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;\n-struct vmmngr_li...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Update acrn_vm_ops.c
528,728
27.09.2018 14:18:54
-7,200
37014caa138fa0d83eb15caf9aa740a49e6531ff
Documentation: add pointer to the documentation generation in GSG Add a pointer to the documentation generation tutorial from the Getting Started Guide (in the "Building ACRN") section.
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -514,6 +514,9 @@ The build results are found in the ``build`` directory.\nartefacts, set the ``O`` (that is capital letter 'O') to the\ndesired value. Example: ``make ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: add pointer to the documentation generation in GSG Add a pointer to the documentation generation tutorial from the Getting Started Guide (in the "Building ACRN") section. Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,728
27.09.2018 15:08:44
-7,200
be0651adf4fd265fc30f51cc1f743b222cc32d49
Getting Started Guide: fix highlighting in launch_uos.sh The "launch_uos.sh" script has evolved and the lines that we highlight have moved. Update the syntax to highlight the correct lines.
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -338,7 +338,7 @@ Set up Reference UOS\n.. literalinclude:: ../../devicemodel/samples/nuc/launch_uos.sh\n:caption: devicemodel/samples/nuc/launch_uos.sh\n:language: bas...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Getting Started Guide: fix highlighting in launch_uos.sh The "launch_uos.sh" script has evolved and the lines that we highlight have moved. Update the syntax to highlight the correct lines. Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,768
28.09.2018 00:22:18
-28,800
9a05fbea782bf1276615c612335704cb9b926f2a
HV: remove IRQSTATE_ASSERT/IRQSTATE_DEASSERT/IRQSTATE_PULSE - replace vpic/vioapic_xassert_irq() APIs with vpic/vioapic_set_irq() - unify the description of IRQ/PIN state in vpic. & vioapic.c Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -359,9 +359,11 @@ static void ptdev_intr_handle_irq(struct vm *vm,\n}\nif (trigger_lvl) {\n- vioapic_assert_irq(vm, virt_sid->intx_id.pin);\n+ vioapic_set_irq(vm, virt_sid->...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: remove IRQSTATE_ASSERT/IRQSTATE_DEASSERT/IRQSTATE_PULSE - replace vpic/vioapic_xassert_irq() APIs with vpic/vioapic_set_irq() - unify the description of IRQ/PIN state in vpic. & vioapic.c Tracked-On: #861 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.co...
528,801
27.09.2018 16:00:20
-28,800
ed06b8a7cab2a2cc31a62e42ac8e655c03f2f40e
hv: fix 'Void procedure used in expression' MISRA-C states that a void procedure used in expressions is dangerous. This patch removes the improper 'return' when calling the void procedure 'send_dest_ipi'. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/lapic.c", "new_path": "hypervisor/arch/x86/lapic.c", "diff": "@@ -438,7 +438,7 @@ void send_single_ipi(uint16_t pcpu_id, uint32_t vector)\n/* Get the lapic ID of the destination processor. */\ndest_lapic_id = per_cpu(lapic_id, pcpu_id);\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix 'Void procedure used in expression' MISRA-C states that a void procedure used in expressions is dangerous. This patch removes the improper 'return' when calling the void procedure 'send_dest_ipi'. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,709
07.09.2018 15:50:41
-28,800
67ff326e14e6f1af94b3f5c44dd29a301e8da191
hv: retain the timer irq Timer IRQ was static mapped IRQ. It should not be cleaned up when one of the cpu dead. The patch will retain the timer irq. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -701,7 +701,6 @@ void cpu_dead(uint16_t pcpu_id)\n}\n/* clean up native stuff */\n- timer_cleanup();\nvmx_off(pcpu_id);\ncache_flush_invalidate_all();\n" }, { "change_type...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: retain the timer irq Timer IRQ was static mapped IRQ. It should not be cleaned up when one of the cpu dead. The patch will retain the timer irq. Tracked-On: #1359 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
28.09.2018 10:05:09
-28,800
b207f1b942862175813b5f89209a85956081bd57
hv: struct seg_desc_vmcs name change struct seg_desc_vmcs is actually for segment descriptor vmcs fields. Change its name to vmcs_seg_field Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -183,17 +183,17 @@ static uint64_t size2mask[9] = {\n#define VMX_INVALID_VMCS_FIELD 0xffffffffU\n/*\n- * This struct seg_desc_vmcs is defined separately ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: struct seg_desc_vmcs name change struct seg_desc_vmcs is actually for segment descriptor vmcs fields. Change its name to vmcs_seg_field Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
28.09.2018 10:44:33
-28,800
843f7721f022069bee6f4131f681beafd123a008
hv: Change the struct cpu_gp_regs name to acrn_gp_regs We will define the hypercall to set acrn vcpu registers and move this struct to acrn_commmon.h for reference from hypercall parameter definition.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/static_checks.c", "new_path": "hypervisor/arch/x86/static_checks.c", "diff": "@@ -30,21 +30,21 @@ CTASSERT(BOOT_CTX_CS_AR_OFFSET == offsetof(struct boot_ctx, cs_ar));\nCTASSERT(BOOT_CTX_EFER_LOW_OFFSET == offsetof(struct boot_ctx, ia32_efer...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Change the struct cpu_gp_regs name to acrn_gp_regs We will define the hypercall to set acrn vcpu registers and move this struct to acrn_commmon.h for reference from hypercall parameter definition. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
528,733
28.09.2018 14:36:53
-28,800
ba1aa4070792cfcb08e78607bcfa9e3ae8a46caa
hv: add struct acrn_vcpu_regs Add struct acrn_vcpu_regs and make struct boot_ctx based on struct acrn_vcpu_regs. vm0_boot_context is also changed from struct boot_ctx to struct acrn_vcpu_regs.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_save_boot_ctx.S", "new_path": "hypervisor/arch/x86/cpu_save_boot_ctx.S", "diff": "@@ -78,6 +78,6 @@ cpu_primary_save_64:\n.align 8\n.global vm0_boot_context\nvm0_boot_context:\n- .rept 9\n- .quad 0x0000000000000000\n+ .rept SIZE_OF_BOOT...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add struct acrn_vcpu_regs Add struct acrn_vcpu_regs and make struct boot_ctx based on struct acrn_vcpu_regs. vm0_boot_context is also changed from struct boot_ctx to struct acrn_vcpu_regs. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
528,733
28.09.2018 14:50:14
-28,800
adc7913741a77339b4548803da99134260e9e017
hv: efi_context refine For SBL platform, struct acrn_vcpu_regs are used as boot context. Now the boot_ctx is only for UEFI platform. Rename struct boot_ctx to efi_context.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmx.c", "new_path": "hypervisor/arch/x86/vmx.c", "diff": "#include <hypervisor.h>\n#include <vm0_boot.h>\n#ifdef CONFIG_EFI_STUB\n-extern struct boot_ctx* efi_ctx;\n+extern struct efi_context* efi_ctx;\n#endif\n#define REAL_MODE_BSP_INIT_CO...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: efi_context refine For SBL platform, struct acrn_vcpu_regs are used as boot context. Now the boot_ctx is only for UEFI platform. Rename struct boot_ctx to efi_context. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
528,747
27.09.2018 07:23:44
25,200
572b59ff33291b35dc64c9681f1c1d06ff515812
doc: fix doxygen error in hypercall.h Doxygen API comment added to hypercall.h was incorrect causing the doc build process to fail with a warning (parameter not documented). Fixes:
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/common/hypercall.h", "new_path": "hypervisor/include/common/hypercall.h", "diff": "@@ -194,7 +194,7 @@ int32_t hcall_pulse_irqline(struct vm *vm, uint16_t vmid, uint64_t param);\n*\n* @param vm Pointer to VM data structure\n* @param vmid ID ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: fix doxygen error in hypercall.h Doxygen API comment added to hypercall.h was incorrect causing the doc build process to fail with a warning (parameter not documented). Fixes: #1353 Tracked-On: #1353 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,733
29.09.2018 03:08:48
0
0e0dbbaca345b2cbab16aca606e8da0d8d9da53c
hv: Move the strcut acrn_vcpu_regs to public header file Move struct acrn_vcpu_regs, acrn_descriptor_ptr and acrn_gp_regs to acrn_common.h. The struct acrn_vcpu_regs will be used as parameter of hypercall
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/efi/Makefile", "new_path": "hypervisor/bsp/uefi/efi/Makefile", "diff": "@@ -61,6 +61,7 @@ LDSCRIPT := $(GNUEFI_DIR)/elf_$(ARCH)_efi.lds\nINCDIR := $(SYSROOT)/usr/include\nCFLAGS=-I. -I.. -I../../../include/arch/x86/guest -I$(INCDIR)/efi -I$...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Move the strcut acrn_vcpu_regs to public header file Move struct acrn_vcpu_regs, acrn_descriptor_ptr and acrn_gp_regs to acrn_common.h. The struct acrn_vcpu_regs will be used as parameter of hypercall Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
528,733
29.09.2018 11:14:57
-28,800
1c0a3d9a02833afffee225657c28f4cb8d21e416
hv: Add API to set vcpu register set_vcpu_regs function is added to set vcpu registers.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -163,6 +163,72 @@ struct vcpu *get_ever_run_vcpu(uint16_t pcpu_id)\nreturn per_cpu(ever_run_vcpu, pcpu_id);\n}\n+void set_vcpu_regs(struct vcpu *vcpu, struct acrn_vc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Add API to set vcpu register set_vcpu_regs function is added to set vcpu registers. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
528,709
28.09.2018 18:24:23
-28,800
c76114714e598e582aa6147fcb3d62c3753d9976
hv: modify static irq mappings into array of structure The patch is replace irq_static_mappings type from 2 dimension array into structure and one dimension array. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/irq.c", "new_path": "hypervisor/arch/x86/irq.c", "diff": "@@ -17,8 +17,12 @@ static uint32_t vector_to_irq[NR_MAX_VECTOR + 1];\nspurious_handler_t spurious_handler;\n-#define NR_STATIC_MAPPINGS (2U)\n-static uint32_t irq_static_mappings[NR_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: modify static irq mappings into array of structure The patch is replace irq_static_mappings type from 2 dimension array into structure and one dimension array. Tracked-On: #1375 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Reviewed-by: Jason Chen <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.c...
528,804
29.09.2018 09:23:23
-28,800
390861a04cf4bfbe24786191966a28d49b9e9f94
DM: increase UOS memory size for MRB on MRB, if memory >= 8GB, will allocate 6GB to UOS; for MRB now just runs one UOS with more workload.
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "new_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "diff": "@@ -89,7 +89,9 @@ echo \"0000:00:1b.0\" > /sys/bus/pci/drivers/pci-stub/bind\n#for memsize setting\nmemsize=`cat /proc/meminfo|head -n 1|awk '{print $...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: increase UOS memory size for MRB on MRB, if memory >= 8GB, will allocate 6GB to UOS; for MRB now just runs one UOS with more workload. Tracked-On: #1369 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
528,675
20.09.2018 10:35:53
-28,800
e49233ba9bcd588ede5d3c3f53831486e942c974
ioapic: set default polarity setting as high active high active should be default polarity setting for ioapic RTE
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ioapic.c", "new_path": "hypervisor/arch/x86/ioapic.c", "diff": "@@ -175,8 +175,8 @@ create_rte_for_legacy_irq(uint32_t irq, uint32_t vr)\nrte.full |= DEFAULT_DELIVERY_MODE;\nrte.full |= (IOAPIC_RTE_INTVEC & (uint64_t)vr);\n- /* FIXME: Fixed...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
ioapic: set default polarity setting as high active high active should be default polarity setting for ioapic RTE Tracked-On: #1269 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,675
28.09.2018 15:20:02
-28,800
099203c15a03602f6fa25157bd73ee9095b0a939
ptdev: assert/deassert interrupt according to polarity add active_polarity to decide what signal to call: GSI_SET_LOW, GSI_SET_HIGH, GSI_FALLING_PULSE or GSI_RAISING_PULSE.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -107,6 +107,23 @@ ptdev_build_physical_rte(struct vm *vm,\nvioapic_get_rte(vm, virt_sid->intx_id.pin, &virt_rte);\nrte = virt_rte;\n+ /* init polarity & pin state */\n+ if (...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
ptdev: assert/deassert interrupt according to polarity add active_polarity to decide what signal to call: GSI_SET_LOW, GSI_SET_HIGH, GSI_FALLING_PULSE or GSI_RAISING_PULSE. Tracked-On: #1269 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,675
28.09.2018 19:33:58
-28,800
064e5344e9dbf56fcae76412ac5014fb1247250c
vuart: use pulse irq to assert COM1_IRQ vuart irq COM1_IRQ is configured as active low in ACPI table, so using GSI_FALLING_PULSE.
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/vuart.c", "new_path": "hypervisor/debug/vuart.c", "diff": "@@ -133,13 +133,9 @@ static void vuart_toggle_intr(struct acrn_vuart *vu)\nintr_reason = vuart_intr_reason(vu);\nif (intr_reason != IIR_NOPEND) {\n- vpic_set_irq(vu->vm, COM1_IRQ, GSI_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vuart: use pulse irq to assert COM1_IRQ vuart irq COM1_IRQ is configured as active low in ACPI table, so using GSI_FALLING_PULSE. Tracked-On: #1269 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,675
29.09.2018 16:19:59
-28,800
ce961e79a5c753d3b8751f4bba00216c15f142f1
dm: acpi: set SCI_INT polarity to high active set SCI_INT default polarity to high active
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/acpi/acpi.c", "new_path": "devicemodel/hw/platform/acpi/acpi.c", "diff": "@@ -278,7 +278,7 @@ basl_fwrite_madt(FILE *fp, struct vmctx *ctx)\nEFPRINTF(fp, \"[0001]\\t\\tSource : %02X\\n\", SCI_INT);\nEFPRINTF(fp, \"[0004]\\t\\tInterrupt ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: acpi: set SCI_INT polarity to high active set SCI_INT default polarity to high active Tracked-On: #1269 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,728
26.09.2018 14:39:15
-7,200
769871496d26881de33b7eed168131d22b5fe7ba
Getting Started Guide: minor clean-up Fix the delimiting character used when adding an extra row to a table so as to make it consistent with the other rows. Remove an extra set of "<>"
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -105,9 +105,9 @@ complete this setup.\n| openssh-server | Server-side support for secure connectivity and |\n| | remote login using the SSH protocol |\n+--------------...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Getting Started Guide: minor clean-up Fix the delimiting character used when adding an extra row to a table so as to make it consistent with the other rows. Remove an extra set of "<>" Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,728
26.09.2018 14:59:20
-7,200
373e79bb522b045507988da4d19094c19b9e8b28
Getting Started Guide: add instructions to disable cbc_* services Add instructions on how to disable ('mask') the 'cbc_*' services installed by the 'ioc-cbc-tools'. These services are not functional on standard off-the-shelf platforms such as NUCs or UP2.
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -242,7 +242,7 @@ partition. Follow these steps:\n#. Add new user\n- .. code-block:: console\n+ .. code-block:: none\n# useradd cl_sos\n# passwd cl_sos\n@@ -250,7 +250,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Getting Started Guide: add instructions to disable cbc_* services Add instructions on how to disable ('mask') the 'cbc_*' services installed by the 'ioc-cbc-tools'. These services are not functional on standard off-the-shelf platforms such as NUCs or UP2. Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.c...
528,747
05.10.2018 16:35:54
25,200
d800baf5535e357275fc98d22bf81d2c4205d3e9
doc: tweak hld intro Add another level to the HLD toc, and start conversion of the HLD intro
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/hld/hld-overview.rst", "new_path": "doc/developer-guides/hld/hld-overview.rst", "diff": ".. _hld-overview:\n-Overview\n-########\n+ACRN high-level design overview\n+###############################\n+\n+ACRN is an open source reference hype...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: tweak hld intro Add another level to the HLD toc, and start conversion of the HLD intro Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,806
18.09.2018 23:41:25
18,000
6981a4dff7decade8838dc69287c8e1fe4e686fc
crashlog: do not alter system behavior with watchdog Instead of installing to systemd config directory, install to /usr/share/acrn/crashlog. Using this way we not alter the system if it is not used as a debug platform. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/Makefile", "new_path": "tools/acrn-crashlog/Makefile", "diff": "@@ -104,8 +104,8 @@ install:\n@install -p -D -m 0755 $(BUILDDIR)/usercrash/bin/usercrash_s $(DESTDIR)/usr/bin/\n@install -p -D -m 0755 data/acrnprobe_prepare.sh $(DESTDIR)/usr/...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
crashlog: do not alter system behavior with watchdog Instead of installing to systemd config directory, install to /usr/share/acrn/crashlog. Using this way we not alter the system if it is not used as a debug platform. Tracked-On: #1386 Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> Reviewed...
528,806
19.09.2018 03:13:10
18,000
b1a05d17ed62d1c6cf849d1e92300b6c60ee82f6
crashlog: re-write usercrash-wrapper Using an O(n^2) function for look up the values from the arguments simplify the complexity code of the userchrash-wrapper. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/data/usercrash-wrapper", "new_path": "tools/acrn-crashlog/data/usercrash-wrapper", "diff": "@@ -17,38 +17,26 @@ if [ ! -f $default_core_pattern_file ]; then\nexit -1\nfi\n-# default coredump app and usercrash parameters index file under /tm...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
crashlog: re-write usercrash-wrapper Using an O(n^2) function for look up the values from the arguments simplify the complexity code of the userchrash-wrapper. Tracked-On: #1386 Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Acked-by: Chen Gang <gang....
528,806
25.09.2018 05:38:46
18,000
b115546b45fcc18ecbd0e361220ad9e968804a1c
crashlog: deprecate acrnprobe_prepare and update Makefile The `crashlogctl` command is replacing acrnprobe_prepare script. So, let's remove from the project, and update the Makefile with the new content. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/Makefile", "new_path": "tools/acrn-crashlog/Makefile", "diff": "@@ -102,24 +102,27 @@ install:\n@install -p -D -m 0755 $(BUILDDIR)/usercrash/bin/debugger $(DESTDIR)/usr/bin/\n@install -p -D -m 0755 $(BUILDDIR)/usercrash/bin/usercrash_c $(DE...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
crashlog: deprecate acrnprobe_prepare and update Makefile The `crashlogctl` command is replacing acrnprobe_prepare script. So, let's remove from the project, and update the Makefile with the new content. Tracked-On: #1386 Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> Reviewed-by: Zhi Jin <z...
528,709
30.09.2018 16:49:37
-28,800
eebccac2a78171ec0acb838290c807fe1c2f365f
hv: add suffix(U) in vmx.h to come up MISRA-C MISRA-C required the suffix(U), such as: (1U << 0) ---> (1U << 0U) This patch will add the suffix(U) to come up MISRA-C. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/arch/x86/vmx.h", "new_path": "hypervisor/include/arch/x86/vmx.h", "diff": "#define VMX_EXIT_REASON_XRSTORS 0x00000040U\n/* VMX execution control bits (pin based) */\n-#define VMX_PINBASED_CTLS_IRQ_EXIT (1U<<0)\n-#define VMX_PINBASED_CTLS_NMI...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add suffix(U) in vmx.h to come up MISRA-C MISRA-C required the suffix(U), such as: (1U << 0) ---> (1U << 0U) This patch will add the suffix(U) to come up MISRA-C. Tracked-On: #1385 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
28.09.2018 15:21:23
-28,800
ff3f9bd1e615fd3b1521cb158554ab4ec2d04698
hv: Remove const qualifier for struct vm This patch is ready for next one,we will switch from pointer to embedded structures such as structure vcpu, some const qualifiers can be improper and raise compilation errors, this patch remove const qualifier for struct vm. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -61,7 +61,7 @@ void destroy_ept(struct vm *vm)\nfree_ept_mem((uint64_t *)vm->arch_vm.m2p);\n}\n-uint64_t local_gpa2hpa(const struct vm *vm, uint64_t gpa, uint32_t *size)\n+uint64_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Remove const qualifier for struct vm This patch is ready for next one,we will switch from pointer to embedded structures such as structure vcpu, some const qualifiers can be improper and raise compilation errors, this patch remove const qualifier for struct vm. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingq...
528,783
26.09.2018 11:24:38
-28,800
b8e59e16383d3093561ef2dd39bbafbaaa0ab481
hv:Replace dynamic memory with static for vm Replace dynamic memory allocation with static memory Remove the parameter check if the vm is NULL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/Kconfig", "new_path": "hypervisor/arch/x86/Kconfig", "diff": "@@ -32,6 +32,10 @@ config RELEASE\nbool \"Release build\"\ndefault n\n+config MAX_VM_NUM\n+ int \"Maximum number of VM\"\n+ default 4\n+\nconfig NR_IOAPICS\nint \"Maximum number ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:Replace dynamic memory with static for vm -- Replace dynamic memory allocation with static memory -- Remove the parameter check if the vm is NULL Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
27.09.2018 14:15:32
-28,800
eff2ac7a90e6422f4a06b45ff765f3903573ee5b
hv: Remove vm_list Loop the global vm_array[] instead of the vm_list. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vm.c", "new_path": "hypervisor/arch/x86/guest/vm.c", "diff": "/* Local variables */\n-/* VMs list */\n-struct list_head vm_list = {\n- .next = &vm_list,\n- .prev = &vm_list,\n-};\n-\n-/* Lock for VMs list */\n-spinlock_t vm_list_lock ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Remove vm_list Loop the global vm_array[] instead of the vm_list. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,766
27.09.2018 13:49:40
25,200
0359bd0f9945566a4832b5b06ecde895f9f089c8
dm: vpit: add PIT-related header files Add the necessary header files for vPIT. Origin: FreeBSD License: BSD-3-Clause URL: commit: 335030 Purpose: Adding vPIT support. Maintained-by: External Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/lpc.c", "new_path": "devicemodel/hw/pci/lpc.c", "diff": "#include \"pci_core.h\"\n#include \"irq.h\"\n#include \"lpc.h\"\n+#include \"pit.h\"\n#include \"uart_core.h\"\n#define IO_ICU1 0x20\n@@ -50,9 +51,6 @@ SET_DECLARE(lpc_sysres_set, stru...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: vpit: add PIT-related header files Add the necessary header files for vPIT. Origin: FreeBSD License: BSD-3-Clause URL: https://svnweb.freebsd.org/ commit: 335030 Purpose: Adding vPIT support. Maintained-by: External Tracked-On: #1392 Signed-off-by: Peter Fang <peter.fang@intel.com> Acked-by: Yin Fengwei <fengwei...
528,802
29.09.2018 08:48:06
-28,800
b1b3f76db9b7ee50bf0363979f91e9887837664e
dm: virtio: use strnlen instead of strlen Use strnlen instead of strlen to avoid potential security issue. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_console.c", "new_path": "devicemodel/hw/pci/virtio/virtio_console.c", "diff": "#include <assert.h>\n#include <pthread.h>\n#include <termios.h>\n+#include <limits.h>\n#include \"dm.h\"\n#include \"pci_core.h\"\n@@ -326,7 +327,7 ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: use strnlen instead of strlen Use strnlen instead of strlen to avoid potential security issue. Tracked-On: #1364 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
29.09.2018 14:08:51
-28,800
2b24b3780f51a8e04e408ee09d186238c4e1ac2d
hv: mmu: add some API for guest page mode check add is_long_mode to check whether the processor is operating in IA-32e mode add is_paging_enabled to check whether paging is enabled add is_pae to check whether physical address extension is enabled.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/guest.c", "new_path": "hypervisor/arch/x86/guest/guest.c", "diff": "@@ -59,10 +59,10 @@ enum vm_paging_mode get_vcpu_paging_mode(struct vcpu *vcpu)\nreturn PAGING_MODE_0_LEVEL;\n}\nelse if (cpu_mode == CPU_MODE_PROTECTED) {\n- if ((vc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: mmu: add some API for guest page mode check add is_long_mode to check whether the processor is operating in IA-32e mode add is_paging_enabled to check whether paging is enabled add is_pae to check whether physical address extension is enabled. Tracked-On: #1379 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,756
26.09.2018 11:24:19
-28,800
69edccc0634ddc3a861e90186b7571a5a52d0bec
IOC Mediator: Add return value check for snprintf Return value check for snprintf function. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -1550,9 +1550,13 @@ ioc_parse(const char *opts)\n{\nchar *tmp;\nchar *param = strdup(opts);\n+ int rc;\ntmp = strtok(param, \",\");\n- snprintf(virtual_uart_path, sizeof(v...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC Mediator: Add return value check for snprintf Return value check for snprintf function. Tracked-On: #1401 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,756
26.09.2018 16:25:42
-28,800
25db6b7917bc68c9cc4a3ae191067f034c465d25
IOC Mediator: Replace strtok with strsep Replace strtok function with strsep function. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -1548,27 +1548,37 @@ vm_resume_handler(void *arg)\nint\nioc_parse(const char *opts)\n{\n- char *tmp;\n- char *param = strdup(opts);\n+ char *tmp, *str, *cpy;\nint rc;\n- t...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC Mediator: Replace strtok with strsep Replace strtok function with strsep function. Tracked-On: #1401 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,676
29.09.2018 16:12:39
-28,800
723c22fc7f5c5b8e48b1c1a0648cc42e0a99ada2
HV:fix expression is not boolean Expression should be boolean immediate before 'if','while' key-words. V1->V2 add () to bool expression Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -68,7 +68,7 @@ uint64_t local_gpa2hpa(struct vm *vm, uint64_t gpa, uint32_t *size)\nvoid *eptp;\nstruct vcpu *vcpu = vcpu_from_pid(vm, get_cpu_id());\n- if (vcpu && (vcpu->arch_vc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fix expression is not boolean Expression should be boolean immediate before 'if','while' key-words. V1->V2 add () to bool expression Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,676
09.10.2018 15:21:06
-28,800
c5f4c5109c2e3737ef91c0e24f1870f44c6a2bda
HV:fix type related violations 1.Function return type inconsistent 2.cast on a constant value V1->V2 add () to return type V2->V3 keep the sbuf_get and sbuf_put return code Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -2338,7 +2338,7 @@ int decode_instruction(struct vcpu *vcpu)\ninstr_check_gva(vcpu, emul_ctxt, cpu_mode);\n}\n- return emul_ctxt->vie.opsize;\n+ return (...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fix type related violations 1.Function return type inconsistent 2.cast on a constant value V1->V2 add () to return type V2->V3 keep the sbuf_get and sbuf_put return code Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,659
09.10.2018 20:40:19
-28,800
e0728f4b607deb5fe1e30e77b6a03bd02db5a900
DM USB: xHCI: fix a crash issue when usb device is disconnected This is an issue result from incomplete process logic of commit: "ba68bd4 DM USB: xHCI: fix enumeration error after rebooting". This patch is used to fix it. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -704,7 +704,9 @@ pci_xhci_native_usb_dev_disconn_cb(void *hci_data, void *dev_data)\nif (xdev->slots[slot] == edev)\nbreak;\n- assert(status == VPORT_EMULATED || status == VPORT_C...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: fix a crash issue when usb device is disconnected This is an issue result from incomplete process logic of commit: "ba68bd4 DM USB: xHCI: fix enumeration error after rebooting". This patch is used to fix it. Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel....
528,675
08.10.2018 13:09:20
-28,800
6793eb0604269b4f66dea84f9e86a5300ffded27
dm: fix assertion in pci_irq_reserve atkbdc_init will call pci_irq_reserve to reserve irq 1 & 12, which need pci_irq_init be called first.
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -499,12 +499,12 @@ vm_reset_vdevs(struct vmctx *ctx)\npci_irq_deinit(ctx);\nioapic_deinit();\n+ pci_irq_init(ctx);\natkbdc_init(ctx);\nvrtc_init(ctx);\nvpit_init(ctx);\nioapic_init(ct...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: fix assertion in pci_irq_reserve atkbdc_init will call pci_irq_reserve to reserve irq 1 & 12, which need pci_irq_init be called first. Tracked-On: #1402 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,768
11.10.2018 21:28:14
-28,800
bacfc9b24533dfc1b6238991ba61707834dde524
dm: fix use of uninitialized variable in monitor.c "ack" is not initialized before passing it to "mngr_send_msg() as input. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/monitor.c", "new_path": "devicemodel/core/monitor.c", "diff": "@@ -228,6 +228,7 @@ int set_wakeup_timer(time_t t)\nstrncpy(req.data.rtc_timer.vmname, vmname,\nsizeof(req.data.rtc_timer.vmname));\n+ memset(&ack, 0, sizeof(struct mngr_msg));\nre...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: fix use of uninitialized variable in monitor.c @set_wakeup_timer(), "ack" is not initialized before passing it to "mngr_send_msg() as input. Tracked-On: #861 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,801
11.10.2018 13:33:38
-28,800
041bd594aee68b5626e9cc161268bdc967f3b333
hv: improve the readability of ept_cap_detect improve the readability of ept_cap_detect right shift 32 bits of msr_val to check bits 63:32 of msr_val Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -776,8 +776,20 @@ static void ept_cap_detect(void)\n/* Read primary processor based VM control. */\nmsr_val = msr_read(MSR_IA32_VMX_PROCBASED_CTLS);\n+ /*\n+ * According to SDM A....
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: improve the readability of ept_cap_detect - improve the readability of ept_cap_detect right shift 32 bits of msr_val to check bits 63:32 of msr_val Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,775
07.10.2018 19:21:46
-10,800
4f1d3c049b4cb11f86e96d0b155af91a7f38fd00
dm: inline functions defined in header must be static An inline function defined in headers must be static otherwise compilation may fail, depending on gcc optimization level, particularly if dropping -O2 from the Makefile dm doesn't compile reporting unresolved symbols. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/include/rpmb_sim.h", "new_path": "devicemodel/include/rpmb_sim.h", "diff": "#ifndef __RPMB_SIM_H__\n#define __RPMB_SIM_H__\n-inline uint32_t swap32(uint32_t val)\n+static inline uint32_t swap32(uint32_t val)\n{\nreturn ((val & (uint32_t)0x000000ffU...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: inline functions defined in header must be static An inline function defined in headers must be static otherwise compilation may fail, depending on gcc optimization level, particularly if dropping -O2 from the Makefile dm doesn't compile reporting unresolved symbols. Tracked-On: #1406 Signed-off-by: Tomas Winkler...
528,768
11.10.2018 23:31:19
-28,800
0c7e59f01e7e0a7a05c4388b8f7f5e1e994d0e21
hv: fix NULL pointer dereference in "hcall_set_vm_memory_regions()" 'target_vm' returned from 'get_vm_from_vmid()' maybe NULL, passing to 'is_vm0()' without check. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -535,6 +535,10 @@ int32_t hcall_set_vm_memory_regions(struct vm *vm, uint64_t param)\n}\ntarget_vm = get_vm_from_vmid(set_regions.vmid);\n+ if (target_vm == NULL) {\n+ ret...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix NULL pointer dereference in "hcall_set_vm_memory_regions()" 'target_vm' returned from 'get_vm_from_vmid()' maybe NULL, passing to 'is_vm0()' without check. Tracked-On: #861 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,680
26.09.2018 15:39:56
25,200
c3ebd6f3ba1f6fde9f0b571337785ebb7e36c658
HV: get tss address from per cpu data TR selector initianlization using pre-defined HOST_GDT_RING0_CPU_TSS_SEL rather than loading from register. Instead calculating real base address of TSS based on TR selector and gdt, getting it from per cpu data. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmx.c", "new_path": "hypervisor/arch/x86/vmx.c", "diff": "@@ -744,13 +744,9 @@ static void init_host_state(void)\nuint16_t value16;\nuint64_t value64;\nuint64_t value;\n- uint64_t trbase;\n- uint64_t trbase_lo;\n- uint64_t trbase_hi;\n- uin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: get tss address from per cpu data TR selector initianlization using pre-defined HOST_GDT_RING0_CPU_TSS_SEL rather than loading from register. Instead calculating real base address of TSS based on TR selector and gdt, getting it from per cpu data. Tracked-On: #1394 Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.co...
528,783
10.10.2018 18:24:56
-28,800
790d8a5ce7d6fbf1fa549ef791a54d783658d85a
hv:Remove CONFIG_VM0_DESC If defined CONFIG_VM0_DESC, HV will use predefined vm0_desc to config VM0,now it is unneccessary, then remove these code. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -182,7 +182,6 @@ C_SRCS += $(wildcard partition/*.c)\nC_SRCS += dm/vrtc.c\nendif\n-C_SRCS += bsp/$(CONFIG_PLATFORM)/vm_description.c\nC_SRCS += bsp/$(CONFIG_PLATFORM)/$(CONFIG_PLATFORM).c\nC_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:Remove CONFIG_VM0_DESC If defined CONFIG_VM0_DESC, HV will use predefined vm0_desc to config VM0,now it is unneccessary, then remove these code. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
29.09.2018 20:45:46
-28,800
f7b11c83416ea0710bf7b7f89c53ced6be077926
hv: add function to reset vcpu registers This reset_vcpu_regs function will reset the vcpu registers to default value: realmode with entry 0xFFFFFFF0 Make call to reset_vcpu_regs during create_vcpu and reset_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": "@@ -229,6 +229,29 @@ void set_vcpu_regs(struct vcpu *vcpu, struct acrn_vcpu_regs *vcpu_regs)\nctx->cr4 = vcpu_regs->cr4;\n}\n+static struct acrn_vcpu_regs realmode_init...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add function to reset vcpu registers This reset_vcpu_regs function will reset the vcpu registers to default value: realmode with entry 0xFFFFFFF0 Make call to reset_vcpu_regs during create_vcpu and reset_vcpu Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@in...
528,733
29.09.2018 21:14:44
-28,800
08c13a9ea812e0ede1d9e7b2150cb23ca6c182c5
hv: Update SOS BSP to use new API to init BSP state We move the SOS BSP state init to vm loader and drop function init_guest_context_vm0_bsp. Update the definition of vm0_boot_context to fix code violations. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmx.c", "new_path": "hypervisor/arch/x86/vmx.c", "diff": "@@ -604,42 +604,6 @@ static void init_guest_context_real(struct vcpu *vcpu)\nectx->idtr.limit = 0xFFFFU;\n}\n-static void init_guest_context_vm0_bsp(struct vcpu *vcpu)\n-{\n- struct ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Update SOS BSP to use new API to init BSP state We move the SOS BSP state init to vm loader and drop function init_guest_context_vm0_bsp. Update the definition of vm0_boot_context to fix code violations. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.c...
528,777
10.10.2018 14:19:17
-28,800
203016b406b4057e93a500d89131b03b214c4ab7
dm: passthru: correct the name of xdci dsdt write function The write_dsdt_xhci function is use for describe the xdci dsdt table. Correct its name.
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/passthrough.c", "new_path": "devicemodel/hw/pci/passthrough.c", "diff": "@@ -1376,7 +1376,7 @@ passthru_read(struct vmctx *ctx, int vcpu, struct pci_vdev *dev, int baridx,\n}\nstatic void\n-write_dsdt_xhci(struct pci_vdev *dev)\n+write_dsdt_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: passthru: correct the name of xdci dsdt write function The write_dsdt_xhci function is use for describe the xdci dsdt table. Correct its name. Tracked-On: #1444 Signed-off-by: Yu Wang <yu1.wang@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
528,676
11.10.2018 09:35:49
-28,800
8ccaf3c3e8cb5605360b1f449ae42c0f1147d9e4
use genld.sh to generate link_ram.ld Use genld.sh instead of config.h to generate link_ram.ld. It can avoid the conflicts of the syntax between ld script and C. V1->V2: change the deps name to config,
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -34,6 +34,9 @@ include $(BASEDIR)/../scripts/deps.mk\ninclude scripts/kconfig/kconfig.mk\n+LD_IN_TOOL = scripts/genld.sh\n+BASH = $(shell which bash)\n+\nCFLAGS += -Wall -W\nCFLAGS += -ffunct...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
use genld.sh to generate link_ram.ld Use genld.sh instead of config.h to generate link_ram.ld. It can avoid the conflicts of the syntax between ld script and C. V1->V2: change the deps name to config, Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> reviewed-by: Junjie Mao <junjie.mao@intel....
528,725
11.10.2018 23:00:45
-28,800
66b53f8248992083c9acd05749e22a8cded26926
kconfig patch Use customized function to generate proper config.h which depend on kconfig,write the customized format to support it. V1->V2: Add comments.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/Kconfig", "new_path": "hypervisor/arch/x86/Kconfig", "diff": "@@ -38,10 +38,12 @@ config MAX_VM_NUM\nconfig NR_IOAPICS\nint \"Maximum number of IOAPICs supported\"\n+ range 1 2\ndefault 1\nconfig MAX_IOMMU_NUM\nint \"Maximum number of iommu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
kconfig patch Use customized function to generate proper config.h which depend on kconfig,write the customized format to support it. V1->V2: Add comments. Tracked-On: #861 Signed-off-by: Junjie Mao <junjie.mao@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
528,733
03.10.2018 19:29:01
-28,800
3cfbc004f5995b8d0751313177845743f7d9bd4e
hv: add hypercall to set vcpu init state DM will use this hypercall to initialize the UOS BSP state. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vmcall.c", "new_path": "hypervisor/arch/x86/guest/vmcall.c", "diff": "@@ -78,6 +78,11 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\nret = hcall_create_vcpu(vm, (uint16_t)param1, param2);\nbreak;\n+ case HC_SET_VCPU_REGS:\n+ /* para...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add hypercall to set vcpu init state DM will use this hypercall to initialize the UOS BSP state. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
26.09.2018 11:13:33
-28,800
853b1c74cbc2fd6903ec22a6ebacbafd727db4bf
dm: add API to set vcpu regs of guest Add ioctl parameter and API to set vcpu regs. The guest software loader will call this API to set guest vcpu registers. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -269,6 +269,8 @@ add_cpu(struct vmctx *ctx, int guest_ncpus)\nmt_vmm_info[i].mt_vcpu = i;\n}\n+ vm_set_vcpu_regs(ctx, &ctx->bsp_regs);\n+\nerror = pthread_create(&mt_vmm_info[0].mt_th...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: add API to set vcpu regs of guest Add ioctl parameter and API to set vcpu regs. The guest software loader will call this API to set guest vcpu registers. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
27.08.2018 20:00:52
-28,800
96d999544cc5acac676216115592358d0cc5dc32
dm: update the vsbl loader to use new interface to set the state of guest BSP (entries, general registers etc) when DM load vsbl. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_vsbl.c", "new_path": "devicemodel/core/sw_load_vsbl.c", "diff": "@@ -247,13 +247,8 @@ acrn_sw_load_vsbl(struct vmctx *ctx)\nint ret;\nstruct e820_entry *e820;\nstruct vsbl_para *vsbl_para;\n- uint64_t *vsbl_entry =\n- (uint64_t *)(ctx-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: update the vsbl loader to use new interface to set the state of guest BSP (entries, general registers etc) when DM load vsbl. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
28.08.2018 14:30:22
-28,800
fc575460a38b6468616f6475b7017f6ada936ad9
dm: update the bzimage loader to use new interface to set the state of guest BSP (entries, general registers etc) when DM load bzimage. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_bzimage.c", "new_path": "devicemodel/core/sw_load_bzimage.c", "diff": "* +-----------------------------------------------------+\n* | ... |\n* +-----------------------------------------------------+\n+ * | offset: lowmem - 4MB - 2K (ke...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: update the bzimage loader to use new interface to set the state of guest BSP (entries, general registers etc) when DM load bzimage. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
03.10.2018 20:07:39
-28,800
b454a067bec26adfd4a9cb52b5987cfab6629fc3
hv: remove the vm loader for UOS in hv. Now, we make UOS to set BSP init state by using hypercall. We could drop the old UOS loader in HV and make vm loader in HV only for SOS. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -661,6 +661,7 @@ int prepare_vcpu(struct vm *vm, uint16_t pcpu_id)\n} else {\nreturn -EINVAL;\n}\n+ vm_sw_loader(vm);\n} else {\n#ifdef CONFIG_EFI_STUB\n/* currently...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: remove the vm loader for UOS in hv. Now, we make UOS to set BSP init state by using hypercall. We could drop the old UOS loader in HV and make vm loader in HV only for SOS. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
08.10.2018 19:46:01
-28,800
b1ccde55a8e1f9a6dddf16f940bd9b1ea40eaf09
hv: Cleanup: set vcpu mode in vcpu_set_regs Move vcpu mode set to function vcpu_set_regs. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -163,6 +163,21 @@ struct vcpu *get_ever_run_vcpu(uint16_t pcpu_id)\nreturn per_cpu(ever_run_vcpu, pcpu_id);\n}\n+static void set_vcpu_mode(struct vcpu *vcpu, uint32_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Cleanup: set vcpu mode in vcpu_set_regs Move vcpu mode set to function vcpu_set_regs. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
15.10.2018 12:12:25
-28,800
a028567b9cb6ab1fe3dae0913ea7fa431723be46
vpic: change assert/deassert method use pin_state[pin] to record vpic pin signal, and change the interface name accordingly.
[ { "change_type": "MODIFY", "old_path": "hypervisor/dm/vpic.c", "new_path": "hypervisor/dm/vpic.c", "diff": "#define NR_VPIC_PINS_TOTAL 16U\n#define VPIC_INVALID_PIN 0xffU\n-static void vpic_set_pinstate(struct acrn_vpic *vpic, uint8_t pin, bool newstate);\n+static void vpic_set_pinstate(struct acrn_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vpic: change assert/deassert method use pin_state[pin] to record vpic pin signal, and change the interface name accordingly. Tracked-On: #1269 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,766
09.10.2018 15:47:55
25,200
7101ce87a7915e0dc13637a424f5043872b529cb
dm: storage: remove GEOM support There is no GEOM framework in Linux. Remove dead code. v1 -> v2: complete removal of the entire GEOM logic Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/block_if.c", "new_path": "devicemodel/hw/block_if.c", "diff": "@@ -98,7 +98,6 @@ struct blockif_ctxt {\nint magic;\nint fd;\nint isblk;\n- int isgeom;\nint candelete;\nint rdonly;\noff_t size;\n@@ -233,20 +232,17 @@ blockif_complete(struct block...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: storage: remove GEOM support There is no GEOM framework in Linux. Remove dead code. v1 -> v2: - complete removal of the entire GEOM logic Tracked-On: #1422 Signed-off-by: Peter Fang <peter.fang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,766
09.10.2018 15:50:21
25,200
ba4e72bd0a83812d2ca51c9f1e7d308a004a5ad6
dm: virtio: add debugging information in virtio-blk Output debugging message when virtio-blk completes with error. v1 -> v2: fix coding style refine debugging message Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_block.c", "new_path": "devicemodel/hw/pci/virtio/virtio_block.c", "diff": "@@ -171,6 +171,9 @@ virtio_blk_done(struct blockif_req *br, int err)\nstruct virtio_blk_ioreq *io = br->param;\nstruct virtio_blk *blk = io->blk;\n+ if ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: add debugging information in virtio-blk Output debugging message when virtio-blk completes with error. v1 -> v2: - fix coding style - refine debugging message Tracked-On: #1422 Signed-off-by: Peter Fang <peter.fang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,709
11.10.2018 11:47:48
-28,800
909d15763077ee56cfa612599c27426b682911e2
dm: cleanup the cmd options for acrn-dm For acrn-dm cmd options, there are some mismatch usage from acrn-dm help message. This patch will cleanup them.
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -80,7 +80,6 @@ char *vsbl_file_name;\nuint8_t trusty_enabled;\nbool stdio_in_use;\n-static int guest_vmexit_on_hlt, guest_vmexit_on_pause;\nstatic int virtio_msix = 1;\nstatic int x2a...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: cleanup the cmd options for acrn-dm For acrn-dm cmd options, there are some mismatch usage from acrn-dm help message. This patch will cleanup them. Tracked-On: #1469 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Reviewed-by: Jason Chen <jason.cj.chen@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
528,709
15.10.2018 13:06:43
-28,800
96412ac147138ebc3efce8b286ad8920ea24998d
hv: add suffix(U/UL) to come up MISRA-C into include MISRA-C required the suffix(U/UL), such as: (1) ---> (1U) (1) ---> (1UL) (1U << 0) ---> (1U << 0U) This patch will add the suffix(U/UL) to come up MISRA-C into hypervisor/include directory. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -287,8 +287,8 @@ void set_ap_entry(struct vcpu *vcpu, uint64_t entry)\nstruct ext_context *ectx;\nectx = &(vcpu->arch_vcpu.contexts[vcpu->arch_vcpu.cur_context].ext_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add suffix(U/UL) to come up MISRA-C into include MISRA-C required the suffix(U/UL), such as: (1) ---> (1U) (1) ---> (1UL) (1U << 0) ---> (1U << 0U) This patch will add the suffix(U/UL) to come up MISRA-C into hypervisor/include directory. Tracked-On: #1468 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: E...