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,747
15.10.2018 12:39:30
25,200
e7b63aec9d8033dc3034920500ecf1d46e2d781d
doc: add static core partitioning doc Update HLD with the static core partitioning doc
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/hld/hld-hypervisor.rst", "new_path": "doc/developer-guides/hld/hld-hypervisor.rst", "diff": "@@ -7,5 +7,6 @@ Hypervisor high-level design\n.. toctree::\n:maxdepth: 1\n+ static-core-hld\nMemory management <memmgt-hld>\nInterrupt management ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add static core partitioning doc Update HLD with the static core partitioning doc Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,647
12.10.2018 15:37:16
-28,800
f582757dd47de764eabf44c22477d616c5ecb0e2
tools: acrn-manager: fix fd leaking close dir to avoid fd leaking.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrn_mngr.c", "new_path": "tools/acrn-manager/acrn_mngr.c", "diff": "@@ -484,7 +484,6 @@ static int connect_to_server(const char *name)\nif ((ret >= 0) && (ret < strlen(s_name)))\nprintf(\"WARN: %s is truncated\\n\", s_name);\n- closedir(dir...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: fix fd leaking close dir to avoid fd leaking. Tracked-On: #1477 Signed-off-by: Tao, Yuhong <yuhong.tao@intel.com> Signed-off-by: Yan, Like <like.yan@intel.com>
528,731
15.10.2018 17:09:21
-28,800
19e0bed593a9e090e3da9bc9ceb7b9c0499951dd
script: re-enable audio passthru This reverts partial of commit: "script: workarounds for UOS of 4.19-rc kernel", since our fixing patch for kernel crash when audio passthru is ready.
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "new_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "diff": "@@ -298,12 +298,6 @@ else\nGVT_args=''\nfi\n-if [ \"$kernel_version\" = \"4.19\" ]; then\n- audio_option=''\n-else\n- audio_option='-s 14,passthru,0/e...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
script: re-enable audio passthru This reverts partial of commit: 9bf5aafe "script: workarounds for UOS of 4.19-rc kernel", since our fixing patch for kernel crash when audio passthru is ready. Tracked-On:#1461 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
528,676
15.10.2018 11:31:12
-28,800
c6c1e42b794171ef77a8d381b3fea12b14d6e5a7
HV:fix 'missing for discarded return value' violations Return value should be checked,fix it by add "void" when the function return value is not used. V1->V2: replace printf with pr_warn. V2->V3: change the commit to make read easily. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/ucode.c", "new_path": "hypervisor/arch/x86/guest/ucode.c", "diff": "@@ -71,7 +71,7 @@ void acrn_update_ucode(struct vcpu *vcpu, uint64_t v)\nmsr_write(MSR_IA32_BIOS_UPDT_TRIG,\n(uint64_t)ucode_ptr + sizeof(struct ucode_header));\n- ge...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fix 'missing for discarded return value' violations Return value should be checked,fix it by add "void" when the function return value is not used. V1->V2: replace printf with pr_warn. V2->V3: change the commit to make read easily. Tracked-On:#861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Revi...
528,733
16.10.2018 09:22:46
-28,800
eb328d78eae43b7c897d0fa83354a8ddaf8f8d53
hv: retain rip if the fault is injected to guest According to SDM 6.5 exception classification, if the fault happens, the CPU will return to the faulting instruction. So we shouldn't change rip to the next instruction if inject fault to guest. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/virq.c", "new_path": "hypervisor/arch/x86/virq.c", "diff": "@@ -261,6 +261,9 @@ static void vcpu_inject_exception(struct vcpu *vcpu, uint32_t vector)\n(exception_type[vector] << 8U) | (vector & 0xFFU));\nvcpu->arch_vcpu.exception_info.excep...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: retain rip if the fault is injected to guest According to SDM 6.5 exception classification, if the fault happens, the CPU will return to the faulting instruction. So we shouldn't change rip to the next instruction if inject fault to guest. Tracked-On: #1473 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked...
528,768
17.10.2018 19:15:05
-28,800
102f5a01414fb1fa06bacd576f4800cca87d3fca
hv: fix potential buffer overflow in vioapic.c & vioapic_need_intr(), add checking input value range for 'pin'. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/dm/vioapic.c", "new_path": "hypervisor/dm/vioapic.c", "diff": "@@ -85,8 +85,13 @@ static void\nvioapic_set_pinstate(struct acrn_vioapic *vioapic, uint16_t pin, uint32_t level)\n{\nuint32_t old_lvl;\n- union ioapic_rte rte = vioapic->rtbl[pin];\n+ un...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix potential buffer overflow in vioapic.c @vioapic_set_pinstate() & vioapic_need_intr(), add checking input value range for 'pin'. Tracked-On: #1479 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,786
17.10.2018 12:35:50
-28,800
a98dd9e3fe7270de1b3e4e0667dac97c3bbe8676
HV: trusty: set cse_svn when derive dvseed for trusty Bugfix: need to set cse_svn when derive dvseed for trusty.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "@@ -351,6 +351,7 @@ static bool setup_trusty_info(struct vcpu *vcpu,\npr_err(\"%s: derive dvseed failed!\", __func__);\nreturn false;\n}\n+ key_info->dseed_list[i].cse_svn = g_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: trusty: set cse_svn when derive dvseed for trusty Bugfix: need to set cse_svn when derive dvseed for trusty. Signed-off-by: Qi Yadong <yadong.qi@intel.com>
528,786
08.10.2018 15:19:07
-28,800
d9df6e93f35dcab8b6b173845754fc8b2ef548fe
HV: parse seed from ABL ABL pass seed_lists to HV through different interface/structures. So, in this patch, add interface to retrieve seed from ABL and refactor the seed parsing logic. Acked-by: Zhu Bing
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -193,7 +193,8 @@ C_SRCS += bsp/$(CONFIG_PLATFORM)/cmdline.c\nelse\nifeq ($(CONFIG_PLATFORM), sbl)\nC_SRCS += boot/sbl/multiboot.c\n-C_SRCS += boot/sbl/hob_parse.c\n+C_SRCS += boot/sbl/sbl_see...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: parse seed from ABL ABL pass seed_lists to HV through different interface/structures. So, in this patch, add interface to retrieve seed from ABL and refactor the seed parsing logic. Tracked-On: #1488 Signed-off-by: Qi Yadong <yadong.qi@intel.com> Acked-by: Zhu Bing <bing.zhu@intel.com>
528,794
12.10.2018 15:42:59
-28,800
0e897c0a6a8646401ddcc1927bb3e38eaa2e0e89
DM: use acrn_timer api to emulate rtc Current RTC emulation is based on sigevent mechanism, replace with acrn_timer API which based on timerfd/epoll mechanism to avoid potential resource accessing conflict in the async thread. Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/rtc.c", "new_path": "devicemodel/hw/platform/rtc.c", "diff": "#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n-#include <signal.h>\n#include <time.h>\n-#include <fcntl.h>\n-#include <unistd.h>\n-#include <errno.h>\n-#incl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: use acrn_timer api to emulate rtc Current RTC emulation is based on sigevent mechanism, replace with acrn_timer API which based on timerfd/epoll mechanism to avoid potential resource accessing conflict in the async thread. Tracked-On: #1489 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jian Jun Ch...
528,733
10.10.2018 23:10:23
-28,800
9f7642648b0ba10516774b47ffa021b647569ab9
dm: add elf loader to dm This patch adds a simple 32bit static elf binary loader to acrn DM. And if the elf binary follow multiboot protocol, only memory info will be included in multiboot info. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -108,6 +108,7 @@ SRCS += core/monitor.c\nSRCS += core/sw_load_common.c\nSRCS += core/sw_load_bzimage.c\nSRCS += core/sw_load_vsbl.c\n+SRCS += core/sw_load_elf.c\nSRCS += core/smbiostbl.c\nS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: add elf loader to dm This patch adds a simple 32bit static elf binary loader to acrn DM. And if the elf binary follow multiboot protocol, only memory info will be included in multiboot info. Tracked-On: #1465 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> A...
528,676
17.10.2018 11:32:28
-28,800
4620b935dec5f6aa88df7349e7827a84fa6e57f2
fix "use of single line comments(s) //" Replace "//" with '/*','*/' couples. V1->V2: Correct comment "Tracked-On" format V2->V3: Remove "/* ==...===*/" comment Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "@@ -499,4 +499,5 @@ void restore_sworld_context(struct vcpu *vcpu)\n/**\n* @}\n- */ // End of trusty_apis\n+ */\n+/* End of trusty_apis */\n" }, { "change_type": "MODIF...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
fix "use of single line comments(s) //" Replace "//" with '/*','*/' couples. V1->V2: Correct comment "Tracked-On" format V2->V3: Remove "/* ==...===*/" comment Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,706
18.10.2018 07:26:01
-28,800
21458bddff369710d97c52f61fc6bc6fce7c8292
dm: storage: banned functions replace 1. replace sscanf with string API. 2. replace sprintf with snprintf 3. replace strlen with strnlen Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/block_if.c", "new_path": "devicemodel/hw/block_if.c", "diff": "#include \"dm.h\"\n#include \"block_if.h\"\n#include \"ahci.h\"\n+#include \"dm_string.h\"\n/*\n* Notes:\n@@ -429,8 +430,11 @@ blockif_open(const char *optstr, const char *ident)\nfd...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: storage: banned functions replace 1. replace sscanf with string API. 2. replace sprintf with snprintf 3. replace strlen with strnlen Tracked-on: #1496 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
528,728
16.10.2018 14:15:13
-7,200
4ed87f90e9396978d2e5be447d5ca89f73313483
Documentation: add note and instructions for Ubuntu 16.04 There is a compilation error when using the stock gcc compiler from Ubuntu 16.04. This adds a note to our Getting Started Guide to indicate what the error is and how to work around it.
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -446,6 +446,19 @@ each with their own way to install development tools:\ne2fslibs-dev\n$ sudo pip3 install kconfiglib\n+ .. note::\n+ You need to use ``gcc`` version 7...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: add note and instructions for Ubuntu 16.04 There is a compilation error when using the stock gcc compiler from Ubuntu 16.04. This adds a note to our Getting Started Guide to indicate what the error is and how to work around it. Tracked-On: #1482 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@i...
528,794
12.10.2018 14:33:04
-28,800
bf834072d46326f38930c715911011216c8c4702
HV: platform acpi info refactor Replace platform_acpi_info.c with platform_acpi_info.h and define needed host ACPI info in MACROs. Then the struct host_acpi_info is not needed any more. This header file should be generated by offline tool automatically; Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -103,7 +103,7 @@ ifeq ($(CONFIG_PARTITION_MODE),y)\nINCLUDE_PATH += include/dm/vpci\nendif\nINCLUDE_PATH += bsp/include\n-INCLUDE_PATH += bsp/$(CONFIG_PLATFORM)/include/bsp\n+INCLUDE_PATH += ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: platform acpi info refactor Replace platform_acpi_info.c with platform_acpi_info.h and define needed host ACPI info in MACROs. Then the struct host_acpi_info is not needed any more. This header file should be generated by offline tool automatically; Tracked-On: #1500 Signed-off-by: Victor Sun <victor.sun@intel.c...
528,794
12.10.2018 23:17:41
-28,800
8f701b0ff72583a47b712319b9d13c03dca27202
HV: move NR_IOAPICS to platform acpi info The I/O APIC number should be parsed from host ACPI table, so move the definition from Kconfig to platform_acpi_info.h. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/Kconfig", "new_path": "hypervisor/arch/x86/Kconfig", "diff": "@@ -42,11 +42,6 @@ config MAX_VCPUS_PER_VM\nrange 1 8\ndefault 4\n-config NR_IOAPICS\n- int \"Maximum number of IOAPICs supported\"\n- range 1 2\n- default 1\n-\nconfig MAX_IOMMU...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: move NR_IOAPICS to platform acpi info The I/O APIC number should be parsed from host ACPI table, so move the definition from Kconfig to platform_acpi_info.h. Tracked-On: #1500 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com...
528,794
13.10.2018 00:12:23
-28,800
ca65e8c7276e1b06f777e3cef2fac1bd3ed12ea1
HV: refine APIC base address to platform acpi info The base address of LAPIC and IOAPIC should be parsed from MADT table, so move the definition to platform_acpi_info.h. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ioapic.c", "new_path": "hypervisor/arch/x86/ioapic.c", "diff": "@@ -122,24 +122,17 @@ ioapic_write_reg32(const void *ioapic_base,\nspinlock_irqrestore_release(&ioapic_lock, rflags);\n}\n+/**\n+ * @pre apic_id < 2\n+ */\nstatic inline uint64...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: refine APIC base address to platform acpi info The base address of LAPIC and IOAPIC should be parsed from MADT table, so move the definition to platform_acpi_info.h. Tracked-On: #1500 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@i...
528,794
13.10.2018 23:14:44
-28,800
25719db8f1276493d9425523667ae32f5ad7dc6b
HV: move DRHD data to platform acpi info In current code, the DRHD data is hardcoded in sbl.c. Replace the data with MACROs which defined in platform_acpi_info.h as it could be parsed by offline tool. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/include/sbl/platform_acpi_info.h", "new_path": "hypervisor/bsp/include/sbl/platform_acpi_info.h", "diff": "#define WAKE_VECTOR_32 0x7A86BBDCUL\n#define WAKE_VECTOR_64 0x7A86BBE8UL\n+/* DRHD of DMAR */\n+#define DRHD_COUNT 2U\n+\n+#define DRHD0_D...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: move DRHD data to platform acpi info In current code, the DRHD data is hardcoded in sbl.c. Replace the data with MACROs which defined in platform_acpi_info.h as it could be parsed by offline tool. Tracked-On: #1500 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Rev...
528,783
16.10.2018 10:15:09
-28,800
fabe6072474cd48cb7cca9cd5e7906dcb15cb4a3
hv:Replace dynamic memory with static for microcode Reserve 256KB static memory for microcode v1-->v2: -- add spinlock when update microcode Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/ucode.c", "new_path": "hypervisor/arch/x86/guest/ucode.c", "diff": "#include <hypervisor.h>\n#include <ucode.h>\n+#define MICRO_CODE_SIZE_MAX 0x40000U\n+static uint8_t micro_code[MICRO_CODE_SIZE_MAX];\n+static spinlock_t micro_code_lo...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:Replace dynamic memory with static for microcode Reserve 256KB static memory for microcode v1-->v2: -- add spinlock when update microcode Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,728
17.10.2018 11:51:30
0
30c29015462d23184926fd9b5a73fe15555827dc
Documentation: typo in Ubuntu tutorial and additional note Fix one typo (in a command) in the tutorial entitled "Using Ubuntu as the Service OS". Add a note explaining that a script may have to be adjusted based on the HW set-up (network interface name).
[ { "change_type": "MODIFY", "old_path": "doc/tutorials/using_ubuntu_as_sos.rst", "new_path": "doc/tutorials/using_ubuntu_as_sos.rst", "diff": "@@ -267,7 +267,7 @@ For the User OS, we are using the same `Clear Linux`_ release version as the Ser\n.. code-block:: none\n- sudo apt-get instal iasl\n+ sudo...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: typo in Ubuntu tutorial and additional note Fix one typo (in a command) in the tutorial entitled "Using Ubuntu as the Service OS". Add a note explaining that a script may have to be adjusted based on the HW set-up (network interface name). Tracked-On: #1502 Signed-off-by: Geoffroy Van Cutsem <geoffro...
528,747
09.10.2018 13:45:49
25,200
813e3abcccabd8b0d8e6a7d349e72354005cfcfc
doc: Update contrib doc with For traceability, all changes must include a the issue driving this change.
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/contribute_guidelines.rst", "new_path": "doc/developer-guides/contribute_guidelines.rst", "diff": "@@ -275,6 +275,12 @@ source files for the hypervisor, devicemodel, and documentation:\nagreement with the `DCO`_. See the `Commit Guidelines...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: Update contrib doc with Tracked-On For traceability, all changes must include a Tracked-On: line indicating the issue driving this change. Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Tracked-On: #1420
528,675
15.10.2018 16:34:49
-28,800
1c7d2f653ad380b5447bc50abc5e2cb4e24c32e2
vuart: change irq from 4 to 6 irq 4 is sharing with idma, after change vuart to level trigger, the idma driver could handle this irq 4 and send out EOI, which cause the irq storm. move vuart irq to a not used 6.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -45,8 +45,8 @@ is_entry_active(struct ptdev_remapping_info *entry)\nstatic bool ptdev_hv_owned_intx(struct vm *vm, union source_id *virt_sid)\n{\n- /* vm0 pin 4 (uart) is ow...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vuart: change irq from 4 to 6 irq 4 is sharing with idma, after change vuart to level trigger, the idma driver could handle this irq 4 and send out EOI, which cause the irq storm. move vuart irq to a not used 6. Tracked-On: https://github.com/projectacrn/acrn-hypervisor/issues/1476 Signed-off-by: Jason Chen CJ <jaso...
528,768
19.10.2018 16:31:46
-28,800
bd042352cd9a5915697978bf71fa68feb7b46df2
hv: fix potential buffer overflow in vpic_set_pinstate() Input 'pin' should be less than 'NR_VPIC_PINS_TOTAL' Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/dm/vpic.c", "new_path": "hypervisor/dm/vpic.c", "diff": "@@ -405,6 +405,10 @@ static void vpic_set_pinstate(struct acrn_vpic *vpic, uint8_t pin,\nuint8_t old_lvl;\nbool lvl_trigger;\n+ if (pin >= NR_VPIC_PINS_TOTAL) {\n+ return;\n+ }\n+\ni8259 = &vp...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix potential buffer overflow in vpic_set_pinstate() Input 'pin' should be less than 'NR_VPIC_PINS_TOTAL' Tracked-On: #1479 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,794
18.10.2018 10:56:54
-28,800
8b5d357f92f969738cf2057c63a45d8e301273c3
HV: move default ACPI info to default_acpi_info.h Given the reality that some of ACPI configrations are unlikey changed, move these MACROs to a default header file. The platform_acpi_info.h still has chance to override the default definition by #undef with offline tool. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/include/bsp_extern.h", "new_path": "hypervisor/bsp/include/bsp_extern.h", "diff": "#ifndef BSP_EXTERN_H\n#define BSP_EXTERN_H\n+#include \"default_acpi_info.h\"\n#include \"platform_acpi_info.h\"\n#define UOS_DEFAULT_START_ADDR (0x100000000UL)\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: move default ACPI info to default_acpi_info.h Given the reality that some of ACPI configrations are unlikey changed, move these MACROs to a default header file. The platform_acpi_info.h still has chance to override the default definition by #undef with offline tool. Tracked-On: #1520 Signed-off-by: Victor Sun <v...
528,679
09.10.2018 23:44:03
-28,800
e8f7b6fa746119bb05c21525d771dd6aa06321f5
DM USB: introduce struct usb_devpath and releted functions This patch introduce struct usb_devpath to indentify uniquely an USB device, which is basic element for multiple hub support. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -534,32 +534,32 @@ pci_xhci_native_usb_dev_conn_cb(void *hci_data, void *dev_data)\ndi = dev_data;\n/* print physical information about new device */\n- UPRINTF(LDBG, \"%04x:%04x ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: introduce struct usb_devpath and releted functions This patch introduce struct usb_devpath to indentify uniquely an USB device, which is basic element for multiple hub support. Tracked-On: #1434 Signed-off-by: Liang Yang <liang3.yang@intel.com> Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu...
528,679
08.10.2018 19:22:01
-28,800
f533a07af155237a077f98acfccdaac8e2547aa0
DM USB: xHCI: support multiple hubs in single layer This patch is used to enable multiple hubs in single layer under Flat Mode. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -571,6 +571,112 @@ pci_xhci_get_native_port_index_by_vport(struct pci_xhci_vdev *xdev,\nreturn -1;\n}\n+static void\n+pci_xhci_clr_native_port_assigned(struct pci_xhci_vdev *xdev,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: support multiple hubs in single layer This patch is used to enable multiple hubs in single layer under Flat Mode. Tracked-On: #1434 Signed-off-by: Liang Yang <liang3.yang@intel.com> Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,659
10.10.2018 12:02:16
-28,800
6b2a18a866422a159ca5674f2279ce417646a953
DM USB: add support for multi-layers hubs This patch is used to support emulation of multiple layers of hubs under Flat Mode. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/usb_pmapper.c", "new_path": "devicemodel/hw/platform/usb_pmapper.c", "diff": "@@ -59,7 +59,7 @@ usb_get_native_devinfo(struct libusb_device *ldev,\nif (info->type == USB_TYPE_EXTHUB) {\ninfo->maxchild = usb_get_hub_port_num(&info->path)...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: add support for multi-layers hubs This patch is used to support emulation of multiple layers of hubs under Flat Mode. Tracked-On: #1434 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Signed-off-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,659
18.10.2018 17:45:26
-28,800
ecf0585bf2d0ea1bf8d9e03a917f41ca718c4a66
DM USB: xHCI: fix incorrect device searching logic The function pci_xhci_get_native_port_index_by_path didn't compare the bus number during the process of native USB device searching. 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": "@@ -548,6 +548,9 @@ pci_xhci_get_native_port_index_by_path(struct pci_xhci_vdev *xdev,\nfor (i = 0; i < XHCI_MAX_VIRT_PORTS; i++) {\np = &xdev->native_ports[i].info.path;\n+ if (p->b...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: fix incorrect device searching logic The function pci_xhci_get_native_port_index_by_path didn't compare the bus number during the process of native USB device searching. This patch is used to fix it. Tracked-On: #1434 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.y...
528,646
21.09.2018 14:39:54
-28,800
48ce01a52f238d3039535f54f09481e28c338c24
tools: acrn-crashlog: new api in strutils This patch provides an new api to split string by extended regexp(ere). Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/common/include/strutils.h", "new_path": "tools/acrn-crashlog/common/include/strutils.h", "diff": "@@ -13,5 +13,6 @@ char *strrstr(const char *s, const char *str);\nchar *next_line(char *buf);\nchar *strtrim(char *str);\nint strcnt(char *str...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: new api in strutils This patch provides an new api to split string by extended regexp(ere). Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,646
25.09.2018 10:08:24
-28,800
5ecf1078ca3d635392affde5d07618f77f584903
tools: acrn-crashlog: remove unsafe apis from android_events.c 1. Refine strings operation. 2. Remove sscanf, sprintf and strlen. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/android_events.c", "new_path": "tools/acrn-crashlog/acrnprobe/android_events.c", "diff": "@@ -32,30 +32,47 @@ static const char *android_img = \"/data/android/android.img\";\nstatic const char *android_histpath = \"logs/history_ev...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: remove unsafe apis from android_events.c 1. Refine strings operation. 2. Remove sscanf, sprintf and strlen. Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,646
25.09.2018 10:31:53
-28,800
fb0292846d329e0fe9ecce37d6f0c6dfad019991
tools: acrn-crashlog: remove unsafe api sprintf Using snprintf intead of sprintf. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/history.c", "new_path": "tools/acrn-crashlog/acrnprobe/history.c", "diff": "#include \"history.h\"\n#include \"log_sys.h\"\n#include \"probeutils.h\"\n+#include \"strutils.h\"\n#define HISTORY_FIRST_LINE_FMT \\\n\"#V1.0 CURRENTUPT...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: remove unsafe api sprintf Using snprintf intead of sprintf. Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,646
25.09.2018 11:14:55
-28,800
fe4d503c3d56dbdaac032b3a71ded4f968247edb
tools: acrn-crashlog: remove unsafe api sscanf Use str_split_ere instead of sscanf. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/history.c", "new_path": "tools/acrn-crashlog/acrnprobe/history.c", "diff": "@@ -228,27 +228,23 @@ void hist_raise_infoerror(char *type)\nfree(key);\n}\n-static int get_time_firstline(char *buffer)\n+static int get_time_from_firstl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: remove unsafe api sscanf Use str_split_ere instead of sscanf. Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,646
25.09.2018 16:21:47
-28,800
6938caa25fbd373d7e555bd5bd03c1754d426806
tools: acrn-crashlog: refine the configuration structure 1. get string size when parsing configuration. 2. add 'const' for strings got from configuration. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/android_events.c", "new_path": "tools/acrn-crashlog/acrnprobe/android_events.c", "diff": "@@ -72,7 +72,7 @@ static char *next_vm_event(const char *cursor, const char *data,\nsize_t dlen, const struct vm_t *vm)\n{\nchar *line_to_sy...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: refine the configuration structure 1. get string size when parsing configuration. 2. add 'const' for strings got from configuration. Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,646
26.09.2018 15:23:41
-28,800
f25bc50e689071ed30778e71c3c2c83512f54e28
tools: acrn-crashlog: update string operation in acrnprobe Remove unsafe api strlen except the parameter is a static string. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/channels.c", "new_path": "tools/acrn-crashlog/acrnprobe/channels.c", "diff": "@@ -55,19 +55,20 @@ static struct channel_t channels[] = {\n* @param private The corresponding configuration info to the event.\n* @param watchfd For wa...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: update string operation in acrnprobe Remove unsafe api strlen except the parameter is a static string. Tracked-On: #1254 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,676
18.10.2018 16:18:45
-28,800
60b216a460c7eef765dc8d238521e8738dd69ced
HV:fixed "Pointer param should be declared pointer to const" Pointer param should be declared pointer to const if the parameter is keeped read-only. This patch changes pointer param whose name is vm. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "*/\nstatic inline struct ptdev_remapping_info *\nptdev_lookup_entry_by_sid(uint32_t intr_type,\n- union source_id *sid, struct vm *vm)\n+ union source_id *sid,const struct vm *...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fixed "Pointer param should be declared pointer to const" Pointer param should be declared pointer to const if the parameter is keeped read-only. This patch changes pointer param whose name is vm. Tracked-On:#861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,747
18.10.2018 14:46:51
25,200
8893a8c2c7f1cd6f749343fd1f85bd388754b0ef
doc: update HLD overview chapter Transcode, edit, and publish update HLD chapter 2
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/hld/hld-overview.rst", "new_path": "doc/developer-guides/hld/hld-overview.rst", "diff": "@@ -17,7 +17,7 @@ Software Defined Cockpit\nThe SDC system consists of multiple systems: the instrument cluster (IC)\nsystem, the In-vehicle Infotainm...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update HLD overview chapter Transcode, edit, and publish update HLD chapter 2 Tracked-on: #1512 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
19.10.2018 16:06:01
25,200
acc51877f119c80cefb314a176036a2208e4b6fa
doc: merge static core with cpu virt Update the converted HLD 0.7 section 3.2 with a previously converted static partitioning document (instead of a separate doc for this topic).
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/hld/hld-hypervisor.rst", "new_path": "doc/developer-guides/hld/hld-hypervisor.rst", "diff": "@@ -9,6 +9,6 @@ Hypervisor high-level design\nhv-startup\nhv-cpu-virt\n- static-core-hld\nMemory management <memmgt-hld>\n+\nInterrupt management ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: merge static core with cpu virt Update the converted HLD 0.7 section 3.2 with a previously converted static partitioning document (instead of a separate doc for this topic). Tracked-on: #1533 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,647
16.10.2018 11:15:47
-28,800
e8c86566b173123cec805b004bd3341c88ec88bc
tools: acrn-manager: fix a potential NULL pointer dereference check the return value of vmmngr_find() before dereference in wait_vm_stop()
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrnctl.c", "new_path": "tools/acrn-manager/acrnctl.c", "diff": "@@ -504,8 +504,13 @@ static int wait_vm_stop(const char * vmname, unsigned int timeout)\nvmmngr_update();\ns = vmmngr_find(vmname);\n+ if (s == NULL) {\n+ printf(\"%s: vm %s no...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: fix a potential NULL pointer dereference check the return value of vmmngr_find() before dereference in wait_vm_stop() Tracked-On: #1479 Signed-off-by: Yan, Like <like.yan@intel.com>
528,647
19.10.2018 22:57:43
-28,800
4ce80e5ccc09ba678421068fd1f082fcc9a64630
tools: acrn-manager: fix a potential compiler warning
[ { "change_type": "MODIFY", "old_path": "tools/acrn-manager/acrnctl.h", "new_path": "tools/acrn-manager/acrnctl.h", "diff": "@@ -47,7 +47,10 @@ int shell_cmd(const char *cmd, char *outbuf, int len);\n*/\nvoid vmmngr_update(void);\n-extern LIST_HEAD(vmmngr_list_struct, vmmngr_struct) vmmngr_head;\n+st...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-manager: fix a potential compiler warning Tracked-On: #1479 Signed-off-by: Yan, Like <like.yan@intel.com>
528,772
23.08.2018 21:54:05
-28,800
ae5b32dcb3924aba4e96290a22de01f4cba601e6
DM: VMcfg: build-in vm configurations use *args_buildin[] to hold build-in VM configurations Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -132,6 +132,8 @@ SRCS += core/timer.c\n# arch\nSRCS += arch/x86/pm.c\n+# vmcfg\n+SRCS += vmcfg/vmcfg.c\nOBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS))\n" }, { "change_type": "ADD"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: VMcfg: build-in vm configurations use *args_buildin[] to hold build-in VM configurations Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
528,772
23.08.2018 23:03:59
-28,800
d2ed9955fdc6a5e3e93131fa440c01da5dad48f5
DM: VMcfg: support VM1 on MRB Add build-in vm1 configuration for MRB platform, this is also an example about how to add new VM configurations Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -134,6 +134,7 @@ SRCS += arch/x86/pm.c\n# vmcfg\nSRCS += vmcfg/vmcfg.c\n+SRCS += vmcfg/apl-mrb/vm1/vm1.c\nOBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS))\n" }, { "change_type": "MO...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: VMcfg: support VM1 on MRB Add build-in vm1 configuration for MRB platform, this is also an example about how to add new VM configurations Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
528,772
28.08.2018 21:07:23
-28,800
321021ebaf326a27ae975bf3b86e64b0295063af
DM: VMcfg: mrb-env-setup.sh Script that setup envriment on MRB platform, for UOS with build-in configuration For example, you need to run mrb-env-setup.sh once, to prepare images, networks and pci-stubs, etc,. Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -202,7 +202,7 @@ $(DM_OBJDIR)/%.o: %.c $(HEADERS)\n[ ! -e $@ ] && mkdir -p $(dir $@); \\\n$(CC) $(CFLAGS) -c $< -o $@\n-install: $(DM_OBJDIR)/$(PROGRAM) install-samples-nuc install-samples-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: VMcfg: mrb-env-setup.sh Script that setup envriment on MRB platform, for UOS with build-in configuration For example, you need to run mrb-env-setup.sh once, to prepare images, networks and pci-stubs, etc,. Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel...
528,772
28.08.2018 23:13:35
-28,800
c86da0034efce58a643f3549f83f435d1d0790ea
DM: VMcfg: support --dump options run 'acrn-dm --dump <index>' to show build-in parameters Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -162,6 +162,7 @@ usage(int code)\n\" -i: ioc boot parameters\\n\"\n#ifdef CONFIG_VM_CFG\n\" --vmcfg: build-in VM configurations\\n\"\n+ \" --dump: show build-in VM configurations\\n\"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: VMcfg: support --dump options run 'acrn-dm --dump <index>' to show build-in parameters Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
528,772
18.10.2018 19:51:02
0
2973db78394d83ed4aaf94d2483fa5e0a0afbf60
DM: VMcfg: generated example header devicemodel/vmcfg/example.h is a example, it is generated at build time. Acked-by: Yin Fengwei
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/vmcfg/example.h", "diff": "+/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */\n+#ifndef __HV_KCONFIG__\n+#define __HV_KCONFIG__\n+#define CONFIG_VM_CFG 1\n+#define CONFIG_MRB_VM1 1\n+#define CONFIG_MRB_VM1_NAME ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: VMcfg: generated example header devicemodel/vmcfg/example.h is a example, it is generated at build time. Tracked-On: #1528 Acked-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
528,646
19.10.2018 12:50:38
-28,800
9368373fd9dfb90f4c566fc849d6412b5add5695
tools: acrn-crashlog: check the pointer after getting sender get_sender_from_name would return NULL if the name of sender is not configured in acrnprobe.xml. This patch check the return value of it. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/sender.c", "new_path": "tools/acrn-crashlog/acrnprobe/sender.c", "diff": "@@ -463,7 +463,7 @@ free_class:\nstatic void telemd_send_uptime(void)\n{\n- struct sender_t *telemd;\n+ struct sender_t *telemd = get_sender_by_name(\"telem...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: check the pointer after getting sender get_sender_from_name would return NULL if the name of sender is not configured in acrnprobe.xml. This patch check the return value of it. Tracked-On: #1024 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Huang Yonghua <yonghua.huang@intel.com> ...
528,654
17.10.2018 19:43:00
-28,800
49b476bb561ded6a35cbd18a9831987e0211a77c
hv: vm_load: set zeropage just past boot args Which should in Linux guest gpa, not in hypervisor HVA.
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/vm_load.c", "new_path": "hypervisor/common/vm_load.c", "diff": "@@ -47,8 +47,9 @@ static uint64_t create_zero_page(struct vm *vm)\nuint64_t gpa, addr;\n/* Set zeropage in Linux Guest RAM region just past boot args */\n- hva = gpa2hva(vm, (uin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vm_load: set zeropage just past boot args Which should in Linux guest gpa, not in hypervisor HVA. Tracked-On: #1124 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,654
17.10.2018 19:59:36
-28,800
70ddca3a87fe93e65bd6b739e1fbbd9e42db6a47
hv: mmu: add pre-assumption for hpa2gpa They're: (a) only SOS would use hpa2gpa and (b) the GPA and HPA in SOS is identical mapping. Rename hpa2gpa to vm0_hpa2gpa then.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -103,19 +103,12 @@ uint64_t gpa2hpa(struct vm *vm, uint64_t gpa)\nreturn local_gpa2hpa(vm, gpa, NULL);\n}\n-uint64_t hpa2gpa(struct vm *vm, uint64_t hpa)\n+/**\n+ * @pre: the gpa ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: mmu: add pre-assumption for hpa2gpa They're: (a) only SOS would use hpa2gpa and (b) the GPA and HPA in SOS is identical mapping. Rename hpa2gpa to vm0_hpa2gpa then. Tracked-On: #1124 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,654
17.10.2018 20:05:56
-28,800
39fde060c391427aa7029c5a663c06692e943260
hv: ept: remove EPT paging table for HPA to GPA There's no need to walk these paging tables to transfer HPA to GPA for a VM, so remove it. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -58,9 +58,6 @@ void destroy_ept(struct vm *vm)\nif (vm->arch_vm.nworld_eptp != NULL) {\nfree_ept_mem((uint64_t *)vm->arch_vm.nworld_eptp);\n}\n- if (vm->arch_vm.m2p != NULL) {\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: ept: remove EPT paging table for HPA to GPA There's no need to walk these paging tables to transfer HPA to GPA for a VM, so remove it. Tracked-On: #1124 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,775
10.10.2018 14:21:29
-10,800
d141aebdcde44a76e3b418f12a77aecff6148c46
dm: mei: add mei hbm protocol definitions header. HBM is a control channel protocol between mei device driver and mei fw. Add new ioctl IOCTL_MEI_CONNECT_CLIENT_VTAG Acked-by: Wang, Yu1
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/include/mei.h", "diff": "+/*\n+ * Copyright (C) 2018 Intel Corporation. All rights reserved.\n+ *\n+ * SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ */\n+#ifndef _MEI_HBM_H_\n+#define _MEI_HBM_H_\n+#include <linux/uuid.h>\n+#include ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add mei hbm protocol definitions header. HBM is a control channel protocol between mei device driver and mei fw. Add new ioctl IOCTL_MEI_CONNECT_CLIENT_VTAG Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,797
15.10.2018 21:26:46
-10,800
4e057c32d27de281ac59e90a78e8305fdb9e2eac
dm: mei: add guid handling functions libuuid sports only uuid (big endian encoding), though mei requires guids (little endian encoding). The base types are based on <linux/uuid.h> header. Acked-by: Wang, Yu1
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "+/*\n+ * Copyright (C) 2018 Intel Corporation. All rights reserved.\n+ *\n+ * SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ */\n+/*\n+ * MEI device virtualization.\n+ */\n+\n+#include <sys/types....
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add guid handling functions libuuid sports only uuid (big endian encoding), though mei requires guids (little endian encoding). The base types are based on <linux/uuid.h> header. Tracked-On: #1536 Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel...
528,775
19.10.2018 09:20:49
-10,800
6a96878e0bef47cd705634bd532fc304e884c228
dm: types: add container_of macro Add standard container_of macro to access the parent struct pointer. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/include/types.h", "new_path": "devicemodel/include/types.h", "diff": "@@ -18,6 +18,11 @@ typedef uint64_t cap_ioctl_t;\n#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))\n+#define container_of(ptr, type, member) ({ \\\n+ const typeof(((type *)0)->me...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: types: add container_of macro Add standard container_of macro to access the parent struct pointer. Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,775
15.10.2018 21:41:56
-10,800
b8d53d17d53f93e2f67340a75a2372141e0816ab
dm: mei: add reference counter functions mei handles objects on the list, hence reference counting infrastructure is required for easier multithreading. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -129,3 +129,20 @@ static int guid_unparse(const guid_t *guid, char *str, size_t len)\nreturn 0;\n}\n+struct refcnt {\n+ void (*destroy)(const struct refc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add reference counter functions mei handles objects on the list, hence reference counting infrastructure is required for easier multithreading. Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,775
15.10.2018 23:41:09
-10,800
0dc7adfbac8fb6b2ad22bc74ad69ca425f1f9a3d
dm: mei: add sysfs read functions mei requires reading of u8, u32 and uuid sysfs files. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "#include \"mei.h\"\n+#ifndef BIT\n+#define BIT(x) (1 << (x))\n+#endif\n+\n+#define DEV_NAME_SIZE sizeof(((struct dirent *)0)->d_name)\n+\n#ifndef UUID_STR_L...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add sysfs read functions mei requires reading of u8, u32 and uuid sysfs files. Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,775
19.10.2018 10:32:41
-10,800
7cbb3872a277616f71494a6953c55cacaa70f9a4
dm: mei: add virtio cfgread/cfgwrite handlers. mei mediator perform reset handshake via the cfgread/write handlers and provide access to fw status registers. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -665,6 +665,45 @@ static int mei_sysfs_read_property_uuid(char *fname, guid_t *uuid)\nreturn guid_parse(buf, sizeof(buf), uuid);\n}\n+static int\n+vmei_r...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add virtio cfgread/cfgwrite handlers. mei mediator perform reset handshake via the cfgread/write handlers and provide access to fw status registers. Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,775
16.10.2018 01:19:52
-10,800
3abbf10e55682923960cddc001015adb5d2fd140
dm: mei: add me clients enumeration ME client enumeration is received from sysfs attributes of the native device. V3: Use bounded functions. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -203,6 +203,24 @@ static void vmei_dbg_print_hex(const char *title,\nfprintf(dbg_file, \"\\n\");\n}\n+static void\n+vmei_dbg_client_properties(const stru...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add me clients enumeration ME client enumeration is received from sysfs attributes of the native device. V3: Use bounded functions. Tracked-On: #1536 Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.wink...
528,775
19.10.2018 11:03:28
-10,800
98c6b7a692ceed91bd0099386c853f82ad50a51b
dm: mei: add native io handlers Add read write and connect handler, that perform io peration on SOS /dev/meiX device. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -974,6 +974,159 @@ static int vmei_add_reset_event(struct virtio_mei *vmei)\nreturn 0;\n}\n+static inline uint8_t\n+errno_to_hbm_conn_status(int err)\n+{...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add native io handlers Add read write and connect handler, that perform io peration on SOS /dev/meiX device. Tracked-On: #1536 Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by:...
528,775
19.10.2018 11:33:28
-10,800
50ecd93b24a1760cfdb88654dece9d57ec892eea
dm: mei: implement tx flow TX from virtio driver is handled firt via virio tx notify handler vmei_notify_tx(), placed into host clinet tx circular buffer. TX thread will then write the data to the device. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -1350,6 +1350,11 @@ vmei_hbm_handler(struct virtio_mei *vmei, const void *data)\n}\n}\n+static inline bool hdr_is_hbm(const struct mei_msg_hdr *hdr)\n+{\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: implement tx flow TX from virtio driver is handled firt via virio tx notify handler vmei_notify_tx(), placed into host clinet tx circular buffer. TX thread will then write the data to the device. Tracked-On: #1536 Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com> Signed-off-by: Tomas Winkler <tomas.wink...
528,775
19.10.2018 11:41:04
-10,800
6a1f8242295ab930e6fd7bdec2cf7cf6d061cffc
dm: mei: implement rx flow. Rx is triggered from epoll event (mevent), a host client is retrieved from associated event data. P proper mei message header is attached to the packet and sent to the virtio FE device. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -980,6 +980,8 @@ static int vmei_add_reset_event(struct virtio_mei *vmei)\nreturn 0;\n}\n+static void vmei_rx_callback(int fd, enum ev_type type, void *p...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: implement rx flow. Rx is triggered from epoll event (mevent), a host client is retrieved from associated event data. P proper mei message header is attached to the packet and sent to the virtio FE device. Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@i...
528,775
19.10.2018 18:08:42
-10,800
d4b9bd599d64bd13cdf41371098227afcfe85dc1
dm: mei: add module initialization Register virtio device virtio-mei. Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "new_path": "devicemodel/hw/pci/virtio/virtio_mei.c", "diff": "@@ -2079,3 +2079,238 @@ struct virtio_ops virtio_mei_ops = {\n.apply_features = NULL,\n.set_status = NULL,\n};\n+\n+static int filter_dirs(const struct dire...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: add module initialization Register virtio device virtio-mei. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Tracked-On: #1536 Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,775
16.10.2018 01:52:36
-10,800
201e5cec0ad2b6ee2e469189b19ac9a401596a01
dm: mei: enable virtio_mei compilation Add virtio_mei to the Makefile Acked-by: Wang, Yu1
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -99,6 +99,7 @@ SRCS += hw/pci/virtio/virtio_net.c\nSRCS += hw/pci/virtio/virtio_rnd.c\nSRCS += hw/pci/virtio/virtio_ipu.c\nSRCS += hw/pci/virtio/virtio_hyper_dmabuf.c\n+SRCS += hw/pci/virti...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: mei: enable virtio_mei compilation Add virtio_mei to the Makefile Tracked-On: #1536 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
528,654
19.10.2018 23:18:21
-28,800
a43ff9ce98c328fc84c4b7c5b8ca90f75510ab22
hv: timer: add debug information for add_timer If a timer added more than once, assert the debug information.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "@@ -80,6 +80,8 @@ int add_timer(struct hv_timer *timer)\nreturn -EINVAL;\n}\n+ ASSERT(list_empty(&timer->node), \"add timer again!\\n\");\n+\n/* limit minimal periodic timer cycl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: add debug information for add_timer If a timer added more than once, assert the debug information. Tracked-On: #1546 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,652
19.09.2018 22:47:01
25,200
4741fcfff257c95aab16dc9496537fc2b2998dd8
hv: pci_priv.h code cleanup move most of the content of pci_priv.h to include/dm/pci.h. This allows other code outside dm/vpci to be able to share these macros. code cleanup: fix alignments etc. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -101,6 +101,7 @@ INCLUDE_PATH += include/debug\nINCLUDE_PATH += include/public\nifeq ($(CONFIG_PARTITION_MODE),y)\nINCLUDE_PATH += include/dm/vpci\n+INCLUDE_PATH += include/dm\nendif\nINCLUDE...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: pci_priv.h code cleanup - move most of the content of pci_priv.h to include/dm/pci.h. This allows other code outside dm/vpci to be able to share these macros. - code cleanup: fix alignments etc. Tracked-On: #1568 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com...
528,676
22.10.2018 13:32:32
-28,800
107eaa3ab0673bafdc8b2454d272f184e9274201
HV:fix MACRO value mismatch The commit id "c5f4c5" translats from enum to macro, the content is not correct,fixed now.
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/debug/npk_log.h", "new_path": "hypervisor/include/debug/npk_log.h", "diff": "@@ -20,12 +20,11 @@ enum {\nHV_NPK_LOG_CMD_QUERY,\n};\n-\n-#define HV_NPK_LOG_RES_INVALID 0x1U\n-#define HV_NPK_LOG_RES_OK 0x2U\n-#define HV_NPK_LOG_RES_KO 0x3U\n-#...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:fix MACRO value mismatch The commit id "c5f4c5" translats from enum to macro, the content is not correct,fixed now. Tracked-On: #1553 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com>
528,716
18.10.2018 12:33:14
-28,800
bd97e5cbe27cd3d2531507f3499b2beb8e291870
dm: rpmb: Support RPMB mode config from launch.sh physical RPMB is accessed if "phisycal_rpmb" is specified in launch.sh. Also it reserves some RPMB area with a fixed size(32KB) for AttKB and future usage, which is RO for UOS. Acked-by: Zhu Bing
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_rpmb.c", "new_path": "devicemodel/hw/pci/virtio/virtio_rpmb.c", "diff": "#define VIRTIO_RPMB_MAXSEGS 5\n#define ADDR_NOT_PRESENT -2\n+static const char PHYSICAL_RPMB_STR[] = \"physical_rpmb\";\nstatic int virtio_rpmb_debug = 1;...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: rpmb: Support RPMB mode config from launch.sh physical RPMB is accessed if "phisycal_rpmb" is specified in launch.sh. Also it reserves some RPMB area with a fixed size(32KB) for AttKB and future usage, which is RO for UOS. Tracked-On: #1544 Signed-off-by: Huang, Yang <yang.huang@intel.com> Acked-by: Zhu Bing <bin...
528,751
23.10.2018 18:32:44
-28,800
7195537a6b987abc9a2f4f24a45b600d4ebb5fb1
dm: virtio-net: replace banned functions sscanf and strcpy are banned according to the security requirements. So replace them with their safe alternative. 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 \"mevent.h\"\n#include \"virtio.h\"\n#include \"vhost.h\"\n+#include \"dm_string.h\"\n#define VIRTIO_NET_RINGSZ 1024\n#define VIRTIO_NET_MAXSEGS 25...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-net: replace banned functions sscanf and strcpy are banned according to the security requirements. So replace them with their safe alternative. Tracked-on: #1496 Signed-off-by: Jie Deng <jie.deng@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,804
18.10.2018 14:45:34
-28,800
4228c81b3fc97c687d00a7c3c57ba0d63a959bb7
DM: compare unsigned numbers to avoid overflow. compare the two unsigned numbers to avoid delta calculation overflow. It could happen during UOS warm root, which can trigger a "fake" interrupt storm. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/monitor.c", "new_path": "devicemodel/core/monitor.c", "diff": "@@ -121,6 +121,10 @@ static void *intr_storm_monitor_thread(void *arg)\nif (hdr->buffer[i] != intr_cnt_buf[i])\ncontinue;\n+ /* avoid delta overflow */\n+ if (hdr->buffer[i + 1] < ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: compare unsigned numbers to avoid overflow. compare the two unsigned numbers to avoid delta calculation overflow. It could happen during UOS warm root, which can trigger a "fake" interrupt storm. Tracked-On: #1476 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,731
22.10.2018 11:09:26
-28,800
96f8becca6669abe0390630e336413ba108811f0
dm: bios: update vSBL to v1.0 New feature: Update vFastboot to v1.0 Boot time optimization Support Crash mode, which uses vFastboot in vSBL as Crash mode target. Support Ramooops.
[ { "change_type": "MODIFY", "old_path": "devicemodel/bios/MD5SUM", "new_path": "devicemodel/bios/MD5SUM", "diff": "-ac590cd3d9bd0a20a628f6211617e285 VSBL.bin\n-689a9a06c44028639df53097bcb79313 VSBL_debug.bin\n+3af0a432599e073f654c24246b8dbaa8 VSBL.bin\n+553a3130c886d195ab013c5966af2a32 VSBL_debug.bin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: bios: update vSBL to v1.0 New feature: Update vFastboot to v1.0 Boot time optimization Support Crash mode, which uses vFastboot in vSBL as Crash mode target. Support Ramooops. Tracked-On: #968, #1578, #1579, #1580 Signed-off-by: Binbin Wu <binbin.wu@intel.com>
528,768
25.10.2018 01:55:35
-28,800
8f7fa50d5ac3e6210c447c4b9d2a71829c4a76e4
hv: fix mapping between GSI Num#2 and PIC IRQ route GSI number#2 to PIC IRQ#0, as by default IRQ for 8254 timer is connected to I/O APIC Pin and PIC Pin Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -336,6 +336,7 @@ int32_t hcall_set_vcpu_regs(struct vm *vm, uint16_t vmid, uint64_t param)\nint32_t hcall_set_irqline(const struct vm *vm, uint16_t vmid,\nstruct acrn_irql...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix mapping between GSI Num#2 and PIC IRQ #0 route GSI number#2 to PIC IRQ#0, as by default IRQ for 8254 timer is connected to I/O APIC Pin #2 and PIC Pin #0 Tracked-On: #861 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Anthony Xu <anthony.xu@in...
528,739
29.09.2018 09:30:48
0
6d076caaa67dabb7bd62be6a85f499cbcd0e6972
tools: acrn-crashlog: remove unsafe apis in usercrash Since strlen/vsnprintf/ato* api are not safe, so use strnlen instead of strlen, use vasprintf instead of vsnprintf and use strtol instead of atoi. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/usercrash/client.c", "new_path": "tools/acrn-crashlog/usercrash/client.c", "diff": "@@ -85,7 +85,8 @@ static int usercrashd_connect(int pid, int *usercrashd_socket,\nLOGE(\"crash process name is NULL\\n\");\nreturn -1;\n}\n- sockfd = socket...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: remove unsafe apis in usercrash Since strlen/vsnprintf/ato* api are not safe, so use strnlen instead of strlen, use vasprintf instead of vsnprintf and use strtol instead of atoi. Tracked-On: #1254 Signed-off-by: xiaojin2 <xiaojing.liu@intel.com> Reviewed-by: Huang Yonghua <yonghua.huang@intel.co...
528,734
16.10.2018 14:18:31
-28,800
ad1ef7ba1b9c59315d8108dbd450eb9ac95ade7f
samples: enable pstore via the sos kernel cmdline Enable pstore via the sos kernel cmdline, as ABL doesn't reserve memory and pass parameters for pstore.
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt", "new_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt", "diff": "-pci_devices_ignore=(0:18:2) module_blacklist=dwc3_pci console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=/dev/mmcblk1p1 rw roo...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
samples: enable pstore via the sos kernel cmdline Enable pstore via the sos kernel cmdline, as ABL doesn't reserve memory and pass parameters for pstore. Tracked-On: #1024 Signed-off-by: Zhi Jin <zhi.jin@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
528,733
23.10.2018 15:43:33
-28,800
4f19b3b87523accd39ba2e6b5e14a9623aad39b5
hv: Prepare the gdt table for VM For VMs of partition mode, there is no guarantee 1:1 mapping between gpa and hpa, we need to copy the native gdt table to each VM's memory. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/vm_load.c", "new_path": "hypervisor/common/vm_load.c", "diff": "@@ -38,6 +38,25 @@ static uint32_t create_e820_table(struct e820_entry *param_e820)\n}\n#endif\n+static void prepare_bsp_gdt(struct vm *vm)\n+{\n+ size_t gdt_len;\n+ uint64_t gdt...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Prepare the gdt table for VM For VMs of partition mode, there is no guarantee 1:1 mapping between gpa and hpa, we need to copy the native gdt table to each VM's memory. Tracked-On: #1565 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
23.10.2018 15:53:23
-28,800
85bec0d0d11654a6f8699f05a3a50c5c73f07487
hv: Move the guest_sw_loader() call from vcpu to vm guest software loading is per VM instead of vcpu. So we move it from prepare_vcpu to prepare_vm. And make sure it's called for all VMs for partition mode. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -598,14 +598,6 @@ int prepare_vcpu(struct vm *vm, uint16_t pcpu_id)\nreturn ret;\n}\n- if (!vm_sw_loader) {\n- vm_sw_loader = general_sw_loader;\n- }\n-\n- if (is_vm...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Move the guest_sw_loader() call from vcpu to vm guest software loading is per VM instead of vcpu. So we move it from prepare_vcpu to prepare_vm. And make sure it's called for all VMs for partition mode. Tracked-On: #1565 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com...
528,733
23.10.2018 17:05:06
-28,800
482a4dcc0283071b3a8de8a49953a616d479db18
DM: correct the predefine DM option string. That string was changed by accident and introduced the removed items. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -756,7 +756,7 @@ static struct option long_options[] = {\n{0, 0, 0, 0 },\n};\n-static char optstr[] = \"abehuwxACHIPSWYvk:r:B:p:g:c:s:m:l:U:G:i:\";\n+static char optstr[] = \"abhuwxAC...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: correct the predefine DM option string. That string was changed by accident and introduced the removed items. Tracked-On: #1465 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,676
23.10.2018 11:45:50
-28,800
d79007ae7095b940c746698035739a132c2718a9
HV:add const to bitmap_test parameter addr bitmap_test parameter addr should be read-only, the addr is in the asm code "output" region, change it to the "input" region. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/bits.h", "new_path": "hypervisor/include/lib/bits.h", "diff": "@@ -231,26 +231,26 @@ build_bitmap_clear(bitmap32_clear_lock, \"l\", uint32_t, BUS_LOCK)\n* Note:Input parameter nr shall be less than 64. If nr>=64, it will\n* be truncated....
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:add const to bitmap_test parameter addr bitmap_test parameter addr should be read-only, the addr is in the asm code "output" region, change it to the "input" region. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,676
23.10.2018 13:36:25
-28,800
46d198244fc0473dc6028d7db9560eadbef76525
HV:vcpu fix "Pointer param should be declared pointer to const" Fix violations whose parameter can be read-only. This patch only fix the parameter whose name is vcpu. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -322,7 +322,7 @@ static uint32_t get_vmcs_field(enum cpu_reg_name ident)\n* @pre ((reg <= CPU_REG_LAST) && (reg >= CPU_REG_FIRST))\n* @pre ((reg != CPU_R...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:vcpu fix "Pointer param should be declared pointer to const" Fix violations whose parameter can be read-only. This patch only fix the parameter whose name is vcpu. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,783
23.10.2018 11:31:22
-28,800
1568a4c095be50689bd7745649c8086a6c9ca3c2
hv:Remove deadcode 'vm_lapic_from_pcpuid' This api is not used, remove it.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -112,16 +112,6 @@ vm_lapic_from_vcpu_id(struct vm *vm, uint16_t vcpu_id)\nreturn vcpu_vlapic(vcpu);\n}\n-struct acrn_vlapic *\n-vm_lapic_from_pcpuid(struct vm *v...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:Remove deadcode 'vm_lapic_from_pcpuid' This api is not used, remove it. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
528,679
12.10.2018 10:24:34
-28,800
84c0c87842b99e6c8907132e8978c0ef37878576
DM USB: xHCI: Fix a potential NULL pointer issue. After excap pointer is assigned, it should be checked whether it's possible to get assignment for NULL pointer or not. This patch fixes this issue. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -4001,13 +4001,13 @@ pci_xhci_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)\n* ended by EXCAP_GROUP_END at last item.\n*/\nexcap = xdev->excap_ptr;\n- xdev->excapoff =...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: Fix a potential NULL pointer issue. After excap pointer is assigned, it should be checked whether it's possible to get assignment for NULL pointer or not. This patch fixes this issue. Tracked-On: #1479 Signed-off-by: Liang Yang <liang3.yang@intel.com> Reviewed-by: Xiaoguang Wu <xiaoguang.wu@intel.com> R...
528,679
17.10.2018 19:49:07
-28,800
80e02c97080329ddcbb620b5e977ade78a7f1bea
DM USB: xHCI: Fix an potential array out of range issue. When usb device numbers reach up to XHCI_MAX_SLOTS. The slot_allocated array will get out of range. This patch is used to fix this issue. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -373,7 +373,7 @@ struct pci_xhci_vdev {\nstruct pci_xhci_dev_emu **devices; /* XHCI[port] = device */\nstruct pci_xhci_dev_emu **slots; /* slots assigned from 1 */\n- bool slot_al...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: Fix an potential array out of range issue. When usb device numbers reach up to XHCI_MAX_SLOTS. The slot_allocated array will get out of range. This patch is used to fix this issue. Tracked-On: #1479 Signed-off-by: Liang Yang <liang3.yang@intel.com> Reviewed-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acke...
528,733
24.10.2018 15:46:36
-28,800
eb265809af0cabd1cf0493d532d3d44bf0b109ab
DM: multiboot info address in DM for elf loader is wrong. The () was missed during the patch refine. This patch add it. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_elf.c", "new_path": "devicemodel/core/sw_load_elf.c", "diff": "@@ -294,7 +294,7 @@ acrn_sw_load_elf(struct vmctx *ctx)\nctx->bsp_regs.vcpu_regs.gprs.rax = MULTIBOOT_MACHINE_STATE_MAGIC;\nif (multiboot_image == 1) {\n- mi = (struct mult...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: multiboot info address in DM for elf loader is wrong. The () was missed during the patch refine. This patch add it. Tracked-On: #1465 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,802
22.10.2018 11:41:18
-28,800
655132fc8e7af92682c95880e160e4951a380e42
dm: virtio: remove unused vbs_kernel_init Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_kernel.c", "new_path": "devicemodel/hw/pci/virtio/virtio_kernel.c", "diff": "@@ -28,13 +28,7 @@ vbs_vqs_info_set(int fd, void *arg)\n}\n/* VBS-K common ops */\n-/* VBS-K init/reset */\n-int\n-vbs_kernel_init(int fd)\n-{\n- retu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio: remove unused vbs_kernel_init Tracked-On: #1364 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,732
09.10.2018 16:57:48
-28,800
2f8c31f6b4bde947e07670b3c160ec5d8660b967
tools: acrn-crashlog: update the documents This patch updates the documents according to the latest implementation of crashlogctl.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/usercrash/README.rst", "new_path": "tools/acrn-crashlog/usercrash/README.rst", "diff": "@@ -53,19 +53,12 @@ The work flow diagram:\nUsage\n*****\n-- The server is launched automatically at boot, and the client is configured in\n- ``core_pat...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: update the documents This patch updates the documents according to the latest implementation of crashlogctl. Tracked-On: #1024 Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com>
528,665
22.10.2018 13:44:35
0
61a9ca2053ff759cec187fb0d9348b7878bd4d0e
Documentation: Add tutorial about how to use partition mode on UP2 This patch adds tutorial about all the steps you need to take in order to use partition mode with ACRN hypervisor on UP2.
[ { "change_type": "ADD", "old_path": "doc/tutorials/images/partition_mode_grub_menu.png", "new_path": "doc/tutorials/images/partition_mode_grub_menu.png", "diff": "Binary files /dev/null and b/doc/tutorials/images/partition_mode_grub_menu.png differ\n" }, { "change_type": "ADD", "old_path...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: Add tutorial about how to use partition mode on UP2 This patch adds tutorial about all the steps you need to take in order to use partition mode with ACRN hypervisor on UP2. Tracked-On: #1160 Signed-off-by: Kaige Fu <kaige.fu@intel.com>
528,747
25.10.2018 10:25:36
25,200
d764edbf8397e8a6b8af7a641c4eedb390ef422f
doc: update GRUB menu image in partition mode doc Replace the askew photo of a GRUB screen with a ``code-block:: console`` directive.
[ { "change_type": "DELETE", "old_path": "doc/tutorials/images/partition_mode_grub_menu.png", "new_path": "doc/tutorials/images/partition_mode_grub_menu.png", "diff": "Binary files a/doc/tutorials/images/partition_mode_grub_menu.png and /dev/null differ\n" }, { "change_type": "MODIFY", "ol...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update GRUB menu image in partition mode doc Replace the askew photo of a GRUB screen with a ``code-block:: console`` directive. Tracked-On: #1160 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
24.10.2018 17:10:12
25,200
9871b343fa4bae257e2665f23d229fe670af5d2c
doc: update I/O emulation section Transcode, edit, and upload HLD 0.7 sections 3.4 (I/O emulation) Add anchor targets to other docs reference in this section. Update .known-issues filter for "known" doxygen/breathe errors
[ { "change_type": "ADD", "old_path": null, "new_path": "doc/.known-issues/doc/dupdecl.conf", "diff": "+#\n+# Emulated devices\n+#\n+#\n+^(?P<filename>[-._/\\w]+/hld/hld-io-emulation.rst):(?P<lineno>[0-9]+): WARNING: Duplicate declaration.\n" }, { "change_type": "DELETE", "old_path": "doc/...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update I/O emulation section Transcode, edit, and upload HLD 0.7 sections 3.4 (I/O emulation) Add anchor targets to other docs reference in this section. Update .known-issues filter for "known" doxygen/breathe errors Tracked-on: #1592 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
25.10.2018 14:06:07
25,200
f84547cad2aa8da2387c02e04ab1b35a27499d37
doc: move docs to match HLD 0.7 org I/O emulation section was in a different place than in the HLD 0.7 doc
[ { "change_type": "ADD", "old_path": null, "new_path": "doc/developer-guides/hld/hld-emulated-devices.rst", "diff": "+.. _hld-emulated-devices:\n+\n+Emulated devices high-level design\n+##################################\n+\n+.. toctree::\n+ :maxdepth: 1\n+\n+ GVT-g GPU Virtualization <hld-APL_GVT-g>...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: move docs to match HLD 0.7 org I/O emulation section was in a different place than in the HLD 0.7 doc Tracked-on: #1592 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,733
25.10.2018 22:33:57
-28,800
3d94f86812c508d67262f3ee0802027bf2771110
hv: flush cache after update the trampoline code Trampoline code is updated as data when preparing the trampoline code and doing relocation. In this case, we need to flush cache to make sure the updated code is in RAM. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/boot/reloc.c", "new_path": "hypervisor/boot/reloc.c", "diff": "@@ -157,6 +157,7 @@ void write_trampoline_sym(const void *sym, uint64_t val)\nhva = hpa2hva(trampoline_start16_paddr) + trampoline_relo_addr(sym);\n*hva = val;\n+ clflush(hva);\n}\nstati...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: flush cache after update the trampoline code Trampoline code is updated as data when preparing the trampoline code and doing relocation. In this case, we need to flush cache to make sure the updated code is in RAM. Tracked-On: #1604 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Zide Chen <zide.c...
528,659
22.10.2018 13:17:43
-28,800
08a7227fe648c3daecb3a7201eddcd75b86affe5
DM USB: xHCI: fix bug in port unassigning function The function for port unassigning: pci_xhci_clr_native_port_assigned should reset the 'info' member to all zero when it is called. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -588,6 +588,7 @@ pci_xhci_clr_native_port_assigned(struct pci_xhci_vdev *xdev,\nif (i >= 0) {\nxdev->native_ports[i].state = VPORT_FREE;\nxdev->native_ports[i].vport = 0;\n+ memse...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: fix bug in port unassigning function The function for port unassigning: pci_xhci_clr_native_port_assigned should reset the 'info' member to all zero when it is called. Tracked-On: #1434 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang...
528,659
23.10.2018 12:54:59
-28,800
f799e8fa1c93d414d51486fd09b4a899a437c974
DM USB: xHCI: fix process logic of LINK type TRB When the LINK type TRB are received, it should not be counted as valid date block to give libusb. This patch is used to fix it. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/usb_pmapper.c", "new_path": "devicemodel/hw/platform/usb_pmapper.c", "diff": "@@ -390,7 +390,6 @@ usb_dev_prepare_xfer(struct usb_data_xfer *xfer, int *count, int *size)\n* 1. LINK trb is in the middle of trbs.\n* 2. LINK trb is a singl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: fix process logic of LINK type TRB When the LINK type TRB are received, it should not be counted as valid date block to give libusb. This patch is used to fix it. Tracked-On: #1567 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1...
528,659
25.10.2018 12:39:11
-28,800
4261ca223e608a2c954ef84f8f5b3cd24698cab1
DM USB: xHCI: refine logic of Disable Slot Command Remove the changing operation for 'xdev->native_ports[].state' in pci_xhci_cmd_disable_slot. The operation should not be done in this funciton. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/xhci.c", "new_path": "devicemodel/hw/pci/xhci.c", "diff": "@@ -1716,7 +1716,6 @@ pci_xhci_cmd_disable_slot(struct pci_xhci_vdev *xdev, uint32_t slot)\ngoto done;\n}\n- xdev->native_ports[index].state = VPORT_ASSIGNED;\npci_xhci_dev_destroy(d...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM USB: xHCI: refine logic of Disable Slot Command Remove the changing operation for 'xdev->native_ports[].state' in pci_xhci_cmd_disable_slot. The operation should not be done in this funciton. Tracked-On: #1589 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acke...
528,706
27.10.2018 02:42:38
-28,800
3010718d4ab1a0f3266ffe662b032d962a08ddb9
dm: cmdline: remove unused parameters Remove unused parameters for acrn-dm Acked-by: Yin Fengwei
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -121,7 +121,6 @@ SRCS += core/console.c\nSRCS += core/inout.c\nSRCS += core/mem.c\nSRCS += core/post.c\n-SRCS += core/consport.c\nSRCS += core/vmmapi.c\nSRCS += core/mptbl.c\nSRCS += core/m...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: cmdline: remove unused parameters Remove unused parameters for acrn-dm Tracked-On: #1616 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
528,717
22.10.2018 14:49:25
25,200
df549096f26bc5aa587da8f6c4a5e672c6fd10e2
HV:Added support to get phy CPU, VM, tool information This patch includes support to following 1. Collection of physical cpuid information 2. Collection of List of VM's available and information 3. Tool version information 4. Sending tool control information to guest Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/profiling.c", "new_path": "hypervisor/debug/profiling.c", "diff": "*\n* SPDX-License-Identifier: BSD-3-Clause\n*/\n-\n#ifdef PROFILING_ON\n#include <hypervisor.h>\n#define ACRN_DBG_PROFILING 5U\n+#define MAJOR_VERSION 1\n+#define MINOR_VERSION...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:Added support to get phy CPU, VM, tool information This patch includes support to following 1. Collection of physical cpuid information 2. Collection of List of VM's available and information 3. Tool version information 4. Sending tool control information to guest Tracked-On: projectacrn#1409 Acked-by: Eddie Dong ...
528,717
22.10.2018 16:17:14
25,200
a7cbee180226eff07ac4c6eb91a6399089929c7a
HV:Added support to get VM enter and exit information profiling_vmenter_handler:Saves vm information profiling_vmexit_handler: Saves vm information and vm exit reason Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/profiling.c", "new_path": "hypervisor/debug/profiling.c", "diff": "@@ -914,18 +914,71 @@ void profiling_ipi_handler(__unused void *data)\n*/\nvoid profiling_vmenter_handler(__unused struct vcpu *vcpu)\n{\n- /* to be implemented */\n+ if (((get...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:Added support to get VM enter and exit information profiling_vmenter_handler:Saves vm information profiling_vmexit_handler: Saves vm information and vm exit reason Tracked-On: projectacrn#1409 Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Chinthapally, Manisha <manisha.chinthapally@intel.com>
528,717
22.10.2018 16:39:41
25,200
5985c1216e2f467953f406f411b4c28d956a7286
HV:Added implementation for PMI handler function irq.c/.h: Added new variables(ctx_rflags, ctx_rip, ctx_cs) in irq_desc On each interrupt this information is populated Added api's to access the irq_desc members profiling.c: profiling_pmi_handler:On each PMI generates gets the context and other information that caused i...
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/irq.c", "new_path": "hypervisor/arch/x86/irq.c", "diff": "@@ -12,7 +12,7 @@ static spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };\n#define IRQ_ALLOC_BITMAP_SIZE INT_DIV_ROUNDUP(NR_IRQS, 64U)\nstatic uint64_t irq_alloc_bitmap[I...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:Added implementation for PMI handler function irq.c/.h: Added new variables(ctx_rflags, ctx_rip, ctx_cs) in irq_desc On each interrupt this information is populated Added api's to access the irq_desc members profiling.c: profiling_pmi_handler:On each PMI generates gets the context and other information that ca...
528,717
25.10.2018 10:14:00
25,200
b3cb7a53d40be7d0fcd63f08923fde9d9413a9c5
Fix to kernel hang in smp_call_function smp_call_function: smp_call_mask can be modified by more than one process which can cause kernel hang and timeout Adding a lock to smp_call_mask to prevent race condition Acked-by: Xu, Anthony <anthony.xu.intel.com>
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/notify.c", "new_path": "hypervisor/arch/x86/notify.c", "diff": "@@ -25,7 +25,7 @@ static void kick_notification(__unused uint32_t irq, __unused void *data)\nif (smp_call->func != NULL) {\nsmp_call->func(smp_call->data);\n}\n- bitmap_clear_n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Fix to kernel hang in smp_call_function smp_call_function: smp_call_mask can be modified by more than one process which can cause kernel hang and timeout Adding a lock to smp_call_mask to prevent race condition Tracked-On: #1606 Acked-by: Xu, Anthony <anthony.xu.intel.com> Signed-off-by: Manisha Chinthapally <man...
528,747
26.10.2018 15:00:16
25,200
1c54734f8bc68d484810440ae010c7caf443e242
doc: update HLD Timer section transcode, edit, and upload HLD 0.7 section 3.6 (Timer) Also, fix the hv sections file names to be consistent.
[ { "change_type": "MODIFY", "old_path": "doc/.known-issues/doc/dupdecl.conf", "new_path": "doc/.known-issues/doc/dupdecl.conf", "diff": "# Emulated devices\n#\n#\n-^(?P<filename>[-._/\\w]+/hld/hld-io-emulation.rst):(?P<lineno>[0-9]+): WARNING: Duplicate declaration.\n+^(?P<filename>[-._/\\w]+/hld/hv-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update HLD Timer section transcode, edit, and upload HLD 0.7 section 3.6 (Timer) Also, fix the hv sections file names to be consistent. Tracked-on: #1623 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
26.10.2018 16:40:48
25,200
dc7df1cd0f0bb2ecd4f5a15b7b4737ea5686ae78
doc: update HLD Virtual Interrupt transcode, edit, and upload HLD 0.7 section 3.7 (Virtual Interrupt) Add target references in other docs as needed.
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/hld/hld-hypervisor.rst", "new_path": "doc/developer-guides/hld/hld-hypervisor.rst", "diff": "@@ -13,3 +13,4 @@ Hypervisor high-level design\nI/O Emulation <hv-io-emulation>\nPhysical Interrupt <hv-interrupt>\nTimer <hv-timer>\n+ Virtual In...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update HLD Virtual Interrupt transcode, edit, and upload HLD 0.7 section 3.7 (Virtual Interrupt) Add target references in other docs as needed. Tracked-on: #1623 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,768
25.10.2018 22:53:03
-28,800
8860af3b4ca8542f8ff6a8a3e54470439e79033f
dm: fix possible buffer overflow in 'acrn_load_elf()' Will attempt to access element 2048..2049 of array "ptr32" if below conditions are both true: 1) ptr32[i] == MULTIBOOT_HEAD_MAGIC 2) (i == (ELF_BUF_LEN/4) - 1) Acked-by: Fengwei Yin
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_elf.c", "new_path": "devicemodel/core/sw_load_elf.c", "diff": "@@ -194,7 +194,7 @@ acrn_load_elf(struct vmctx *ctx, char *elf_file_name, unsigned long *entry,\n* info prepared.\n*/\nptr32 = (unsigned int *) elf_buf;\n- for (i = 0; i < ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: fix possible buffer overflow in 'acrn_load_elf()' Will attempt to access element 2048..2049 of array "ptr32" if below conditions are both true: 1) ptr32[i] == MULTIBOOT_HEAD_MAGIC 2) (i == (ELF_BUF_LEN/4) - 1) Tracked-On: #1252 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Fengwei Yin <...
528,665
26.10.2018 13:59:00
0
7961a5bad2194d56bc3b90e4c6aa986f1d50dc63
HV: Fix some inconsistent comments in vm_description.c This patch is for fixing inconsistent comments in vm_description.c
[ { "change_type": "MODIFY", "old_path": "hypervisor/partition/vm_description.c", "new_path": "hypervisor/partition/vm_description.c", "diff": "#define NUM_USER_VMS 2U\n-/**********************/\n-/* VIRTUAL MACHINE 0 */\n-/*********************/\n-\n-/* Number of CPUs in this VM*/\n+/* Number of CPUs...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix some inconsistent comments in vm_description.c This patch is for fixing inconsistent comments in vm_description.c Tracked-On: #1160 Signed-off-by: Kaige Fu <kaige.fu@intel.com>
528,802
29.09.2018 09:14:00
-28,800
e12f88b8c7ca1df85fb88089439485c3c44d1382
dm: virtio-console: remove unused virtio_console_cfgwrite Virtio-console device specific configuration is readonly, callback for the cfgwrite is not required. This patch removed the unused virtio_console_cfgwrite. Acked-by: Yu Wang
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_console.c", "new_path": "devicemodel/hw/pci/virtio/virtio_console.c", "diff": "@@ -148,7 +148,6 @@ static void virtio_console_reset(void *);\nstatic void virtio_console_notify_rx(void *, struct virtio_vq_info *);\nstatic void v...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-console: remove unused virtio_console_cfgwrite Virtio-console device specific configuration is readonly, callback for the cfgwrite is not required. This patch removed the unused virtio_console_cfgwrite. Tracked-On: #1364 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yu Wang <yu1.wang@int...
528,783
24.10.2018 13:28:13
-28,800
298044d95b20bf4a8732862e4e825797ee9e8b46
hv: Add MAX_PCPU_NUM in Kconfig Removed MAX_PCPU_NUM in cpu.h Changed the default value from 128 to 8 for MAX_PCPU_NUM Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/Kconfig", "new_path": "hypervisor/arch/x86/Kconfig", "diff": "@@ -42,6 +42,11 @@ config MAX_VCPUS_PER_VM\nrange 1 8\ndefault 4\n+config MAX_PCPU_NUM\n+ int \"Maximum number of PCPU\"\n+ range 1 8\n+ default 8\n+\nconfig MAX_IOMMU_NUM\nint \...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Add MAX_PCPU_NUM in Kconfig --Removed MAX_PCPU_NUM in cpu.h --Changed the default value from 128 to 8 for MAX_PCPU_NUM 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,783
24.10.2018 13:30:48
-28,800
672583a091cdc4199e4c175e9f5585c6e0a65a35
hv: Check pcpu number in Hw platform detect if the physical number > CONFIG_MAX_PCPU_NUM, will return error and panic. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -259,6 +259,11 @@ static int hardware_detect_support(void)\nreturn -ENODEV;\n}\n+ if (phys_cpu_num > CONFIG_MAX_PCPU_NUM) {\n+ pr_fatal(\"%s, pcpu number(%d) is out of range\\n\",...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Check pcpu number in Hw platform detect if the physical number > CONFIG_MAX_PCPU_NUM, will return error and panic. 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>