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,667 | 11.10.2018 11:18:48 | -28,800 | 536ce5fb27cc3cc1266fcc2a50fe8342977d5523 | dm: remove unnecessary ioreq status changing from DM
We will mark ioreq as COMPLETE in VHM via IC_NOTIFY_REQUEST_FINISH
ioctl. vm_notify_request_done can do it. So remove this one.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -412,7 +412,6 @@ handle_vmexit(struct vmctx *ctx, struct vhm_request *vhm_req, int vcpu)\n}\n(*handler[exitcode])(ctx, vhm_req, &vcpu);\n- atomic_store(&vhm_req->processed, REQ_STATE_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: remove unnecessary ioreq status changing from DM
We will mark ioreq as COMPLETE in VHM via IC_NOTIFY_REQUEST_FINISH
ioctl. vm_notify_request_done can do it. So remove this one.
Tracked-On: #1821
Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 26.12.2018 18:14:25 | -28,800 | c1fc7f5fce784503fa9ab1bea3db985961c22557 | hv: remove the usage of 'atoi()'
this function is not from libc but has the same name,
atoi() in libc is unbounded and not safe.
replace this function with 'strtol_deci()' in this case.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "@@ -707,12 +707,12 @@ static int32_t shell_vcpu_dumpreg(int32_t argc, char **argv)\ngoto out;\n}\n- status = atoi(argv[1]);\n+ status = strtol_deci(argv[1]);\nif (status < 0) {\ngoto o... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove the usage of 'atoi()'
this function is not from libc but has the same name,
atoi() in libc is unbounded and not safe.
replace this function with 'strtol_deci()' in this case.
Tracked-On: #2187
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 26.12.2018 17:49:53 | -28,800 | 55691aed466124c5e7b5c58e51aea907e6ab3875 | hv: fix coding style violations in mmu.c
Fix violations that attempt to change parameter
passed by value.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/mmu.c",
"new_path": "hypervisor/arch/x86/mmu.c",
"diff": "@@ -222,14 +222,16 @@ void enable_smap(void)\n*/\nvoid hv_access_memory_region_update(uint64_t base, uint64_t size)\n{\n+ uint64_t base_aligned;\n+ uint64_t size_aligned;\nuint64_t r... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix coding style violations in mmu.c
Fix violations that attempt to change parameter
passed by value.
Tracked-On: #2056
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,671 | 18.12.2018 13:42:53 | -28,800 | c932faa241af5129e6f096513d04d996b6607be9 | Makefile: eliminate mistakes due to deprecated PLATFORM
PLATFORM is deprecated, let's use it only for board detection | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -16,6 +16,7 @@ BOARD ?= apl-mrb\nelse ifeq ($(PLATFORM),uefi)\nBOARD ?= apl-nuc\nendif\n+undefine PLATFORM\nifndef BOARD\n$(error BOARD must be set (apl-mrb, apl-nuc, cb2_dnv, nuc6cayh)\n@@ -47,7 +48,7 @@ all: hyp... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: eliminate mistakes due to deprecated PLATFORM
PLATFORM is deprecated, let's use it only for board detection
Tracked-On: #1995
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,671 | 20.12.2018 11:55:05 | -28,800 | 83034b71510c6b6991180afbcb8c2ccca8ac9b0c | Makefile: specify BOARD&FIRMWARE in sb-hypervisor-install
BOARD&FIRMWARE are wrong When 'make sbl-hypervisor-install' w/o parameters
due to default platform is uefi. So set them clearly. | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -88,7 +88,7 @@ ifeq ($(FIRMWARE),uefi)\nendif\nsbl-hypervisor-install:\n- make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-sbl BOARD=$(BOARD) FIRMWARE=$(FIRMWARE) RELEASE=$(RELEASE) install\n+ make -C $(T)/hypervisor H... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: specify BOARD&FIRMWARE in sb-hypervisor-install
BOARD&FIRMWARE are wrong When 'make sbl-hypervisor-install' w/o parameters
due to default platform is uefi. So set them clearly.
Tracked-On: #1995
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,671 | 24.12.2018 16:57:28 | -28,800 | e5c12a64d544767dc0a1621d684f6513d24d3920 | Makefile: add install-samples-up2
Add a rule to add UP2 related samples in rootfs. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/Makefile",
"new_path": "devicemodel/Makefile",
"diff": "@@ -156,6 +156,7 @@ PROGRAM := acrn-dm\nSAMPLES_NUC := $(wildcard samples/nuc/*)\nSAMPLES_MRB := $(wildcard samples/apl-mrb/*)\n+SAMPLES_UP2 := $(wildcard samples/up2/*)\nBIOS_BIN := $(wildcar... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: add install-samples-up2
Add a rule to add UP2 related samples in rootfs.
Tracked-On: #1995
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,676 | 26.12.2018 09:31:28 | -28,800 | f680ed5d6ab5bba61f3bb984842a78d98911a333 | hv: hypercall: fix simple violations of "Procedure has more than one exit point"
This patch fix the violations by the "if ... else ..." fmt.
V1->V2:
merge branches.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hypercall.c",
"new_path": "hypervisor/common/hypercall.c",
"diff": "@@ -386,16 +386,17 @@ int32_t hcall_inject_msi(struct acrn_vm *vm, uint16_t vmid, uint64_t param)\nstruct acrn_msi_entry msi;\nstruct acrn_vm *target_vm = get_vm_from_vmid(vm... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: hypercall: fix simple violations of "Procedure has more than one exit point"
This patch fix the violations by the "if ... else ..." fmt.
V1->V2:
merge branches.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 26.12.2018 10:18:22 | -28,800 | d6a226828265f206452aebb4f65811a22a6cc654 | hv: hypercall: fix complicated violations of "Procedure has more than one exit point"
Fix the complicated violations by methods list below:
1.if ... else ... fmt.
2.add status in proper position.
example:
bool bdf_valid;(could find this variable in this patch).
V1->V2:
merge branches.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hypercall.c",
"new_path": "hypervisor/common/hypercall.c",
"diff": "@@ -469,7 +469,7 @@ int32_t hcall_notify_ioreq_finish(uint16_t vmid, uint16_t vcpu_id)\n/* make sure we have set req_buf */\nif ((target_vm == NULL) || (target_vm->sw.io_shar... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: hypercall: fix complicated violations of "Procedure has more than one exit point"
Fix the complicated violations by methods list below:
1.if ... else ... fmt.
2.add status in proper position.
example:
bool bdf_valid;(could find this variable in this patch).
V1->V2:
merge branches.
Tracked-On: #86... |
528,676 | 26.12.2018 10:31:01 | -28,800 | 5aa7e29f0b0f5c124030e245ed678ac29b8e27cf | hv: hypercall: fix "Procedure has more than one exit point"
Fix "Procedure has more than one exit point" by split the function into
two parts.
V1->V2:
compact the multiple lines into one.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hypercall.c",
"new_path": "hypervisor/common/hypercall.c",
"diff": "@@ -489,51 +489,26 @@ int32_t hcall_notify_ioreq_finish(uint16_t vmid, uint16_t vcpu_id)\nreturn ret;\n}\n-/**\n- *@pre Pointer vm shall point to VM0\n- */\n-static int32_t s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: hypercall: fix "Procedure has more than one exit point"
Fix "Procedure has more than one exit point" by split the function into
two parts.
V1->V2:
compact the multiple lines into one.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 26.12.2018 15:50:59 | -28,800 | 2d3f510dbe48162bed1359a98191674d6cd25d68 | hv: tursty_hypercall: fix "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/trusty_hypercall.c",
"new_path": "hypervisor/common/trusty_hypercall.c",
"diff": "int32_t hcall_world_switch(struct acrn_vcpu *vcpu)\n{\nint32_t next_world_id = !(vcpu->arch.cur_context);\n+ int32_t ret;\nif (next_world_id >= NR_WORLD) {\ndev... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: tursty_hypercall: fix "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 13.12.2018 18:09:34 | -28,800 | 72d1fa503af366ccb0d2746ac75829c04b448641 | dm: refine the uart_core
Make uart_init and uart_deinit internal functions. And make
uart_set_backend/uart_release_backend cover uart_init/uart_deinit
function.
This will make mevent teardown callback adding easier for uart_core.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/lpc.c",
"new_path": "devicemodel/hw/pci/lpc.c",
"diff": "@@ -175,7 +175,6 @@ lpc_deinit(struct vmctx *ctx)\nunregister_inout(&iop);\nuart_release_backend(lpc_uart->uart, lpc_uart->opts);\n- uart_deinit(lpc_uart->uart);\nuart_legacy_dealloc(u... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: refine the uart_core
Make uart_init and uart_deinit internal functions. And make
uart_set_backend/uart_release_backend cover uart_init/uart_deinit
function.
This will make mevent teardown callback adding easier for uart_core.
Tracked-On: #1877
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Yu Wang ... |
528,733 | 17.12.2018 10:26:47 | -28,800 | 8f57c61da9447a0fb69f6801ac7e44f2a4756a5c | dm: Add teardown callback for mevent in uart_core
To avoid the race issue for mevent in uart, we introduce the
teardown callback to handle resource free case.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/uart_core.c",
"new_path": "devicemodel/hw/uart_core.c",
"diff": "@@ -119,6 +119,7 @@ struct uart_vdev {\n};\nstatic void uart_drain(int fd, enum ev_type ev, void *arg);\n+static void uart_deinit(struct uart_vdev *uart);\nstatic void\nttyclose(vo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: Add teardown callback for mevent in uart_core
To avoid the race issue for mevent in uart, we introduce the
teardown callback to handle resource free case.
Tracked-On: #1877
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,733 | 19.12.2018 17:13:03 | -28,800 | 329ea42d73c3468dbb8e69060f4a13022988f3f6 | dm: fix the memory leak in virtio mei
The possible memory leak was introduced by commit
If mevent add fails in virtio mei, the resource allocated doesn't
be released. This patch fix this memory leak issue. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/virtio/virtio_mei.c",
"new_path": "devicemodel/hw/pci/virtio/virtio_mei.c",
"diff": "@@ -373,6 +373,20 @@ vmei_set_status(struct virtio_mei *vmei, enum vmei_status status)\nvmei->status = status;\n}\n+static void\n+vmei_rx_teardown(void *par... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: fix the memory leak in virtio mei
The possible memory leak was introduced by commit
7fce2462a0df5e3ab767103026cc0139e606facf
If mevent add fails in virtio mei, the resource allocated doesn't
be released. This patch fix this memory leak issue.
Tracked-On: #1877
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> |
528,667 | 26.12.2018 14:05:05 | -28,800 | e8ac97671fe19cebb87e174b59ee8ab51dc8f75d | hv: use asm_pause() to replace inline ASM to satisfy MISRAC
pause_cpu() --> asm_pause()
hlt_cpu() --> asm_hlt()
inline ASM pause --> asm_pause()
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -301,7 +301,7 @@ void stop_cpus(void)\nvoid cpu_do_idle(void)\n{\n- __asm __volatile(\"pause\" ::: \"memory\");\n+ asm_pause();\n}\n/**\n@@ -325,7 +325,7 @@ void cpu_dead(void)\n/... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: use asm_pause() to replace inline ASM to satisfy MISRAC
pause_cpu() --> asm_pause()
hlt_cpu() --> asm_hlt()
inline ASM pause --> asm_pause()
Tracked-On: #1821
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 26.12.2018 13:30:10 | -28,800 | d89ce8aeb42faca963525f6b5c66ee4b785279db | hv: schedule: fix "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/schedule.c",
"new_path": "hypervisor/common/schedule.c",
"diff": "@@ -41,14 +41,16 @@ void release_schedule_lock(uint16_t pcpu_id)\nuint16_t allocate_pcpu(void)\n{\nuint16_t i;\n+ uint16_t ret = INVALID_CPU_ID;\nfor (i = 0U; i < phys_cpu_num;... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: schedule: fix "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> |
528,801 | 13.12.2018 17:11:57 | -28,800 | a177d75ed368ed2a830dcebb90fdf5a81bc728ee | doc: initial draft of ACRN coding guidelines
This patch introduces an initial draft of ACRN coding guidelines.
We will update this document gradually to support ACRN achieve
MISRA-C compliance. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "doc/developer-guides/coding_guidelines.rst",
"diff": "+.. _coding_guidelines:\n+\n+Coding Guidelines\n+#################\n+\n+.. contents::\n+ :local:\n+\n+\n+Compilation Units\n+*****************\n+\n+CU-01: Only one assignment shall be on a si... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: initial draft of ACRN coding guidelines
This patch introduces an initial draft of ACRN coding guidelines.
We will update this document gradually to support ACRN achieve
MISRA-C compliance.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,796 | 26.12.2018 22:29:49 | 28,800 | 9c27ed1090abbb8e56e3b28408e67bb64695de45 | profiling: fix the profiling tool crash by page faults
Profiling tools are broken, which cause page faults during collection.
The issue happens by enabling SMAP recently. Therefore,
we use stac() and clac() to allow access to buffers allocated by guest.
Tacked-On:
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/profiling.c",
"new_path": "hypervisor/debug/profiling.c",
"diff": "@@ -235,14 +235,14 @@ static int32_t profiling_sbuf_put_variable(struct shared_buf *sbuf,\n* 5. return number of bytes of data put in buffer\n*/\n+ stac();\nif ((sbuf == NULL) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | profiling: fix the profiling tool crash by page faults
Profiling tools are broken, which cause page faults during collection.
The issue happens by enabling SMAP recently. Therefore,
we use stac() and clac() to allow access to buffers allocated by guest.
Tacked-On: #2157
Signed-off-by: Min Lim <min.yeol.lim@intel.com>... |
528,731 | 20.12.2018 16:53:13 | -28,800 | 59e2de480578c54589f37ea0aa20ce5f6544c8a4 | dm: acpi: add PSDS table in ACPI table
Expose a new ACPI table PSDS to UOS.
This PSDS table show the security capability of the VM.
Only enable this table in UOS when PSDS presented in SOS.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/acpi/acpi.c",
"new_path": "devicemodel/hw/platform/acpi/acpi.c",
"diff": "#define FACS_OFFSET 0x3C0\n#define NHLT_OFFSET 0x400\n#define TPM2_OFFSET 0xC00\n-#define DSDT_OFFSET 0xE40\n+#define PSDS_OFFSET 0xE40 /* Reserve 0xC0 for PSD ta... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: acpi: add PSDS table in ACPI table
Expose a new ACPI table PSDS to UOS.
This PSDS table show the security capability of the VM.
Only enable this table in UOS when PSDS presented in SOS.
Tracked-On: #888
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Acked-by: Yu Wang... |
528,783 | 26.12.2018 13:54:05 | -28,800 | 682824de6d727d64003e600cdddb98c0882c2530 | hv:Change phys_cpu_num to static
change phys_cpu_num to static
add get_pcpu_nums() and is_pcpu_active() APIs
replace phys_cpu_num with get_pcpu_nums() except cpu.c
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "#include <security.h>\nstruct per_cpu_region per_cpu_data[CONFIG_MAX_PCPU_NUM] __aligned(PAGE_SIZE);\n-uint16_t phys_cpu_num = 0U;\n+static uint16_t phys_cpu_num = 0U;\nstatic uint64... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Change phys_cpu_num to static
-- change phys_cpu_num to static
-- add get_pcpu_nums() and is_pcpu_active() APIs
-- replace phys_cpu_num with get_pcpu_nums() except cpu.c
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,783 | 26.12.2018 14:04:20 | -28,800 | 5c6fe01c87929cea3661bdfef03b5f50a9f7cf1a | hv:Change pcpu_active_bitmap to static
Change pcpu_active_bitmap to static, only used in
cpu.c
add get_pcpu_active_bitmap()
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -20,7 +20,7 @@ static uint16_t up_count = 0U;\nstatic uint64_t startup_paddr = 0UL;\n/* physical cpu active bitmap, support up to 64 cpus */\n-uint64_t pcpu_active_bitmap = 0UL;\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Change pcpu_active_bitmap to static
-- Change pcpu_active_bitmap to static, only used in
cpu.c
-- add get_pcpu_active_bitmap()
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,647 | 27.12.2018 19:52:45 | -28,800 | 1dfd05cdac0b5064fc5d245474c2ba43cf959cff | hv: fix mis-usage of "PAGE_SHIFT"
Replace PAGE_SHIFT with MSI_ADDR_DEST_SHIFT in ptirq_build_physical_msi(), since it's not correct in semantics. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -93,7 +93,7 @@ static void ptirq_build_physical_msi(struct acrn_vm *vm, struct ptirq_msi_info *\nbool phys;\n/* get physical destination cpu mask */\n- dest = (uint32_t)(inf... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix mis-usage of "PAGE_SHIFT"
Replace PAGE_SHIFT with MSI_ADDR_DEST_SHIFT in ptirq_build_physical_msi(), since it's not correct in semantics.
Tracked-On: #2209
Signed-off-by: Yan, Like <like.yan@intel.com> |
528,731 | 28.12.2018 13:14:16 | -28,800 | 067273af1854b43507758587d21caf781d07c53b | hv: assign: fix remaining MISRA-C violations
This patch fixes the remaining MISRA-C violations in arch/x86/assign.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -42,7 +42,7 @@ ptirq_lookup_entry_by_sid(uint32_t intr_type,\n}\nstatic inline struct ptirq_remapping_info *\n-ptirq_lookup_entry_by_vpin(struct acrn_vm *vm, uint8_t virt_pi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: assign: fix remaining MISRA-C violations
This patch fixes the remaining MISRA-C violations in arch/x86/assign.c
Tracked-On: #861
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,766 | 24.12.2018 21:44:35 | 28,800 | 57c661c48d746f0e090645ce6704d261764685c2 | dm: vrtc: add RTC to ACPI DSDT
Clear Linux complains about not finding RTC as a PNP device:
platform rtc_cmos: registered platform RTC device (no PNP device found)
This is a port of Bhyve vRTC's user-space logic. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/rtc.c",
"new_path": "devicemodel/hw/platform/rtc.c",
"diff": "#include \"rtc.h\"\n#include \"mevent.h\"\n#include \"timer.h\"\n+#include \"acpi.h\"\n+#include \"lpc.h\"\n/* #define DEBUG_RTC */\n#ifdef DEBUG_RTC\n@@ -1178,3 +1180,27 @@ ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: vrtc: add RTC to ACPI DSDT
Clear Linux complains about not finding RTC as a PNP device:
platform rtc_cmos: registered platform RTC device (no PNP device found)
This is a port of Bhyve vRTC's user-space logic.
Tracked-On: #2176
Signed-off-by: Peter Fang <peter.fang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@... |
528,766 | 24.12.2018 23:29:11 | 28,800 | 40f6a9fdff735ff5c91fa93ec6de312cc4786959 | dm: allow PM1_RTC_EN to be written to PM1A
Clear Linux complains about not being able to write the bit to PM1A:
ACPI Error: Could not enable RealTimeClock event (20180531/evxfevnt-184) | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/arch/x86/pm.c",
"new_path": "devicemodel/arch/x86/pm.c",
"diff": "@@ -200,7 +200,7 @@ pm1_enable_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,\n* the global lock, but ACPI-CA whines profusely if it\n* can't set GBL_EN.\n*/\n- pm... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: allow PM1_RTC_EN to be written to PM1A
Clear Linux complains about not being able to write the bit to PM1A:
ACPI Error: Could not enable RealTimeClock event (20180531/evxfevnt-184)
Tracked-On: #2176
Signed-off-by: Peter Fang <peter.fang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Victo... |
528,654 | 28.12.2018 23:27:54 | -28,800 | 6f0edfc38df36f7d77ce385f2d96ab445b644ff2 | hv: coding style: use the defined data type __packed
1) Use __attribute__((packed)) instead of #pragma pack(1)
2) Use the defined data type __packed instead of __attribute__((packed)) | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/cpu.h",
"new_path": "hypervisor/include/arch/x86/cpu.h",
"diff": "@@ -235,7 +235,7 @@ extern uint64_t secondary_cpu_stack[1];\nstruct descriptor_table {\nuint16_t limit;\nuint64_t base;\n-} __attribute__((packed));\n+} __packed;\n/*... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: coding style: use the defined data type __packed
1) Use __attribute__((packed)) instead of #pragma pack(1)
2) Use the defined data type __packed instead of __attribute__((packed))
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 29.12.2018 00:37:48 | -28,800 | 860c444c552da2bb9877efcd548a1fc7ce29d4d7 | hv: coding style: add `const` qualifier for some function
Add `const` qualifier for lookup_address and find_vcpuid_entry. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -26,7 +26,8 @@ void destroy_ept(struct acrn_vm *vm)\nuint64_t local_gpa2hpa(struct acrn_vm *vm, uint64_t gpa, uint32_t *size)\n{\nuint64_t hpa = INVALID_HPA;\n- uint64_t *pgentry,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: coding style: add `const` qualifier for some function
Add `const` qualifier for lookup_address and find_vcpuid_entry.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,804 | 24.12.2018 21:27:04 | -28,800 | fde0bcc1cebf0e72ec6bf915d8252e8f3d6b585a | HV: disable vuart when dbg uart is disabled
vuart it used for SOS to output log to HV console,
so if dbg uart is disabled, it need be disabled too:
just unregister its PIO.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -149,14 +149,16 @@ int32_t create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)\nregister_pm1ab_handler(vm);\n}\n- /* Create virtual uart */\n+ /* Create v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: disable vuart when dbg uart is disabled
vuart it used for SOS to output log to HV console,
so if dbg uart is disabled, it need be disabled too:
just unregister its PIO.
Tracked-On: 2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 24.12.2018 21:41:31 | -28,800 | 537adaeb4617a91ea22de164c68c65251ab42409 | HV: cleanup CONFIG_COM_IRQ related code
move CONFIG_COM_IRQ code into vuart, because it is just
used for vuart.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -54,22 +54,6 @@ ptirq_lookup_entry_by_vpin(const struct acrn_vm *vm, uint8_t virt_pin, bool pic_\nreturn entry;\n}\n-#ifdef CONFIG_COM_IRQ\n-static bool ptdev_hv_owned_intx(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: cleanup CONFIG_COM_IRQ related code
move CONFIG_COM_IRQ code into vuart, because it is just
used for vuart.
Tracked-On: #2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 24.12.2018 22:05:49 | -28,800 | f4beaf501cec9097918d64d4a11e3e1beb835480 | HV: support vuart base & irq can be changed
add two static variables for COM_BASE & COM_IRQ, to
support them dynamically changed.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/vuart.c",
"new_path": "hypervisor/debug/vuart.c",
"diff": "#include \"uart16550.h\"\n+static uint8_t vuart_com_irq = CONFIG_COM_IRQ;\n+static uint16_t vuart_com_base = CONFIG_COM_BASE;\n#ifndef CONFIG_PARTITION_MODE\nstatic char vuart_rx_buf[R... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: support vuart base & irq can be changed
add two static variables for COM_BASE & COM_IRQ, to
support them dynamically changed.
Tracked-On: #2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 25.12.2018 10:06:37 | -28,800 | a5ca305cf62a41751fbbe0bebc41ac0d8b992601 | HV: add API to change vuart base & irq config
1. add an API to support vuart COM base and irq configured;
2. add the HV cmd to be parsed for vuart COM base & irq.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/uefi/cmdline.c",
"new_path": "hypervisor/bsp/uefi/cmdline.c",
"diff": "@@ -18,12 +18,19 @@ static const char * const cmd_list[] = {\n\"uart=disabled\", /* to disable uart */\n\"uart=port@\", /* like uart=port@0x3F8 */\n\"uart=bdf@\", /*like: uar... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add API to change vuart base & irq config
1. add an API to support vuart COM base and irq configured;
2. add the HV cmd to be parsed for vuart COM base & irq.
Tracked-On: #2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 26.12.2018 16:39:35 | -28,800 | 7ebc4877c8451050cbe16319f8c786138052bb11 | HV: refine cmdline code, move parts into dbg_cmd
move the debug related command handle into debug/dbg_cmd.c;
so release build will not include that.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/uefi/cmdline.c",
"new_path": "hypervisor/bsp/uefi/cmdline.c",
"diff": "#include <hypervisor.h>\n#include <multiboot.h>\n-#define MAX_PORT 0x10000 /* port 0 - 64K */\n-#define DEFAULT_UART_PORT 0x3F8\n-\n#define ACRN_DBG_PARSE 6\n-#define MAX_CMD... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: refine cmdline code, move parts into dbg_cmd
move the debug related command handle into debug/dbg_cmd.c;
so release build will not include that.
Tracked-On: #2170
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,772 | 29.12.2018 11:31:45 | 0 | 7a930d88331f35e4ecf4da17dd6d0ba9a07fbd3e | hv: virq: refine hypervisor/arch/x86/virq.c
The MISRA-C Standards suggests use brackets to clarify the precedence
order of logical conjunctions.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -131,7 +131,7 @@ static int32_t vcpu_inject_vlapic_int(struct acrn_vcpu *vcpu)\n* through the local APIC.\n*/\n- if (!(vector >= 16U && vector <= 255U)) {\n+ if (!((vector >= 16... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: virq: refine hypervisor/arch/x86/virq.c
The MISRA-C Standards suggests use brackets to clarify the precedence
order of logical conjunctions.
Tracked-On: #861
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,730 | 02.01.2019 20:05:44 | -28,800 | 04d9f52f68f48dbe6107e4d0350d991687b2c488 | update acrn-dm comment, remove the series of dot | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -164,7 +164,7 @@ usage(int code)\n\" --debugexit: enable debug exit function\\n\"\n\" --intr_monitor: enable interrupt storm monitor\\n\"\n\" --vtpm2: Virtual TPM2 args: sock_path=$PA... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | update acrn-dm comment, remove the series of dot
Tracked-On: #2036
Signed-off-by: Shuang Zheng shuang.zheng@intel.com |
528,776 | 21.12.2018 10:42:51 | -28,800 | 235eaf057d7e5d5b110b4db08fbc79d296cb6fb3 | HV: APICBASE_RESERVED definition is not used by any code. Just remove it
To meet MISRA standard, remove unused micro definition
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -45,7 +45,6 @@ static inline uint32_t prio(uint32_t x)\n#define VLAPIC_VERSION (16U)\n-#define APICBASE_RESERVED 0x000002ffU\n#define APICBASE_BSP 0x00000100UL\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: APICBASE_RESERVED definition is not used by any code. Just remove it
To meet MISRA standard, remove unused micro definition
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 21.12.2018 10:45:37 | -28,800 | 5a583fb87c856abb42ea640ba54fb1d101b9e36d | HV: move global variable into the scope of calling function
The static global variable apicv_apic_access_addr is used only by
vlapic_apicv_get_apic_access_addr(), to remove the warning by MISRA,
move it into function scope.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -77,9 +77,6 @@ static inline void vlapic_dump_irr(__unused const struct acrn_vlapic *vlapic, __\nstatic inline void vlapic_dump_isr(__unused const struct acrn_vl... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: move global variable into the scope of calling function
The static global variable apicv_apic_access_addr is used only by
vlapic_apicv_get_apic_access_addr(), to remove the warning by MISRA,
move it into function scope.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <ed... |
528,776 | 20.12.2018 12:15:32 | -28,800 | b4b9ac593aec1dc5e48937fc1d33173362f435e2 | HV: remove few return statement in while loop of copy_gva function
The coding style of multiple returns/exit in while loop is not MISRA
compatible. Remove the returns in while loop.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -391,33 +391,29 @@ static inline int32_t copy_gva(struct acrn_vcpu *vcpu, void *h_ptr_arg, uint64_t\n{\nvoid *h_ptr = h_ptr_arg;\nuint64_t gpa = 0UL;\n- int32_t re... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove few return statement in while loop of copy_gva function
The coding style of multiple returns/exit in while loop is not MISRA
compatible. Remove the returns in while loop.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 20.12.2018 12:22:31 | -28,800 | 63eecf084e3f85fbf980dff4c8c4ef80c21de6b7 | HV: remove multiple return statement in get_vcpu_paging_mode() routine
To meet MISRA, remove multiple return in get_vcpu_paging_mode() routine.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -47,23 +47,26 @@ uint64_t vcpumask2pcpumask(struct acrn_vm *vm, uint64_t vdmask)\nenum vm_paging_mode get_vcpu_paging_mode(struct acrn_vcpu *vcpu)\n{\nenum vm_cpu_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove multiple return statement in get_vcpu_paging_mode() routine
To meet MISRA, remove multiple return in get_vcpu_paging_mode() routine.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 20.12.2018 14:43:06 | -28,800 | 971eb84c20f7c03dff325dfc0ad2ab91ab3e777e | HV: add const qualifier for functions' argments in vlapic.c
If a argment is not changed in function, MISRA recommends to add const
qualifier for that argement.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -113,7 +113,7 @@ static uint16_t vm_apicid2vcpu_id(struct acrn_vm *vm, uint8_t lapicid)\nstruct acrn_vcpu *vcpu;\nforeach_vcpu(i, vm, vcpu) {\n- struct acrn_vlap... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add const qualifier for functions' argments in vlapic.c
If a argment is not changed in function, MISRA recommends to add const
qualifier for that argement.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 29.12.2018 10:45:49 | -28,800 | 2e01b4c8dcba6d833efc801e24e1db581b8e389c | HV: trival changes to meet MISRA
add for routines and bracks for condition checking in vlapic.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": "@@ -124,6 +124,9 @@ static uint16_t vm_apicid2vcpu_id(struct acrn_vm *vm, uint8_t lapicid)\nreturn get_pcpu_nums();\n}\n+/*\n+ * @pre vlapic != NULL\n+ */\nstatic u... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: trival changes to meet MISRA
add @pre for routines and bracks for condition checking in vlapic.c
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 20.12.2018 11:56:00 | -28,800 | 8e00180c9f1d70172229b911755bb7444524f19c | HV: Remove goto statement in guest.c
To meet MISRA, remove some goto statements in guest.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -78,30 +78,29 @@ static int32_t local_gva2gpa_common(struct acrn_vcpu *vcpu, const struct page_wa\nuint64_t index;\nuint32_t shift;\nvoid *base;\n- uint64_t entry;... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Remove goto statement in guest.c
To meet MISRA, remove some goto statements in guest.c
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 29.12.2018 11:09:54 | -28,800 | eaa0e307b756d64473fa46d39fc0f2c8b003f967 | HV: remove multiple exit/return in routines in the file of vlapic.c
To meet MISRA, remove few return in routines of vlapic.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -111,17 +111,23 @@ static uint16_t vm_apicid2vcpu_id(struct acrn_vm *vm, uint8_t lapicid)\n{\nuint16_t i;\nstruct acrn_vcpu *vcpu;\n+ uint16_t cpu_id = INVALID_C... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove multiple exit/return in routines in the file of vlapic.c
To meet MISRA, remove few return in routines of vlapic.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 21.12.2018 11:03:15 | -28,800 | 088439736102b0e7d4c67a921152a416d581c41e | HV: cycomatic complexity 20 in vlapic_icrlo_write_handler
MISRA compaint that the vlapic_icrlo_write_handler 's cyclomatic
complexity is greater than 20. Try to remove multiple returns/exits.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1229,6 +1229,7 @@ vlapic_icrlo_write_handler(struct acrn_vlapic *vlapic)\n{\nuint16_t vcpu_id;\nbool phys;\n+ int32_t ret = 0;\nuint64_t dmask = 0UL;\nuint32_t ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: cycomatic complexity 20 in vlapic_icrlo_write_handler
MISRA compaint that the vlapic_icrlo_write_handler 's cyclomatic
complexity is greater than 20. Try to remove multiple returns/exits.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 02.01.2019 15:22:27 | -28,800 | 7a04db7cd8cf754e25a2d2d7271b1acfcf7ac258 | HV: remove multiple exits in vlapic_set_intr_ready()
To meet MISRA, remove multiple return in the func.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -464,7 +464,7 @@ vlapic_esr_write_handler(struct acrn_vlapic *vlapic)\n* Returns 1 if the vcpu needs to be notified of the interrupt and 0 otherwise.\n* @pre vec... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove multiple exits in vlapic_set_intr_ready()
To meet MISRA, remove multiple return in the func.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 03.01.2019 12:32:18 | -28,800 | 9efbdc829d30759757b356d6d43c7a6ec0535578 | HV: Remove goto in vlapic_read()
remove goto statement in vlapic_read() routine
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1025,10 +1025,7 @@ vlapic_calcdest(struct acrn_vm *vm, uint64_t *dmask, uint32_t dest,\n* Broadcast in both logical and physical modes.\n*/\n*dmask = vm_active_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Remove goto in vlapic_read()
remove goto statement in vlapic_read() routine
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 03.01.2019 12:37:43 | -28,800 | e2c11c0c754ec15b8d1cd09d5f7cb933dbac3c10 | HV: remove multi returns in vlapic_set_apicbase
remove few calls to return statement in routines.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1767,26 +1767,23 @@ static int32_t\nvlapic_set_apicbase(struct acrn_vlapic *vlapic, uint64_t new)\n{\n+ int32_t ret = 0;\nuint64_t changed;\nchanged = vlapic->m... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove multi returns in vlapic_set_apicbase
remove few calls to return statement in routines.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 03.01.2019 12:41:39 | -28,800 | 8ed393a03dcff94be8cd47a032568d729dae4d31 | HV: remove multi-returns in few routine in guest.c
To meet MISRA, remove multi-returns in routines
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -263,8 +263,8 @@ int32_t gva2gpa(struct acrn_vcpu *vcpu, uint64_t gva, uint64_t *gpa,\nint32_t ret = 0;\nif ((gpa == NULL) || (err_code == NULL)) {\n- return -EINV... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove multi-returns in few routine in guest.c
To meet MISRA, remove multi-returns in routines
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,755 | 02.01.2019 13:38:57 | -28,800 | 01c8f546e05284fcd59d368c8f20d7e7d57f96cd | DM: xHCI: array bound checking before it is used
Array index of "vbdp_devs" may be out of bounds if
"i >= XHCI_MAX_VIRT_PORTS", so index checking is necessary.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -721,6 +721,9 @@ xhci_vbdp_thread(void *data)\nbreak;\n}\n+ if (i >= XHCI_MAX_VIRT_PORTS)\n+ continue;\n+\nj = pci_xhci_get_native_port_index_by_path(xdev,\n&xdev->vbdp_devs[i].pa... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: xHCI: array bound checking before it is used
Array index of "vbdp_devs" may be out of bounds if
"i >= XHCI_MAX_VIRT_PORTS", so index checking is necessary.
Tracked-On: #1252
Signed-off-by: Tianhua Sun <tianhuax.s.sun@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,772 | 04.01.2019 08:16:13 | -28,800 | 97cb7d906e3ecc58fb702a4e5b8ce1d112d6a054 | hv: virq: fix wrong coding style
hypervisor/arch/x86/virq.c missed a new line at:
if (bitmap_test_and_clear_lock(...)) { vioapic_update_tmr(vcpu);
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -402,7 +402,8 @@ int32_t acrn_handle_pending_request(struct acrn_vcpu *vcpu)\nflush_vpid_single(arch->vpid);\n}\n- if (bitmap_test_and_clear_lock(ACRN_REQUEST_TMR_UPDATE, pendin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: virq: fix wrong coding style
hypervisor/arch/x86/virq.c missed a new line at:
if (bitmap_test_and_clear_lock(...)) { vioapic_update_tmr(vcpu);
Tracked-On: #861
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,794 | 27.12.2018 16:34:17 | -28,800 | c572a9f503d3383b7b79517b0940fe6d05a28c65 | HV: code style change for sbl_seed_parse.c
remark unused MACRO;
remove goto;
make sure procedure has one exit point;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/sbl_seed_parse.c",
"new_path": "hypervisor/boot/sbl/sbl_seed_parse.c",
"diff": "#include <sbl_seed_parse.h>\n#define SEED_ENTRY_TYPE_SVNSEED 0x1U\n-#define SEED_ENTRY_TYPE_RPMBSEED 0x2U\n+/* #define SEED_ENTRY_TYPE_RPMBSEED 0x2U */\n-#defin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: code style change for sbl_seed_parse.c
- remark unused MACRO;
- remove goto;
- make sure procedure has one exit point;
Tracked-On: #861
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 27.12.2018 21:07:25 | -28,800 | dff6781293fb5ecd06211d82da361fc058619162 | HV: code style change for abl_seed_parse.c
remove goto;
make sure procedure has one exit point;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/abl_seed_parse.c",
"new_path": "hypervisor/boot/sbl/abl_seed_parse.c",
"diff": "@@ -30,16 +30,9 @@ static void parse_seed_list_abl(void *param_addr)\nuint32_t legacy_seed_index = 0U;\nstruct seed_info dseed_list[BOOTLOADER_SEED_MAX_ENTRIES]... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: code style change for abl_seed_parse.c
- remove goto;
- make sure procedure has one exit point;
Tracked-On: #861
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 27.12.2018 21:40:22 | -28,800 | 5c278cc57b91ed4c60c78dca0df4689028d40340 | HV: code style change for multiboot.c
to make sure procedure has one exit point;
add NULL pointer check;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/multiboot.c",
"new_path": "hypervisor/boot/sbl/multiboot.c",
"diff": "@@ -21,22 +21,19 @@ int32_t init_vm_boot_info(struct acrn_vm *vm)\n{\nstruct multiboot_module *mods = NULL;\nstruct multiboot_info *mbi = NULL;\n+ int32_t ret = -EINVAL;\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: code style change for multiboot.c
- to make sure procedure has one exit point;
- add NULL pointer check;
Tracked-On: #861
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 27.12.2018 22:02:26 | -28,800 | 351828d34be2065f72f5d35a96b2b980fb17a763 | HV: code style change for reloc.c
move MACRO of R_X86_64_RELATIVE into #ifdef CONFIG_RELOC block;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/reloc.c",
"new_path": "hypervisor/boot/reloc.c",
"diff": "#define DT_RELASZ 8 /* size of reloc table */\n#define DT_RELAENT 9 /* size of one entry */\n+#define R_X86_64_RELATIVE 8UL\n+\nstruct Elf64_Dyn {\nuint64_t d_tag;\nuint64_t d_ptr;\n@@ -... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: code style change for reloc.c
move MACRO of R_X86_64_RELATIVE into #ifdef CONFIG_RELOC block;
Tracked-On: #861
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 27.12.2018 23:30:24 | -28,800 | ef0ef6ba525b184750c2595edb76b017ce689cb4 | HV: code style change for acpi.c
rename biosacpi_search_rsdp() to found_rsdp();
to make sure procedure has one exit point;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/acpi.c",
"new_path": "hypervisor/boot/acpi.c",
"diff": "@@ -103,9 +103,9 @@ struct acpi_madt_local_apic {\nstatic void *global_rsdp;\nstatic struct acpi_table_rsdp*\n-biosacpi_search_rsdp(char *base, int32_t length)\n+found_rsdp(char *base, int... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: code style change for acpi.c
- rename biosacpi_search_rsdp() to found_rsdp();
- to make sure procedure has one exit point;
Tracked-On: #861
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 03.01.2019 10:18:52 | -28,800 | 7c4dd0d277bfd2be73f36f30813ad1202bd34053 | hv:Move pm state structure to pm.h
move structure 'cpu_state_info' from cpu_caps.h to host_pm.h
add get_cpu_pm_state_info() api | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu_state_tbl.c",
"new_path": "hypervisor/arch/x86/cpu_state_tbl.c",
"diff": "@@ -102,6 +102,8 @@ static const struct cpu_state_table {\n}\n};\n+static struct cpu_state_info cpu_pm_state_info;\n+\nstatic int32_t get_state_tbl_idx(const char... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Move pm state structure to pm.h
-- move structure 'cpu_state_info' from cpu_caps.h to host_pm.h
-- add get_cpu_pm_state_info() api
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 03.01.2019 10:24:21 | -28,800 | 09ff94fc49714298384f2149067cd3f60e03f9a4 | hv:Change structure boot_cpu_data to static
Change boot_cpu_data to static, only used in cpu_caps.c,
Add get_cpu_info() api, it will call this api instead of
boot_cpu_data except cpu_caps.c | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -163,7 +163,7 @@ void init_cpu_post(uint16_t pcpu_id)\npr_acrnlog(\"API version %u.%u\",\nHV_API_MAJOR_VERSION, HV_API_MINOR_VERSION);\n- pr_acrnlog(\"Detect processor: %s\", boot... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Change structure boot_cpu_data to static
-- Change boot_cpu_data to static, only used in cpu_caps.c,
-- Add get_cpu_info() api, it will call this api instead of
boot_cpu_data except cpu_caps.c
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@inte... |
528,651 | 04.01.2019 16:35:15 | -28,800 | e6d8ab2460c648c1f6c759945ad0f795ff9b0b06 | doc: update launch_uos.sh | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/launch_uos.sh",
"new_path": "doc/tutorials/launch_uos.sh",
"diff": "@@ -34,7 +34,7 @@ if [ ! -f \"/data/$5/$5.img\" ]; then\nfi\n#vm-name used to generate uos-mac address\n-mac=$(cat /sys/class/net/en*/address)\n+mac=$(cat /sys/class/net/e*/addre... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update launch_uos.sh |
528,651 | 04.01.2019 23:25:07 | -28,800 | 10566e01b9c2255c4a364cc955863a6bb4e2515a | doc: update the statement | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/create-up2-images.sh",
"new_path": "doc/tutorials/create-up2-images.sh",
"diff": "-#!/bin/bash\n+# Copyright (C) 2018 Intel Corporation.\n+# SPDX-License-Identifier: BSD-3-Clause\n+#!/bin/bash\nusage() {\necho \"Usage: $0 [options]\"\n- echo \"Th... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update the statement |
528,651 | 06.01.2019 10:13:27 | 0 | 7f00e26021fe8733ab52a293e3a84b5cdb12eb47 | doc: license header updated | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/create-up2-images.sh",
"new_path": "doc/tutorials/create-up2-images.sh",
"diff": "+#!/bin/bash\n+\n# Copyright (C) 2018 Intel Corporation.\n# SPDX-License-Identifier: BSD-3-Clause\n-#!/bin/bash\nusage() {\necho \"Usage: $0 [options]\"\n@@ -9,7 +1... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: license header updated |
528,651 | 07.01.2019 12:12:47 | -28,800 | fad44184a5f88788d17c4318ad85c1cb02f86e4a | doc: Descriptions about Dupont Wire used added | [
{
"change_type": "ADD",
"old_path": "doc/tutorials/images/up2_sbl_cables_connections.png",
"new_path": "doc/tutorials/images/up2_sbl_cables_connections.png",
"diff": "Binary files /dev/null and b/doc/tutorials/images/up2_sbl_cables_connections.png differ\n"
},
{
"change_type": "MODIFY",
... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: Descriptions about Dupont Wire used added |
528,747 | 07.01.2019 13:13:03 | 28,800 | 4c541ba18c6549ced36084380712c2ba1e6672c0 | doc: spell check and formatting
Fix misspellings missed during regular reviews, and remove trailing
white space and Windows \r at end of lines. | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/up2.rst",
"new_path": "doc/getting-started/up2.rst",
"diff": "@@ -82,7 +82,7 @@ UP2 serial port setting\nThe serial port (ttyS1) in the 40-pin HAT connector is located at ``serial PCI BDF 0:18.1``.\nYou can check this from the ``lspci`` out... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: spell check and formatting
Fix misspellings missed during regular reviews, and remove trailing
white space and Windows \r at end of lines.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,804 | 02.01.2019 16:23:01 | -28,800 | c00d959d43e1f9cf23c15838c58b7cae8f2350b2 | HV: separate const dmar table definition from sbl
const dmar table is used for sbl board, and it can be
a single/independable file.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -221,6 +221,7 @@ TEMPLATE_ACPI_INFO_HEADER := bsp/include/uefi/platform_acpi_info.h\nelse\nifeq ($(CONFIG_PLATFORM_SBL),y)\nC_SRCS += bsp/sbl/sbl.c\n+C_SRCS += bsp/sbl/const_dmar.c\nC_SRCS +=... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: separate const dmar table definition from sbl
const dmar table is used for sbl board, and it can be
a single/independable file.
Tracked-On: #1842
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,671 | 04.01.2019 16:14:43 | -28,800 | d2b03e8c33dae1dc4ada85ca7d7aad8076995a0e | dm:script: remove ioc related stuff from uos on UP2
UP2 don't have ioc, there is no need to simulate it. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/up2/launch_uos.sh",
"new_path": "devicemodel/samples/up2/launch_uos.sh",
"diff": "@@ -154,8 +154,6 @@ acrn-dm -A -m $mem_size -c $2$boot_GVT_option\"$GVT_args\" -s 0:0,hostbridge -s 1:\n$boot_cse_option \\\n$intr_storm_monitor \\\n$boot_ipu... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm:script: remove ioc related stuff from uos on UP2
UP2 don't have ioc, there is no need to simulate it.
Tracked-On: #1995
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,801 | 08.01.2019 08:47:51 | -28,800 | 272439d37f788c86d04c93ca40d4c0a5fe9b492e | hv: rename register_io_emulation_handler
This patch renames `register_io_emulation_handler` to
`register_pio_emulation_handler`.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/pm.c",
"new_path": "hypervisor/arch/x86/guest/pm.c",
"diff": "@@ -187,7 +187,7 @@ static void register_gas_io_handler(struct acrn_vm *vm, uint32_t pio_idx, const\ngas_io.base = (uint16_t)gas->address;\ngas_io.len = io_len[gas->access_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: rename register_io_emulation_handler
This patch renames `register_io_emulation_handler` to
`register_pio_emulation_handler`.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 08.01.2019 10:02:44 | -28,800 | 070a56dbc41a77cf1af1d98edf095c3900ca4033 | doc: rename register_io_emulation_handler
This is a follow-up patch in doc corresponding to the
changes in source code. | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hv-cpu-virt.rst",
"new_path": "doc/developer-guides/hld/hv-cpu-virt.rst",
"diff": "@@ -1104,7 +1104,7 @@ APIs to register its IO/MMIO range:\n* - **API**\n- **Description**\n- * - register_io_emulation_handler\n+ * - register_pio_emula... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: rename register_io_emulation_handler
This is a follow-up patch in doc corresponding to the
changes in source code.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,783 | 07.01.2019 11:39:15 | -28,800 | 7907fef59e6588306a6a5efd2a5b0800b3c9c8f1 | hv:Rename several APIs for vpic and vioapic
vpic:
vpic_set_irq --> vpic_set_irqline
vpic_get_irq_trigger --> vpic_get_irqline_trigger_mode
vioapic:
vioapic_set_irq_nolock --> vioapic_set_irqline_nolock
vioapic_set_irq --> vioapic_set_irqline_lock
vioapic_send_intr --> vioapic_generate_intr | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hv-virt-interrupt.rst",
"new_path": "doc/developer-guides/hld/hv-virt-interrupt.rst",
"diff": "@@ -144,10 +144,10 @@ vLAPIC APIs.\n**Supported APIs:**\n-.. doxygenfunction:: vioapic_set_irq\n+.. doxygenfunction:: vioapic_set_irqline_lo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Rename several APIs for vpic and vioapic
vpic:
vpic_set_irq --> vpic_set_irqline
vpic_get_irq_trigger --> vpic_get_irqline_trigger_mode
vioapic:
vioapic_set_irq_nolock --> vioapic_set_irqline_nolock
vioapic_set_irq --> vioapic_set_irqline_lock
vioapic_send_intr --> vioapic_generat... |
528,801 | 08.01.2019 09:10:07 | -28,800 | 2756ec740dbaecf8f59dc6b142ef20efd70fc25c | hv: move `dm/hw/pci.c` to `hw/pci.c`
This patch moves `dm/hw/pci.c` to `hw/pci.c`
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -195,9 +195,10 @@ ifdef STACK_PROTECTOR\nC_SRCS += common/stack_protector.c\nendif\n+C_SRCS += hw/pci.c\n+\nC_SRCS += dm/vpic.c\nC_SRCS += dm/vioapic.c\n-C_SRCS += dm/hw/pci.c\nC_SRCS += dm/v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move `dm/hw/pci.c` to `hw/pci.c`
This patch moves `dm/hw/pci.c` to `hw/pci.c`
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 08.01.2019 09:32:24 | -28,800 | 2c6b43070be974c24b992d25d35ed4827ce954b3 | hv: code clean-up in `hw/pci.c`
* move `pci_pdev_calc_address` out of the spinlock in
`pci_pdev_read_cfg`
* remove the spaces before tabs
* make the line not over 120 characters
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/hw/pci.c",
"new_path": "hypervisor/hw/pci.c",
"diff": "@@ -49,10 +49,10 @@ uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes)\nuint32_t addr;\nuint32_t val;\n- spinlock_obtain(&pci_device_lock);\n-\naddr = pci_pdev_calc_a... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: code clean-up in `hw/pci.c`
* move `pci_pdev_calc_address` out of the spinlock in
`pci_pdev_read_cfg`
* remove the spaces before tabs
* make the line not over 120 characters
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,676 | 08.01.2019 09:45:27 | -28,800 | e966828cd283470d92482c0ffbe847453db016be | hv: clean the "Procedure has more than one exit point".
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format.
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": "@@ -271,50 +271,75 @@ static void encode_vmcs_seg_desc(enum cpu_reg_name seg,\n**/\nstatic uint32_t get_vmcs_field(enum cpu_reg_name ident)\n{\n+ uint32_t r... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean the "Procedure has more than one exit point".
Misra C requires Function must have only 1 return entry.
Fixed it by use "if ... else ..." format.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 08.01.2019 22:51:23 | -28,800 | 087fbfe13607a79a338c19adccdc9026495a335d | hv: coding style: remove basic type declaration use
Typedefs that indicate size and signedness should be used in place of
the basic numerical types | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/cpu_caps.h",
"new_path": "hypervisor/include/arch/x86/cpu_caps.h",
"diff": "@@ -47,7 +47,7 @@ void init_cpu_capabilities(void);\nvoid init_cpu_model_name(void);\nbool check_cpu_security_cap(void);\nvoid cpu_l1d_flush(void);\n-int de... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: coding style: remove basic type declaration use
Typedefs that indicate size and signedness should be used in place of
the basic numerical types
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 09.01.2019 01:08:38 | -28,800 | 1bc90293be1275f7a1d054a35f18de117f2d6487 | hv: coding style: refine functions under dm/ to one exit point
Refine vioapic_indirect_write and vmsix_table_rw to one exit point. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vioapic.c",
"new_path": "hypervisor/dm/vioapic.c",
"diff": "@@ -275,9 +275,7 @@ static inline bool vioapic_need_intr(const struct acrn_vioapic *vioapic, uint16_\n* Due to the race between vcpus, ensure to do spinlock_obtain(&(vioapic->mtx))\n* & ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: coding style: refine functions under dm/ to one exit point
Refine vioapic_indirect_write and vmsix_table_rw to one exit point.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,676 | 08.01.2019 10:03:46 | -28,800 | 625e51d18a0a27387b7ceb2c7f3b78d8e1288500 | fix "goto detected:exception_inject"
V1->V2:
rename is_exception_inject to has_exception.
V2->V3:
remove the else statement and add new if statement to check
has_exception.
Misra C requires not allowed to use goto.
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": "@@ -918,58 +918,57 @@ static void get_gva_si_nocheck(const struct acrn_vcpu *vcpu, uint8_t addrsize,\nstatic int32_t get_gva_di_check(struct acrn_vcpu *vcpu... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | fix "goto detected:exception_inject"
V1->V2:
rename is_exception_inject to has_exception.
V2->V3:
remove the else statement and add new if statement to check
has_exception.
Misra C requires not allowed to use goto.
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <ed... |
528,747 | 08.01.2019 11:31:01 | 28,800 | 7f9779b736ea8670f61df949e0e068a067ec5252 | doc: add skylake NUC w/GPU passthrough doc
Document a community reference release for the Skylake NUC with GPU
passthrough as a one-time snapshot release, not supported or
maintained. Includes a tar patch file. | [
{
"change_type": "ADD",
"old_path": "doc/static/downloads/skl-patches-for-acrn.tar",
"new_path": "doc/static/downloads/skl-patches-for-acrn.tar",
"diff": "Binary files /dev/null and b/doc/static/downloads/skl-patches-for-acrn.tar differ\n"
}
] | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add skylake NUC w/GPU passthrough doc
Document a community reference release for the Skylake NUC with GPU
passthrough as a one-time snapshot release, not supported or
maintained. Includes a tar patch file.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,728 | 09.01.2019 09:55:19 | -3,600 | 80cdf7cd82cc9bb6c0a6831cc38d21bc1ab8b32f | Documentation: fix highlights in launch_uos.sh script
The couple of lines highlighted in the launch_uos.sh script are off
since the latest modifications made to that script. Fix them both
to highlight the correct script lines that require attention. | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -333,7 +333,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 | Documentation: fix highlights in launch_uos.sh script
The couple of lines highlighted in the launch_uos.sh script are off
since the latest modifications made to that script. Fix them both
to highlight the correct script lines that require attention.
Tracked-On: #2270
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancu... |
528,747 | 09.01.2019 10:43:51 | 28,800 | 158ba62c339fe0563c467b7c8516c6e9ded0964c | doc: update SKL NUC patch download instructions
Include a line of script that download and untars the patch files | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/skl-nuc.rst",
"new_path": "doc/tutorials/skl-nuc.rst",
"diff": "@@ -60,7 +60,7 @@ Please follow the :ref:`getting-started-apl-nuc`, with the following changes:\n$ git clone https://github.com/projectacrn/acrn-hypervisor\n$ cd acrn-hypervisor\n$ g... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update SKL NUC patch download instructions
Include a line of script that download and untars the patch files
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,730 | 03.01.2019 19:15:28 | -28,800 | 79f40a569b0dd394871b31a288400ee5fe24228d | Update and complete `acrn-dm` parameters description
Update and complete `acrn-dm` parameters description in the user guide and HLD | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -131,27 +131,31 @@ static void\nusage(int code)\n{\nfprintf(stderr,\n- \"Usage: %s [-hAEWY] [-c vcpus] [-l <lpc>]\\n\"\n- \" %*s [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] \\n\"\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Update and complete `acrn-dm` parameters description
Update and complete `acrn-dm` parameters description in the user guide and HLD
Tracked-On: #2036
Signed-off-by: Shuang Zheng shuang.zheng@intel.com |
528,747 | 09.01.2019 16:19:05 | 28,800 | 5c24f8bb668e524e8ec1a8b9c0cc73d3f073f663 | doc: tweak dm-parameter doc
Remove trailing blanks, and change one last reviewer comment. | [
{
"change_type": "MODIFY",
"old_path": "doc/user-guides/acrn-dm-parameters.rst",
"new_path": "doc/user-guides/acrn-dm-parameters.rst",
"diff": "@@ -275,7 +275,7 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:\n* - :kbd:`--virtio_poll <poll_interval>`\n- Enable virtio ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: tweak dm-parameter doc
Remove trailing blanks, and change one last reviewer comment.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,654 | 09.01.2019 07:47:35 | -28,800 | 40c5139ea38922154804eb66a19e4ba80ce736d5 | hv: inst_emul: clean the "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -426,38 +426,40 @@ static void get_guest_paging_info(struct acrn_vcpu *vcpu, struct instr_emul_ctxt\nstatic int32_t vie_canonical_check(enum vm_cpu_mode ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: inst_emul: clean the "Procedure has more than one exit point"
Misra C requires Function must have only 1 return entry.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,788 | 09.01.2019 05:02:46 | 0 | e3b33a9871bba5eed5ad6271971378761e3f2f68 | script: remove DP-x:d parameters for UP2 board
There's a DP port on UP2 board, so we cannot add video=DP-x:d paramter,
otherwise, DP monitors will not be able to be detected on UP2 boards. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/up2/sos_bootargs_debug.txt",
"new_path": "devicemodel/samples/up2/sos_bootargs_debug.txt",
"diff": "@@ -11,8 +11,6 @@ i915.avail_planes_per_pipe=0x01010F\ni915.domain_plane_owners=0x011111110000\ni915.enable_gvt=1\ni915.enable_guc=0x02\n-vi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | script: remove DP-x:d parameters for UP2 board
There's a DP port on UP2 board, so we cannot add video=DP-x:d paramter,
otherwise, DP monitors will not be able to be detected on UP2 boards.
Tracked-On: #2268
Signed-off-by: Min He <min.he@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,646 | 07.01.2019 16:04:09 | -28,800 | 156ea70821bc5ae04bf57c1dd99aae68f53ac223 | tools: acrn-crashlog: Reboot system to cold after collecting reserve log
After panic, kernel will do warm boot to reserve memory for log collecting.
Need to cold reboot system as the original behaviour.
Acked-by: Chen, Gang | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/acrnprobe/channels.c",
"new_path": "tools/acrn-crashlog/acrnprobe/channels.c",
"diff": "@@ -111,10 +111,6 @@ static void channel_oneshot(struct channel_t *cnl)\nif (!is_boot_id_changed())\nreturn;\n- e = create_event(REBOOT, cname, NULL, 0,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-crashlog: Reboot system to cold after collecting reserve log
After panic, kernel will do warm boot to reserve memory for log collecting.
Need to cold reboot system as the original behaviour.
Tracked-On:#1024
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Acked-by: Chen, Gang <gang.c.chen@intel.com> |
528,646 | 08.01.2019 16:22:17 | -28,800 | d5b578fd8499dcf1568f88fa267188d3446e9bb7 | tools: acrn-crashlog: Limit the log size of kmsg
Dmesg collects too much log when kernel meets log storm.
This patch reads kernel log from "/dev/kmsg" intead of dmesg and limits
the generated log size.
Acked-by: Chen, Gang | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/acrnprobe/include/load_conf.h",
"new_path": "tools/acrn-crashlog/acrnprobe/include/load_conf.h",
"diff": "@@ -57,6 +57,8 @@ struct log_t {\nsize_t path_len;\nconst char *lines;\nsize_t lines_len;\n+ const char *sizelimit;\n+ size_t sizelimi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-crashlog: Limit the log size of kmsg
Dmesg collects too much log when kernel meets log storm.
This patch reads kernel log from "/dev/kmsg" intead of dmesg and limits
the generated log size.
Tracked-On: #1024
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: Zhi Jin <zhi.jin@intel.com>
Acked-by:... |
528,652 | 09.01.2019 10:30:06 | 28,800 | 10db11b00a08604c778e9f8bab2a98901c2851cc | hv: emulate IA32_FEATURE_CONTROL MSR
All features controlled by IA32_FEATURE_CONTROL are disabled from guests,
so set the Lock bit to prevent it from writing by guests.
Also hide the MSR_IA32_FEATURE_CONTROL_VMX_NO_SMX bit from guest.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmsr.c",
"new_path": "hypervisor/arch/x86/guest/vmsr.c",
"diff": "@@ -32,7 +32,8 @@ static const uint32_t emulated_guest_msrs[NUM_GUEST_MSRS] = {\nMSR_IA32_BIOS_SIGN_ID,\nMSR_IA32_TIME_STAMP_COUNTER,\nMSR_IA32_APIC_BASE,\n- MSR_IA32_P... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: emulate IA32_FEATURE_CONTROL MSR
All features controlled by IA32_FEATURE_CONTROL are disabled from guests,
so set the Lock bit to prevent it from writing by guests.
Also hide the MSR_IA32_FEATURE_CONTROL_VMX_NO_SMX bit from guest.
Tracked-On: #1867
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie D... |
528,783 | 10.01.2019 10:43:51 | -28,800 | 196912fb6d0c2749e455235235bbb2a6efc3e816 | hv: ioapic: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t for interrupt pin
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ioapic.c",
"new_path": "hypervisor/arch/x86/ioapic.c",
"diff": "@@ -27,7 +27,7 @@ static union ioapic_rte saved_rte[NR_IOAPICS][IOAPIC_MAX_PIN];\n* the irq to ioapic pin mapping should extract from ACPI MADT table\n* hardcoded here\n*/\n-st... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ioapic: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t for interrupt pin
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 09.01.2019 21:13:46 | -28,800 | 50deda8819b0abe048720cea4b46b2d908aee4b3 | hv: vpic: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t
Remove some typecast
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpic.c",
"new_path": "hypervisor/dm/vpic.c",
"diff": "#define ACRN_DBG_PIC 6U\n-static void vpic_set_pinstate(struct acrn_vpic *vpic, uint8_t pin, uint8_t level);\n+static void vpic_set_pinstate(struct acrn_vpic *vpic, uint32_t pin, uint8_t level... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vpic: Change interrupt pin to uint32_t
-- Change the type from uint8_t to uint32_t
-- Remove some typecast
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.01.2019 10:47:15 | -28,800 | 87afe65f860a7eef9ea945f8ab110ad3236b2771 | hv: vioapici: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t
Remove some typecast
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vioapic.c",
"new_path": "hypervisor/dm/vioapic.c",
"diff": "@@ -78,25 +78,24 @@ vioapic_generate_intr(struct acrn_vioapic *vioapic, uint32_t pin)\n* @pre pin < vioapic_pincount(vm)\n*/\nstatic void\n-vioapic_set_pinstate(struct acrn_vioapic *vioa... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapici: Change interrupt pin to uint32_t
-- Change the type from uint8_t to uint32_t
-- Remove some typecast
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.01.2019 10:57:49 | -28,800 | 49166fc3ac4a80fa85ae33398c27e248dc11e40a | hv: passthrough: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t
Remove some typecast
Change union source_id
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -42,7 +42,7 @@ ptirq_lookup_entry_by_sid(uint32_t intr_type,\n}\nstatic inline struct ptirq_remapping_info *\n-ptirq_lookup_entry_by_vpin(const struct acrn_vm *vm, uint8_t v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: passthrough: Change interrupt pin to uint32_t
-- Change the type from uint8_t to uint32_t
-- Remove some typecast
-- Change union source_id
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.01.2019 11:15:11 | -28,800 | 7725fe3b503a890c36565a7f448eff12b9616840 | hv: shell & vuart: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t for shell and vuart
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "@@ -906,7 +906,7 @@ static int32_t shell_show_cpu_int(__unused int32_t argc, __unused char **argv)\n#define PTDEV_INVALID_PIN 0xffU\nstatic void get_entry_info(const struct ptirq_remap... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: shell & vuart: Change interrupt pin to uint32_t
Change the type from uint8_t to uint32_t for shell and vuart
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.01.2019 17:03:34 | -28,800 | 1fc10d514cf882d52f6240f1eb44cf136f9f38de | hv:Unify the MACRO name for invalid interrupt pin
There are the following definitions in hypervisor,
define IOAPIC_INVALID_PIN 0xffU
define VPIC_INVALID_PIN 0xffU
define PTDEV_INVALID_PIN 0xffU
this patch unify them to:
define INVALID_INTERRUPT_PIN 0xffffffffU | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ioapic.c",
"new_path": "hypervisor/arch/x86/ioapic.c",
"diff": "#include <ioapic.h>\n#define IOAPIC_MAX_PIN 240U\n-#define IOAPIC_INVALID_PIN 0xffU\n/*\n* IOAPIC_MAX_LINES is architecturally defined.\n@@ -86,7 +85,7 @@ static const uint32_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Unify the MACRO name for invalid interrupt pin
There are the following definitions in hypervisor,
define IOAPIC_INVALID_PIN 0xffU
define VPIC_INVALID_PIN 0xffU
define PTDEV_INVALID_PIN 0xffU
this patch unify them to:
define INVALID_INTERRUPT_PIN 0xffffffffU
Tracked-On: #861
Signed-off-b... |
528,651 | 09.01.2019 22:37:35 | -28,800 | f0f943bd9e226c41aae3730e253a70e2ab925d25 | doc: Update the steps for generating 'partition_desc.bin' | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "doc/tutorials/gpt_ini2bin.py",
"diff": "+#!/usr/bin/env python\n+\n+# Copyright (C) 2018 Intel Corporation.\n+# SPDX-License-Identifier: BSD-3-Clause\n+\n+import ConfigParser\n+import uuid\n+import struct\n+import sys\n+\n+type_2_guid = {\n+# of... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: Update the steps for generating 'partition_desc.bin' |
528,651 | 10.01.2019 09:35:03 | -28,800 | 6d306c30d167a1cf9ddad2e709df7744b2eb8782 | doc: modify the directories of files needed | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/using_sbl_on_up2.rst",
"new_path": "doc/tutorials/using_sbl_on_up2.rst",
"diff": "@@ -112,10 +112,14 @@ Build SOS and LaaG image:\n$ sudo -s\n# ./acrn-hypervisor/devicemodel/samples/up2/create-up2-images.sh --images-type all \\\n- --clearlinux-ve... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: modify the directories of files needed |
528,651 | 10.01.2019 11:06:38 | -28,800 | 3bb791a633dcb4c3dbde3402ba7c353f56d74a9d | doc: add 'checkout to release v0.5' | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/using_sbl_on_up2.rst",
"new_path": "doc/tutorials/using_sbl_on_up2.rst",
"diff": "@@ -99,12 +99,18 @@ An example of the configuration file ``uos.json``:\nthe \"Version\" argument, ``\"Version\": 26000`` instead\nof ``\"Version\": 27050`` for exam... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add 'checkout to release v0.5' |
528,651 | 10.01.2019 11:15:37 | -28,800 | 623a91e58f5b3692aa65910aaecada799638d1a7 | doc: update the statement of "tag" | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/using_sbl_on_up2.rst",
"new_path": "doc/tutorials/using_sbl_on_up2.rst",
"diff": "@@ -110,7 +110,7 @@ Clone the source code of ``acrn-hypervisor`` for building and use\n$ git checkout v0.5\n.. note::\n- You can switch to other release with the co... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update the statement of "tag" |
528,747 | 10.01.2019 17:12:27 | 28,800 | 16667e4c78a6969eddb170c848bcfd22bbe5819d | doc: add menu option for 0.5 docs
Add option in side-bar menu for 0.5 doc version | [
{
"change_type": "MODIFY",
"old_path": "doc/conf.py",
"new_path": "doc/conf.py",
"diff": "@@ -189,6 +189,7 @@ else:\nhtml_context = {\n'current_version': current_version,\n'versions': ( (\"latest\", \"/latest/\"),\n+ (\"0.5\", \"/0.5/\"),\n(\"0.4\", \"/0.4/\"),\n(\"0.3\", \"/0.3/\"),\n(\"0.2\", \"/0... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add menu option for 0.5 docs
Add option in side-bar menu for 0.5 doc version
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,756 | 09.01.2019 09:35:14 | -28,800 | 1049053e2e18550d2435e773772147c4677f747a | IOC mediator: fix the issue of abnormally missing tx package
The issue will result in the loss of wakeup reason and signal
data, because the CBC header was not added when generating the
tx package.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc.c",
"new_path": "devicemodel/hw/platform/ioc.c",
"diff": "@@ -1166,6 +1166,7 @@ ioc_build_request(struct ioc_dev *ioc, int32_t link_len, int32_t srv_len)\n}\nreq->srv_len = srv_len;\nreq->link_len = link_len;\n+ req->rtype = CBC_REQ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: fix the issue of abnormally missing tx package
The issue will result in the loss of wakeup reason and signal
data, because the CBC header was not added when generating the
tx package.
Tracked-On: #2283
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,801 | 10.01.2019 15:09:42 | -28,800 | e2971ebc98d89d71efaef6da4fbb4023c46e1308 | hv: vlapic: code clean-up
* rename `vlapic_set_intr_ready` to `vlapic_accept_intr`
* replace calling of `vlapic_intr_edge` with `vlapic_set_intr`
* remove `vlapic_intr_level` and `vlapic_intr_edge`
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hv-virt-interrupt.rst",
"new_path": "doc/developer-guides/hld/hv-virt-interrupt.rst",
"diff": "@@ -94,12 +94,6 @@ an interrupt, for example:\nThese APIs will finish by making a request for *ACRN_REQUEST_EVENT.*\n-.. doxygenfunction:: v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vlapic: code clean-up
* rename `vlapic_set_intr_ready` to `vlapic_accept_intr`
* replace calling of `vlapic_intr_edge` with `vlapic_set_intr`
* remove `vlapic_intr_level` and `vlapic_intr_edge`
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,796 | 08.01.2019 10:41:54 | 28,800 | f574d5926b7ff37d39a4ee7a8d4c65292b19bf5f | profiling: code cleanup
This is the profiling code cleanup to avoid type conversion
and align tab/space in data structure definition
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/profiling.c",
"new_path": "hypervisor/debug/profiling.c",
"diff": "@@ -616,7 +616,7 @@ static void profiling_pmi_handler(uint32_t irq, __unused void *data)\n((uint64_t)get_cpu_var(profiling_info.vm_info).external_vector\n== VECTOR_PMI)) {\npsa... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | profiling: code cleanup
This is the profiling code cleanup to avoid type conversion
and align tab/space in data structure definition
Tracked-On: #2257
Signed-off-by: Min Lim <min.yeol.lim@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 07.01.2019 09:55:45 | -28,800 | 8ad48ff488b1eebd18133369fd92d6471870d8bc | HV: refine vmptable for partition mode
Merge separated mptable.c of BOARDs to unified vmptable.c;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -202,7 +202,7 @@ C_SRCS += dm/vioapic.c\nC_SRCS += dm/vpci/core.c\nC_SRCS += dm/vpci/vpci.c\nifeq ($(CONFIG_PARTITION_MODE),y)\n-C_SRCS += partition/$(CONFIG_BOARD)/mptable.c\n+C_SRCS += dm/v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: refine vmptable for partition mode
Merge separated mptable.c of BOARDs to unified vmptable.c;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 09.01.2019 12:51:14 | -28,800 | 404fd9c93500ec573f6319fc64b2b27f18b94424 | HV: rename cb2_dnv to dnv_cb2
This will be consistent with naming of apl-mrb/kbl-nuc ...
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -19,7 +19,7 @@ endif\nundefine PLATFORM\nifndef BOARD\n-$(error BOARD must be set (apl-mrb, apl-nuc, cb2_dnv, nuc6cayh)\n+$(error BOARD must be set (apl-mrb, apl-nuc, dnv-cb2, nuc6cayh)\nendif\nifeq ($(BOARD),apl-... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: rename cb2_dnv to dnv_cb2
This will be consistent with naming of apl-mrb/kbl-nuc ...
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,651 | 10.01.2019 17:26:21 | -28,800 | 1e1db99753149ac1270a43ea92f574e2b90641e8 | doc: supported KBL NUC added | [
{
"change_type": "MODIFY",
"old_path": "doc/hardware.rst",
"new_path": "doc/hardware.rst",
"diff": "@@ -14,7 +14,7 @@ Intel Apollo Lake NUC\n* `Intel NUC Kit NUC6CAYH Reference\n<https://www.intel.com/content/www/us/en/products/boards-kits/nuc/kits/nuc6cayh.html>`_\n-* Intel |reg| Celeron |reg| Proc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: supported KBL NUC added |
528,676 | 11.01.2019 10:01:14 | -28,800 | 11f0f72627b4f65b24fdca3b4beaa72c79f60113 | hv:fix violations
fix
1."Value is not of appropriate type."
2."Function prototype/defn param type mismatch"
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/timer.c",
"new_path": "hypervisor/arch/x86/timer.c",
"diff": "@@ -133,7 +133,7 @@ static void timer_softirq(uint16_t pcpu_id)\nstruct per_cpu_timers *cpu_timer;\nstruct hv_timer *timer;\nstruct list_head *pos, *n;\n- int32_t tries = MAX_TIM... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fix violations
fix
1."Value is not of appropriate type."
2."Function prototype/defn param type mismatch"
Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,795 | 08.01.2019 16:16:02 | -28,800 | 0055462237bd8d3313254c0b547e3dff095b5158 | hv: fix MISRAC violations for crypto lib
-Remove upper case
-Modify/fix code style violations
-fix value need U suffix
-Assignment operation in expression
-remove function like macros
v1->v2 fix assignment operation in expression
v2->v3 fix function like macros
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/lib/crypto/mbedtls/md.c",
"new_path": "hypervisor/lib/crypto/mbedtls/md.c",
"diff": "@@ -112,8 +112,8 @@ int32_t mbedtls_md_hmac_starts(mbedtls_md_context_t *ctx, const uint8_t *key, si\n(void) memset(opad, 0x5CU, ctx->md_info->block_size);\nfor (i ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix MISRAC violations for crypto lib
-Remove upper case
-Modify/fix code style violations
-fix value need U suffix
-Assignment operation in expression
-remove function like macros
v1->v2 fix assignment operation in expression
v2->v3 fix function like macros
Tracked-On: #861
Signed-off-by: Chen Gang G <gan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.