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,654 | 11.01.2019 22:09:59 | -28,800 | cd85115ec953251e57a6a4ac13f500a284202399 | hv: instr_emul: refine vie_calculate_gla to void
It always return zero, so there is no need to check the return vaule from it.
Just refine it to void.
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": "@@ -485,13 +485,9 @@ static bool is_desc_valid(struct seg_desc *desc, uint32_t prot)\n*@pre seg must be segment register index\n*@pre length_arg must be 1, ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: instr_emul: refine vie_calculate_gla to void
It always return zero, so there is no need to check the return vaule from it.
Just refine it to void.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 11.01.2019 07:58:53 | -28,800 | 433a492a4e8109b7f736ee8aa6e22d59f4555cfe | hv: instr_emul: remove goto in get_gva_di_check
remove goto statement in get_gva_di_check() routine
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": "@@ -999,14 +999,12 @@ static int32_t get_gva_di_check(struct acrn_vcpu *vcpu, struct instr_emul_vie *v\nstatic int32_t emulate_movs(struct acrn_vcpu *vcpu, ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: instr_emul: remove goto in get_gva_di_check
remove goto statement in get_gva_di_check() routine
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 11.01.2019 08:12:02 | -28,800 | 5e38e0ffd6647b207c7a34f9cd2ed9a456b5ff8d | hv: instr_emul: refine decode_prefixes to one exit point
Misra C requires Function must have only one return entry.
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": "@@ -1698,16 +1698,16 @@ static bool segment_override(uint8_t x, enum cpu_reg_name *seg)\nreturn override;\n}\n-static int32_t decode_prefixes(struct instr_e... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: instr_emul: refine decode_prefixes to one exit point
Misra C requires Function must have only one return entry.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 11.01.2019 08:23:51 | -28,800 | f582556865f4ba044f8c9aa11aa42f7ba670f1c9 | hv: instr_emul: add `const` qualifier for some function
Add `const` qualifier for is_desc_valid and vie_calculate_gla
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": "@@ -445,7 +445,7 @@ static int32_t vie_canonical_check(enum vm_cpu_mode cpu_mode, uint64_t gla)\nreturn ret;\n}\n-static bool is_desc_valid(struct seg_desc ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: instr_emul: add `const` qualifier for some function
Add `const` qualifier for is_desc_valid and vie_calculate_gla
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,652 | 11.01.2019 15:38:27 | 28,800 | 92d7018249189871221de42881ea26b09642b9cd | hv: fix 2 minor MISRA-C violations in inst_emul.c
Signed integral type cast to unsigned. : (unsigned long and long)
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": "@@ -784,7 +784,7 @@ static int32_t emulate_mov(struct acrn_vcpu *vcpu, const struct instr_emul_vie *\n* REX.W + C7/0 mov r/m64, imm32\n* (sign-extended to 6... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix 2 minor MISRA-C violations in inst_emul.c
Signed integral type cast to unsigned. : (unsigned long and long)
Tracked-On: #861
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,783 | 11.01.2019 14:12:30 | -28,800 | dbd5c1415e81276d808b856defaf506abfa9d4fc | hv:fix MISRA-C violation in multiboot.c
fix this violation "Value is not of appropriate type"
in get_kernel_load_addr() | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/multiboot.c",
"new_path": "hypervisor/boot/sbl/multiboot.c",
"diff": "@@ -139,10 +139,10 @@ static void *get_kernel_load_addr(void *kernel_src_addr)\n*/\nzeropage = (struct zero_page *)kernel_src_addr;\nif (zeropage->hdr.relocatable_kernel ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fix MISRA-C violation in multiboot.c
fix this violation "Value is not of appropriate type"
in get_kernel_load_addr()
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> |
528,772 | 11.01.2019 10:27:09 | 0 | 270d2d2727daf838b0d2944bec06f17cd29df44f | hv: virq: fix attempt to change parameter passed by value
The MISRA C stardand do not allow change parameter passed by value
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -187,9 +187,12 @@ static int32_t get_excep_class(uint32_t vector)\n}\n}\n-int32_t vcpu_queue_exception(struct acrn_vcpu *vcpu, uint32_t vector, uint32_t err_code)\n+int32_t vcpu... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: virq: fix attempt to change parameter passed by value
The MISRA C stardand do not allow change parameter passed by value
Tracked-On: #861
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,747 | 08.01.2019 16:52:15 | 28,800 | a6cef1095f7a87c1a3ded55523531ebb448a80a7 | doc: add GVT-g kernel options doc
Update developer docs with a new GVT-g kernel options document. Update
existing docs with referenced labels. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "doc/developer-guides/GVT-g-kernel-options.rst",
"diff": "+.. _GVT-g-kernel-options:\n+\n+GVT-g (AcrnGT) Kernel Options\n+#############################\n+\n+AcrnGT supports flexible configurations so customers can configure\n+AcrnGT easily, accor... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add GVT-g kernel options doc
Update developer docs with a new GVT-g kernel options document. Update
existing docs with referenced labels.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,801 | 14.01.2019 10:42:08 | -28,800 | d5052abff93ce2d5371f51e8d72f3563a7cf0891 | hv: string: rename `s1` and `s2`
Commit 005546 introduces some functions like s0, s1, s2.
This patch renames `s1` and `s2` in string.c to avoid the name conflict. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/lib/string.c",
"new_path": "hypervisor/lib/string.c",
"diff": "@@ -221,29 +221,30 @@ size_t strnlen_s(const char *str_arg, size_t maxlen_arg)\nint32_t strcmp(const char *s1_arg, const char *s2_arg)\n{\n- const char *s1 = s1_arg;\n- const char *s2 = ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: string: rename `s1` and `s2`
Commit 005546 introduces some functions like s0, s1, s2.
This patch renames `s1` and `s2` in string.c to avoid the name conflict.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,654 | 13.01.2019 05:40:59 | -28,800 | 0c27c9586ba23b1d08e2438a5abb5d795f2b4b87 | hv: security: remove superfluous prototype
An external object or function shall be declared once in one and only one file.
Since it already declared in include/arch/x86/security.h, we shall remove it. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/cpu_caps.h",
"new_path": "hypervisor/include/arch/x86/cpu_caps.h",
"diff": "@@ -45,8 +45,6 @@ bool cpu_has_vmx_ept_cap(uint32_t bit_mask);\nbool cpu_has_vmx_vpid_cap(uint32_t bit_mask);\nvoid init_cpu_capabilities(void);\nvoid init_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: security: remove superfluous prototype
An external object or function shall be declared once in one and only one file.
Since it already declared in include/arch/x86/security.h, we shall remove it.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 14.01.2019 06:36:45 | -28,800 | 65f3383d62a2d71147b322a04e723cda15f449a9 | hv: coding style: remove unnecessary conditional operators
Condtional operators which will add code cyclomatic complexity. So replace the
unnecessary conditional operators. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -1737,10 +1737,10 @@ static int32_t decode_prefixes(struct instr_emul_vie *vie, enum vm_cpu_mode cpu_\n*/\nif ((cpu_mode == CPU_MODE_64BIT) && (x >= 0x40... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: coding style: remove unnecessary conditional operators
Condtional operators which will add code cyclomatic complexity. So replace the
unnecessary conditional operators.
Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,768 | 11.01.2019 21:15:24 | -28,800 | 67c7422aed20afe2049be066787d784e837100ec | hv: fix coding style violations in acpi.c
1. to avoid data type cast when using 'global_rsdp'
2. other minor fix
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/acpi.c",
"new_path": "hypervisor/boot/acpi.c",
"diff": "@@ -100,7 +100,7 @@ struct acpi_madt_local_apic {\nuint32_t lapic_flags;\n};\n-static void *global_rsdp;\n+static struct acpi_table_rsdp *acpi_rsdp;\nstatic struct acpi_table_rsdp*\nfound_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix coding style violations in acpi.c
1. to avoid data type cast when using 'global_rsdp'
2. other minor fix
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,702 | 15.01.2019 06:25:49 | -28,800 | 6bdcaf7fe4592daeb5ae6910135e87c84a125991 | Doc: Add one new known issue into v0.5 release note | [
{
"change_type": "MODIFY",
"old_path": "doc/release_notes_0.5.rst",
"new_path": "doc/release_notes_0.5.rst",
"diff": "@@ -246,6 +246,13 @@ Known Issues\n**Workaround:** Unplug and plug-in the USB keyboard and mouse after exiting UOS.\n+:acrn-issue:`2338` - [UP2]Lost 2G memory in SOS when using SBL a... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Doc: Add one new known issue into v0.5 release note
Signed-off-by: Xie, nanlin <nanlin.xie@intel.com> |
528,794 | 14.01.2019 08:44:01 | -28,800 | 952356099c6eb0b1860f6ddf8cdd6331686dd243 | HV: rename dnv_cb2 to dnv-cb2
To follow the same (albeit implicit) convention with apl-mrb and use dnv-cb2. | [
{
"change_type": "RENAME",
"old_path": "hypervisor/arch/x86/configs/dnv_cb2.config",
"new_path": "hypervisor/arch/x86/configs/dnv-cb2.config",
"diff": "# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)\nCONFIG_PARTITION_MODE=y\n-CONFIG_BOARD=\"dnv_cb2\"\n+CONFIG_BOARD=\"dnv-cb2\"\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: rename dnv_cb2 to dnv-cb2
To follow the same (albeit implicit) convention with apl-mrb and use dnv-cb2.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com> |
528,776 | 07.01.2019 16:23:28 | -28,800 | 6a1c865671668edd1ab564c64291274d6c46123a | HV: add empty else statement for if condition in vlapic.c
To meeting MISRA, add empty else {} for corresponding if-else-if {}.
Also, remove a DD flow violation in vlapic_free()
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1211,6 +1211,8 @@ vlapic_process_init_sipi(struct acrn_vcpu* target_vcpu, uint32_t mode,\nschedule_vcpu(target_vcpu);\n}\n}\n+ } else {\n+ /* No other state cur... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add empty else statement for if condition in vlapic.c
To meeting MISRA, add empty else {} for corresponding if-else-if {}.
Also, remove a DD flow violation in vlapic_free()
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 08.01.2019 10:55:47 | -28,800 | aebb971d41ef942fa7d523d6866c0c87d1a5349f | HV: misra clean for guest.c file
to meeting MISRA, add more bracks for if conditions; also a small
change to copy_gpa() to fix DD flow complaint from MISRA
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -120,8 +120,8 @@ static int32_t local_gva2gpa_common(struct acrn_vcpu *vcpu, const struct page_wa\n}\n/* check for R/W */\n- if ((fault == 0) && (entry & PAGE_RW) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: misra clean for guest.c file
to meeting MISRA, add more bracks for if conditions; also a small
change to copy_gpa() to fix DD flow complaint from MISRA
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 08.01.2019 18:54:23 | -28,800 | 2ca218bfb88d2e724372297a897113ee5b384d37 | HV: Removed ununsed struct vm_lu_mem_map from guest.h
The struct vm_lu_mem_map is not used by code. Remove it.
Also, add bracks () for the variables in macro foreach_vcpu.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/guest.h",
"new_path": "hypervisor/include/arch/x86/guest/guest.h",
"diff": "#include <mmu.h>\n#define foreach_vcpu(idx, vm, vcpu) \\\n- for ((idx) = 0U, vcpu = &(vm->hw.vcpu_array[(idx)]); \\\n- (idx) < vm->hw.created_vcpus; \... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Removed ununsed struct vm_lu_mem_map from guest.h
The struct vm_lu_mem_map is not used by code. Remove it.
Also, add bracks () for the variables in macro foreach_vcpu.
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,776 | 08.01.2019 12:05:31 | -28,800 | dc6d1d5fa759156965bccbb7a98760a707d64a4a | HV: fix MISRA issue in apicv_pending_intr()
Remove multi-return statement in apicv_pending_intr().
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -2291,32 +2291,37 @@ apicv_pending_intr(const struct acrn_vlapic *vlapic)\nconst struct lapic_regs *lapic;\nuint64_t pending, pirval;\nuint32_t i, ppr, vpr;\n+ i... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: fix MISRA issue in apicv_pending_intr()
Remove multi-return statement in apicv_pending_intr().
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,744 | 14.01.2019 11:30:36 | -28,800 | 7c56243225d9ef2298753a8957569483e85c2059 | hv: hv_main: adjust vm exit trace position
When we use script to analyze the latency between vm_exit and vm_entry,
it does not include the duration of vm_exit handler.
The patch moves the vm_exit trace before vmexit_handler.
v2: move vm_exit trace right after run_vcpu. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hv_main.c",
"new_path": "hypervisor/common/hv_main.c",
"diff": "@@ -58,16 +58,17 @@ void vcpu_thread(struct sched_object *obj)\ncontinue;\n}\n- TRACE_2L(TRACE_VM_ENTER, 0UL, 0UL);\n-\nprofiling_vmenter_handler(vcpu);\n+ TRACE_2L(TRACE_VM_ENTE... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: hv_main: adjust vm exit trace position
When we use script to analyze the latency between vm_exit and vm_entry,
it does not include the duration of vm_exit handler.
The patch moves the vm_exit trace before vmexit_handler.
v2: move vm_exit trace right after run_vcpu.
Tracked-On: #2341
Signed-off-by: Zhipeng Gong ... |
528,795 | 14.01.2019 16:22:46 | -28,800 | b4a1dd2b56e14c7307f3156b995e4c05a396bef5 | hv: fix identifier reuse violations in sha256.c
Refer to sha256 description to rename function name
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/lib/crypto/mbedtls/sha256.c",
"new_path": "hypervisor/lib/crypto/mbedtls/sha256.c",
"diff": "@@ -82,44 +82,44 @@ static inline uint32_t shr(uint32_t x, uint8_t n)\nreturn ((x & 0xFFFFFFFFU) >> n);\n}\n-static inline uint32_t port(uint32_t x, uint8_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix identifier reuse violations in sha256.c
Refer to sha256 description to rename function name
Tracked-On: #861
Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,648 | 16.01.2019 11:11:09 | -28,800 | 34b4294334c3fb057e27dd4dd691e47fc32bb7c1 | Doc: Update GSG for v0.5 version and launch and acrn.conf sample script
modify sbl_up2 version and scripts | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/nuc/launch_uos.sh",
"new_path": "devicemodel/samples/nuc/launch_uos.sh",
"diff": "@@ -21,7 +21,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \\\n-s 2,pci-gvt -G \"$3\" \\\n-s 5,virtio-console,@pty:pty_port \\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Doc: Update GSG for v0.5 version and launch and acrn.conf sample script
modify sbl_up2 version and scripts |
528,647 | 14.01.2019 21:48:52 | -28,800 | 6641bc79492799fc04290280070c780773558cf0 | hv: remove ACRN_REQUEST_TMR_UPDATE and unnecessary codes
Because ACRN_REQUEST_TMR_UPDATE is not needed anymore, this commit remove
the MACRO definition and its related logic, including following functions:
apicv_batch_set_tmr()
vlapic_apicv_batch_set_tmr()
vlapic_set_tmr_one_vec()
vioapic_update_tmr()
Acked-by: Eddie D... | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -83,9 +83,6 @@ apicv_set_intr_ready(struct acrn_vlapic *vlapic, uint32_t vector);\nstatic int32_t\napicv_pending_intr(const struct acrn_vlapic *vlapic);\n-static... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove ACRN_REQUEST_TMR_UPDATE and unnecessary codes
Because ACRN_REQUEST_TMR_UPDATE is not needed anymore, this commit remove
the MACRO definition and its related logic, including following functions:
- apicv_batch_set_tmr()
- vlapic_apicv_batch_set_tmr()
- vlapic_set_tmr_one_vec()
- vioapic_update_tmr()
Tracked... |
528,772 | 16.01.2019 20:12:34 | -28,800 | ae144e1a56d11978c48a76fd93dcc9a290c877aa | hv:fix MISRA-C violation in virq.c
The MISRA-C Standards suggests procedures to be single exit
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -177,14 +177,18 @@ static int32_t vcpu_do_pending_extint(const struct acrn_vcpu *vcpu)\n/* SDM Vol3 -6.15, Table 6-4 - interrupt and exception classes */\nstatic int32_t get_exc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fix MISRA-C violation in virq.c
The MISRA-C Standards suggests procedures to be single exit
Tracked-On: #861
Acked-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,783 | 17.01.2019 09:40:13 | -28,800 | 6372548e1185b1b3c7ad8e40d7c08a86b8fa2d56 | hv:Fix violation "Cyclomatic complexity greater than 20" in instr_emul.c
Split decode_prefixes() to 2 small APIs
v1-->v2:
split decode_prefixes to 2 APIs
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": "@@ -1698,6 +1698,35 @@ static bool segment_override(uint8_t x, enum cpu_reg_name *seg)\nreturn override;\n}\n+static void decode_op_and_addr_size(struct ins... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Fix violation "Cyclomatic complexity greater than 20" in instr_emul.c
Split decode_prefixes() to 2 small APIs
v1-->v2:
split decode_prefixes to 2 APIs
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 15.01.2019 15:24:00 | -28,800 | 8265770f0527d7cf84aa24ce2ed5e4a266fc3184 | hv:Change acrn_vhm_vector to static
Change acrn_vhm_vector to static, only used in io_request.c
Add set_vhm_vector() api, it will call this api instead of
acrn_vhm_vector except io_request.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/hypercall.c",
"new_path": "hypervisor/common/hypercall.c",
"diff": "@@ -1138,7 +1138,7 @@ int32_t hcall_set_callback_vector(const struct acrn_vm *vm, uint64_t param)\npr_err(\"%s: Invalid passed vector\\n\");\nret = -EINVAL;\n} else {\n- acrn... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Change acrn_vhm_vector to static
-- Change acrn_vhm_vector to static, only used in io_request.c
-- Add set_vhm_vector() api, it will call this api instead of
acrn_vhm_vector except io_request.c
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com... |
528,671 | 16.01.2019 10:17:01 | -28,800 | fe35dde42111520d92b7e68ce6475fbb0e4fce60 | Makefile: support SBL binary for E2E build
Currently, we support SBL on two different boards.
So build and install them all in E2E build. | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -54,9 +54,11 @@ ifeq ($(FIRMWARE),uefi)\nendif\nsbl-hypervisor:\n- @mkdir -p $(HV_OUT)-sbl\n- make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT)-sbl BOARD=apl-mrb FIRMWARE=sbl RELEASE=$(RELEASE) clean\n- make -C $(T)/hyp... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: support SBL binary for E2E build
Currently, we support SBL on two different boards.
So build and install them all in E2E build.
Tracked-On: #2344
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,794 | 15.01.2019 15:44:30 | -28,800 | c4a230f313544433a3a6b3732ec36d0eadba7464 | HV: rename the term of vm_description to vm_config
This patch is a pure term change of vm_description to vm_config,
the struct name of vm_description is changed to acrn_vm_config.
The patch does not change any code logic or senmantic.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -2087,7 +2087,7 @@ static int32_t vlapic_x2apic_access(struct acrn_vcpu *vcpu, uint32_t msr, bool w\nvlapic = vcpu_vlapic(vcpu);\nif (is_x2apic_enabled(vlapic)) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: rename the term of vm_description to vm_config
This patch is a pure term change of vm_description to vm_config,
the struct name of vm_description is changed to acrn_vm_config.
The patch does not change any code logic or senmantic.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddi... |
528,794 | 17.01.2019 09:10:10 | -28,800 | a8e4f227ba879c5ea2957354e4af92211d82e515 | HV: add new acrn_vm_config member and config files
add new struct member for acrn_vm_config;
add sharing_config.c file with initialized vm_config array;
add SOS VM config header for apl-mrb/apl-nuc/up2 and dnv-cb2 board;
and partition_config.c file with dummy vm_config array;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -109,6 +109,7 @@ INCLUDE_PATH += include/dm\nINCLUDE_PATH += bsp/include\nINCLUDE_PATH += boot/include\nINCLUDE_PATH += $(HV_OBJDIR)/include\n+INCLUDE_PATH += arch/x86/configs/$(CONFIG_BOARD)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add new acrn_vm_config member and config files
- add new struct member for acrn_vm_config;
- add sharing_config.c file with initialized vm_config array;
- add SOS VM config header for apl-mrb/apl-nuc/up2 and dnv-cb2 board;
- and partition_config.c file with dummy vm_config array;
Tracked-On: #2291
Signed-off-... |
528,794 | 15.01.2019 21:11:51 | -28,800 | d9c38bafa5fb5358f0989dd5e2f864afdf40d423 | HV: remove unused mptable info
mptable pointer in acrn_vm_config struct and also extern struct mptable_vm1/2
declared in mptable.h are not used any more, remove them.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vm.h",
"new_path": "hypervisor/include/arch/x86/guest/vm.h",
"diff": "@@ -225,7 +225,6 @@ struct acrn_vm_config {\nbool sworld_supported;\n#ifdef CONFIG_PARTITION_MODE\nuint8_t vm_id;\n- struct mptable_info *mptable;\nuint64_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove unused mptable info
mptable pointer in acrn_vm_config struct and also extern struct mptable_vm1/2
declared in mptable.h are not used any more, remove them.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 18.01.2019 13:55:01 | -28,800 | 1d98b7012d712c1bbce58b56205b41718563f2e5 | hv: move 'setup_io_bitmap' to vm.c
move this api from io_emul.c to vm.c to avoid reverse
dependency | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hv-io-emulation.rst",
"new_path": "doc/developer-guides/hld/hv-io-emulation.rst",
"diff": "@@ -310,9 +310,6 @@ The following structure represents a MMIO handler.\nThe following APIs are provided to initialize, deinitialize or configure... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move 'setup_io_bitmap' to vm.c
move this api from io_emul.c to vm.c to avoid reverse
dependency
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 | 18.01.2019 14:04:09 | -28,800 | 55e5ed2e1a07405b7592b9e4a221acdfa45554d5 | hv:move ept violation handler to io_emul.c
move this api from ept.c to io_emul.c to avoid
reverse dependency. | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hv-io-emulation.rst",
"new_path": "doc/developer-guides/hld/hv-io-emulation.rst",
"diff": "@@ -341,3 +341,6 @@ The following APIs are provided for I/O emulation at runtime:\n.. doxygenfunction:: pio_instr_vmexit_handler\n:project: Proj... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:move ept violation handler to io_emul.c
move this api from ept.c to io_emul.c to avoid
reverse dependency.
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,794 | 21.01.2019 15:33:17 | -28,800 | ec199d9609423aef2076ac46e4b8fd315b6d0b05 | HV: add get_sos_vm api
This patch creates a new get_sos_vm() api to replace get_vm_from_vmid(0U)
because VM 0 might not be SOS VM now;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -73,6 +73,12 @@ struct acrn_vm *get_vm_from_vmid(uint16_t vm_id)\nreturn &vm_array[vm_id];\n}\n+/* return a pointer to the virtual machine structure of SOS VM */\n+struc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add get_sos_vm api
This patch creates a new get_sos_vm() api to replace get_vm_from_vmid(0U)
because VM 0 might not be SOS VM now;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 01:08:31 | -28,800 | 2e32fba53616ba853654e40abb9b8431e430be0e | HV: remove sworld_supported in acrn_vm_config
We will use guest_flags of SECURE_WORLD_ENABLED to check wthether
sworld is supported.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -139,7 +139,9 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_\n} else {\n/* populate UOS vm fields according to vm_config */\n- vm->s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove sworld_supported in acrn_vm_config
We will use guest_flags of SECURE_WORLD_ENABLED to check wthether
sworld is supported.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 20.01.2019 02:43:15 | -28,800 | bc62ab79c2551aa1c3b0ae898dcf105851c981bf | HV: remove unused vm num config
The VM number configuration in description.c is never used, remove it;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/partition/apl-mrb/vm_description.c",
"new_path": "hypervisor/partition/apl-mrb/vm_description.c",
"diff": "#include <hypervisor.h>\n#include <e820.h>\n-#define NUM_USER_VMS 2U\n-\n/* Number of CPUs in VM1 */\n#define VM1_NUM_CPUS 2U\n@@ -151,8 +149,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove unused vm num config
The VM number configuration in description.c is never used, remove it;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 15:36:31 | -28,800 | 7bf9b1be2cd36094bc4846256fc34b5773398cbc | HV: enable pcpu bitmap config for partition mode
All the legacy cpu configration in vm_description.c are all cleaned up;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -91,6 +91,26 @@ static inline uint16_t get_vm_bsp_pcpu_id(const struct acrn_vm_config *vm_config\nreturn (cpu_id < get_pcpu_nums()) ? cpu_id : INVALID_CPU_ID;\n}\n+#ifde... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: enable pcpu bitmap config for partition mode
All the legacy cpu configration in vm_description.c are all cleaned up;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 02:18:05 | -28,800 | 253b25937b1e4c11918a27b64b3f21919b4fd99a | HV: remove vm_config pointer in acrn_vm struct
For each vm_array[] item, its config is located in corresponding
index of vm_configs[], so vm_config pointer is not needed any more.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -2087,7 +2087,9 @@ static int32_t vlapic_x2apic_access(struct acrn_vcpu *vcpu, uint32_t msr, bool w\nvlapic = vcpu_vlapic(vcpu);\nif (is_x2apic_enabled(vlapic)) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove vm_config pointer in acrn_vm struct
For each vm_array[] item, its config is located in corresponding
index of vm_configs[], so vm_config pointer is not needed any more.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 02:47:05 | -28,800 | 23f8e5e598efb2810973db98c3d9c558cc4e5d6f | HV: replace memory config with acrn_vm_mem_config
The member of mem_size and start_hpa in acrn_vm_config struct will
be replaced with the acrn_vm_mem_config struct;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -174,7 +174,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_\n&vm_config->GUID[0], sizeof(vm_config->GUID));\n#ifdef CONFIG_PARTITIO... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: replace memory config with acrn_vm_mem_config
The member of mem_size and start_hpa in acrn_vm_config struct will
be replaced with the acrn_vm_mem_config struct;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 02:56:01 | -28,800 | 68aa718ca0ad8179234e41140a5d2c5ff4909631 | HV: replace bootargs config with acrn_vm_os_config
The member of bootargs in acrn_vm_config will be replaced by
acrn_vm_os_config struct.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/multiboot.c",
"new_path": "hypervisor/boot/sbl/multiboot.c",
"diff": "@@ -49,8 +49,8 @@ int32_t init_vm_boot_info(struct acrn_vm *vm)\nvm->sw.kernel_info.kernel_src_addr = hpa2hva((uint64_t)mods[0].mm_mod_start);\nvm->sw.kernel_info.kernel_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: replace bootargs config with acrn_vm_os_config
The member of bootargs in acrn_vm_config will be replaced by
acrn_vm_os_config struct.
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 21.01.2019 02:29:46 | -28,800 | 18dbdfd5d7a0347406f4d89d37bb502f52786f9c | HV: replace lapic_pt with guest flag in vm_config
The member of lapic_pt in acrn_vm_config will be replaced by
guest_flag of LAPIC_PASSTHROUGH;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -2089,7 +2089,7 @@ static int32_t vlapic_x2apic_access(struct acrn_vcpu *vcpu, uint32_t msr, bool w\n#ifdef CONFIG_PARTITION_MODE\nstruct acrn_vm_config *vm_conf... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: replace lapic_pt with guest flag in vm_config
The member of lapic_pt in acrn_vm_config will be replaced by
guest_flag of LAPIC_PASSTHROUGH;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 18.01.2019 16:43:50 | -28,800 | 173b534b050f88bf825f876027f17e0c425466b5 | HV: modularization cleanup instr_emul header file
separate the private macro/structure/functions, which are just used
in instr_emul.c;
and move instr_emul.h to public include path.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "#include <hypervisor.h>\n-#include \"guest/instr_emul.h\"\n+#include <instr_emul.h>\n#define ACRN_DBG_EPT 6U\n"
},
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: modularization cleanup instr_emul header file
separate the private macro/structure/functions, which are just used
in instr_emul.c;
and move instr_emul.h to public include path.
Tracked-On: #1842
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,671 | 22.01.2019 11:12:53 | -28,800 | 862ed16ed74894aa4d5831bc344d5eb91be378f3 | Makefile: add rules for installing debug information
Add rules for installing debug information. | [
{
"change_type": "MODIFY",
"old_path": "Makefile",
"new_path": "Makefile",
"diff": "@@ -89,10 +89,22 @@ ifeq ($(FIRMWARE),uefi)\nmake -C $(T)/efi-stub HV_OBJDIR=$(HV_OUT) EFI_OBJDIR=$(EFI_OUT) all install\nendif\n+hypervisor-install-debug:\n+ifeq ($(FIRMWARE),sbl)\n+ make -C $(T)/hypervisor HV_OBJDI... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: add rules for installing debug information
Add rules for installing debug information.
Tracked-On: #2344
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,801 | 22.01.2019 14:09:18 | -28,800 | b489aec3e1b7705a3e7a38e21622ca9785d96b4c | hv: idt: separate the MACRO definition
For binutils <= 2.26:
'U' suffix for unsigned constant is not accepted by binutils assembler.
This patch separates the MACRO definition for ASSEMBLER
and non-ASSEMBLER code in idt.h | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/idt.h",
"new_path": "hypervisor/include/arch/x86/idt.h",
"diff": "* IDT is defined in assembly so we handle exceptions as early as possible.\n*/\n-/* Interrupt Descriptor Table (LDT) selectors are 16 bytes on x86-64 instead of\n- * ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: idt: separate the MACRO definition
For binutils <= 2.26:
'U' suffix for unsigned constant is not accepted by binutils assembler.
This patch separates the MACRO definition for ASSEMBLER
and non-ASSEMBLER code in idt.h
Tracked-On: #2200
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,801 | 22.01.2019 16:14:27 | -28,800 | a9709bf857b46610fe26e9449984a0e9cb2121bb | hv: Makefile: add the dependency of $(LIB_FLAGS)
This patch adds the dependency of $(LIB_FLAGS) when building .out file.
So that the target is updated whenever there is a update in
debug/release library. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -333,7 +333,7 @@ $(HV_OBJDIR)/$(HV_FILE).32.out: $(HV_OBJDIR)/$(HV_FILE).out\n$(HV_OBJDIR)/$(HV_FILE).bin: $(HV_OBJDIR)/$(HV_FILE).out\n$(OBJCOPY) -O binary $< $(HV_OBJDIR)/$(HV_FILE).bin\n-$... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Makefile: add the dependency of $(LIB_FLAGS)
This patch adds the dependency of $(LIB_FLAGS) when building .out file.
So that the target is updated whenever there is a update in
debug/release library.
Tracked-On: #2389
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,766 | 10.01.2019 16:27:15 | 28,800 | d1e1aa3077a6f08d042dd53d7fac1b7db64c49d0 | dm: create mevent's pipe in non-blocking mode
It was designed to be used in non-blocking mode to prevent the mevent
thread from blocking itself indefinitely, but it was created in
blocking mode.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/mevent.c",
"new_path": "devicemodel/core/mevent.c",
"diff": "#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n+#include <fcntl.h>\n#include <unistd.h>\n#include <sys/epoll.h>\n#include <sys/queue.h>\n@@ -96,7 +97,7 @@ static void... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: create mevent's pipe in non-blocking mode
It was designed to be used in non-blocking mode to prevent the mevent
thread from blocking itself indefinitely, but it was created in
blocking mode.
Tracked-On: #2319
Signed-off-by: Peter Fang <peter.fang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,766 | 10.01.2019 18:58:38 | 28,800 | 0f7535fdbeb9772884655bfc956df86cb2c55493 | dm: add absolute timer mode
Allow specifying the initial expiration in absolute time.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/timer.c",
"new_path": "devicemodel/core/timer.c",
"diff": "@@ -102,7 +102,7 @@ acrn_timer_deinit(struct acrn_timer *timer)\n}\nint32_t\n-acrn_timer_settime(struct acrn_timer *timer, struct itimerspec *new_value)\n+acrn_timer_settime(struct acr... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: add absolute timer mode
Allow specifying the initial expiration in absolute time.
Tracked-On: #2319
Signed-off-by: Peter Fang <peter.fang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,766 | 10.01.2019 19:31:26 | 28,800 | 0343da8c70e8bc8e931db3a327134700de5baeb7 | dm: vhpet: add HPET-related header files
Add the necessary header files for vHPET.
Origin: FreeBSD
License: BSD-3-Clause
URL:
commit: 326257
Purpose: Adding vHPET support.
Maintained-by: External
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/acpi/acpi.c",
"new_path": "devicemodel/hw/platform/acpi/acpi.c",
"diff": "#include \"pci_core.h\"\n#include \"tpm.h\"\n#include \"vmmapi.h\"\n+#include \"hpet.h\"\n/*\n* Define the base address of the ACPI tables, and the offsets to\n@@... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: vhpet: add HPET-related header files
Add the necessary header files for vHPET.
Origin: FreeBSD
License: BSD-3-Clause
URL: https://svnweb.freebsd.org/
commit: 326257
Purpose: Adding vHPET support.
Maintained-by: External
Tracked-On: #2319
Signed-off-by: Peter Fang <peter.fang@intel.com>
Acked-by: Anthony Xu <anth... |
528,801 | 23.01.2019 10:34:06 | -28,800 | 5e94788689aab06a799d817eb56dab2f4c86da17 | hv: vlapic: remove `calcvdest`
remove `calcvdest` and use `vlapic_calcdest` directly
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -80,7 +80,7 @@ static void ptirq_build_physical_msi(struct acrn_vm *vm, struct ptirq_msi_info *\ndest = (uint32_t)(info->vmsi_addr & MSI_ADDR_DEST) >> MSI_ADDR_DEST_SHIFT;\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vlapic: remove `calcvdest`
- remove `calcvdest` and use `vlapic_calcdest` directly
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,675 | 18.01.2019 13:50:21 | -28,800 | 21092e6f6de02fcb18da79d30913fb1cf636a92c | schedule: use per_cpu idle object
To support full context switch scheduling, each physical
CPU must have its own idle sched_obj.
Acked-by: Xu, Anthony | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/schedule.c",
"new_path": "hypervisor/common/schedule.c",
"diff": "#include <schedule.h>\nstatic uint64_t pcpu_used_bitmap;\n-static struct sched_object idle;\nvoid init_scheduler(void)\n{\n@@ -191,7 +190,7 @@ void schedule(void)\nrelease_sche... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | schedule: use per_cpu idle object
To support full context switch scheduling, each physical
CPU must have its own idle sched_obj.
Tracked-On: #2394
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com> |
528,675 | 23.01.2019 11:17:42 | -28,800 | 3c60512738c261654b11e7017e6690712f0be67e | io_emul: reorg function definition to pass partition mode build
reorg function definition to pass partition mode build | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/io_emul.c",
"new_path": "hypervisor/arch/x86/io_emul.c",
"diff": "#include <instr_emul.h>\n-static void complete_ioreq(struct acrn_vcpu *vcpu, struct io_request *io_req)\n-{\n- union vhm_request_buffer *req_buf = NULL;\n- struct vhm_request... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | io_emul: reorg function definition to pass partition mode build
reorg function definition to pass partition mode build
Tracked-On: #2394
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,783 | 23.01.2019 14:08:17 | -28,800 | 899c914606b2312f06b9bbbc919f218137b7d3fb | hv:Fix MISRA-C violations in vm.h
fix "Macro parameter not in brackets" for PLUG_CPU(n)
fix "Array has no bounds specified" for vm_configs[] | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vm.h",
"new_path": "hypervisor/include/arch/x86/guest/vm.h",
"diff": "@@ -22,7 +22,7 @@ enum vm_privilege_level {\n#define INVALID_VM_ID 0xffffU\n-#define PLUG_CPU(n) (1U << n)\n+#define PLUG_CPU(n) (1U << (n))\nstruct vm_hw_i... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Fix MISRA-C violations in vm.h
-- fix "Macro parameter not in brackets" for PLUG_CPU(n)
-- fix "Array has no bounds specified" for vm_configs[]
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> |
528,776 | 17.01.2019 13:56:22 | -28,800 | 41dd38baf2c79b85215a84621170422e090c05ad | HV: init_paging() wrongly calcuate the size of hypervisor
when relocation is enabled, the calcuation of HV size in init_paging
routine is not right. As a result, it doesn't enable NX bit for many
pages which don't belong to hypervisor text section. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/mmu.c",
"new_path": "hypervisor/arch/x86/mmu.c",
"diff": "@@ -290,7 +290,7 @@ void init_paging(void)\nCONFIG_HV_RAM_SIZE + (((hv_hpa & (PDE_SIZE - 1UL)) != 0UL) ? PDE_SIZE : 0UL),\nPAGE_CACHE_WB, PAGE_CACHE_MASK | PAGE_USER, &ppt_mem_ops, M... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: init_paging() wrongly calcuate the size of hypervisor
when relocation is enabled, the calcuation of HV size in init_paging
routine is not right. As a result, it doesn't enable NX bit for many
pages which don't belong to hypervisor text section.
Tracked-On: #2349
Signed-off-by: Chaohong guo <chaohong.guo@intel.com... |
528,776 | 22.01.2019 09:47:12 | -28,800 | 5c5f43523af16e1126cd073715e0788e6e68c95b | HV: modify RELOC kconfig option default to "enable"
re-enable RELOC kconfig as default to "y". | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/Kconfig",
"new_path": "hypervisor/arch/x86/Kconfig",
"diff": "@@ -339,7 +339,7 @@ config MTRR_ENABLED\nconfig RELOC\nbool \"Enable hypervisor relocation\"\n- default n\n+ default y\nhelp\nWhen selected, the hypervisor will relocate itself t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: modify RELOC kconfig option default to "enable"
re-enable RELOC kconfig as default to "y".
Tracked-On: #2349
Signed-off-by: Chaohong guo <chaohong.guo@intel.com> |
528,747 | 22.01.2019 15:13:51 | 28,800 | bb8f5390171be4d09adc59ff9de8d7693cf3e548 | doc: add AGL as VMs on ACRN doc
Add a tutorial explaining how to set up a demo using AGL as UOSes as
used in a CES automotive demo. | [
{
"change_type": "ADD",
"old_path": "doc/tutorials/images/agl-cables.jpg",
"new_path": "doc/tutorials/images/agl-cables.jpg",
"diff": "Binary files /dev/null and b/doc/tutorials/images/agl-cables.jpg differ\n"
},
{
"change_type": "ADD",
"old_path": "doc/tutorials/images/agl-demo-concept.... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add AGL as VMs on ACRN doc
Add a tutorial explaining how to set up a demo using AGL as UOSes as
used in a CES automotive demo.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,747 | 22.01.2019 16:10:31 | 28,800 | c43bca9c86217510109b0ebd45b537d9fa882d65 | doc: add a FAQ doc
Start a new FAQ document with questions we're often being asked on
support channels. We'll expand this list over time, and as the number
of questions grow, we'll organize them as appropriate. | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "doc/faq.rst",
"diff": "+.. _faq:\n+\n+FAQ\n+###\n+\n+Here are some frequently asked questions about the ACRN project.\n+\n+.. contents::\n+ :local:\n+ :backlinks: entry\n+\n+------\n+\n+What hardware does ACRN support?\n+************************... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add a FAQ doc
Start a new FAQ document with questions we're often being asked on
support channels. We'll expand this list over time, and as the number
of questions grow, we'll organize them as appropriate.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,671 | 24.01.2019 13:54:49 | -28,800 | 6584b5476e10524acc67d72deae479a068f7302b | Makefile: add missing dependency
There is a missing dependency between lib and bin in Makefile.
BTW, this issue is triggered by concurrent build. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -336,7 +336,9 @@ $(HV_OBJDIR)/$(HV_FILE).bin: $(HV_OBJDIR)/$(HV_FILE).out\n$(HV_OBJDIR)/$(HV_FILE).out: $(C_OBJS) $(S_OBJS) $(LIB_FLAGS)\n${BASH} ${LD_IN_TOOL} $(ARCH_LDSCRIPT_IN) $(ARCH_LDSC... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Makefile: add missing dependency
There is a missing dependency between lib and bin in Makefile.
BTW, this issue is triggered by concurrent build.
Tracked-On: #2370
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com> |
528,717 | 24.01.2019 10:24:35 | 28,800 | 5e99565b74d74b03156c63cb7e2d1fef508c8ad3 | security: Increase buffer size to avoid buffer overflow error
The array indexx of "vm_list" may be out of bound.
Updated the size of "vm_list" | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/debug/profiling_internal.h",
"new_path": "hypervisor/include/debug/profiling_internal.h",
"diff": "@@ -114,7 +114,7 @@ struct profiling_vm_info {\nstruct profiling_vm_info_list {\nuint16_t num_vms;\n- struct profiling_vm_info vm_list[CONFIG_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | security: Increase buffer size to avoid buffer overflow error
The array indexx of "vm_list" may be out of bound.
Updated the size of "vm_list"
Bug: ACRN-2544
Tracked-On: #2385
Signed-off-by: Manisha Chinthapally <manisha.chinthapally@intel.com> |
528,768 | 24.01.2019 23:55:57 | -28,800 | 88eeae3f1fb9586da10a6dc2fd7e4e10ec486248 | hv: remove unused fields in 'struct acrn_vcpu'
below fields are defined but not used.
sync, pause_cnt & dbg_req_state.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -380,7 +380,6 @@ int32_t create_vcpu(uint16_t pcpu_id, struct acrn_vm *vm, struct acrn_vcpu **rtn\n*rtn_vcpu_handle = vcpu;\nvcpu->launched = false;\n- vcpu->paused_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove unused fields in 'struct acrn_vcpu'
below fields are defined but not used.
- sync, pause_cnt & dbg_req_state.
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,768 | 25.01.2019 00:13:31 | -28,800 | ee066a7f1ce72e8c793318000e69f4767288c230 | hv: fix possible buffer overflow in 'vcpu_set_eoi_exit()'
'vector' should be no greater than 0xff,else
'eoi_exit_bitmap[]' will overflow.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -145,7 +145,7 @@ void vcpu_set_eoi_exit(struct acrn_vcpu *vcpu, uint32_t vector)\npr_dbg(\"%s\", __func__);\nif (bitmap_test_and_set_nolock((uint16_t)(vector & 0x3fU... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix possible buffer overflow in 'vcpu_set_eoi_exit()'
'vector' should be no greater than 0xff,else
'eoi_exit_bitmap[]' will overflow.
Tracked-On: #1252
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,675 | 24.01.2019 19:28:39 | -28,800 | c233bf54a2e29912f6a46a5238c93facd66cf96e | make sure secondary CPU's stack is aligned with CPU STACK
secondary CPU's stack should be aligned with 16 | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trampoline.c",
"new_path": "hypervisor/arch/x86/trampoline.c",
"diff": "@@ -45,6 +45,7 @@ void write_trampoline_stack_sym(uint16_t pcpu_id)\nhva = (uint64_t *)(hpa2hva(trampoline_start16_paddr) + trampoline_relo_addr(secondary_cpu_stack));\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | make sure secondary CPU's stack is aligned with CPU STACK
secondary CPU's stack should be aligned with 16
Tracked-On: #2410
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 24.01.2019 19:31:03 | -28,800 | 285b64faecfc60638036a1d16da2ce512b7c698a | replace arch_switch_to with pure asm code instead of inline asm
after compile, the compiled code could change rsp, so use pure asm code
to avoid such problem which will cause schedule switch failure. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -170,7 +170,7 @@ C_SRCS += arch/x86/pm.c\nS_SRCS += arch/x86/wakeup.S\nC_SRCS += arch/x86/static_checks.c\nC_SRCS += arch/x86/trampoline.c\n-C_SRCS += arch/x86/sched.c\n+S_SRCS += arch/x86/sc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | replace arch_switch_to with pure asm code instead of inline asm
after compile, the compiled code could change rsp, so use pure asm code
to avoid such problem which will cause schedule switch failure.
Tracked-On: #2410
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,783 | 24.01.2019 11:22:02 | -28,800 | 682504307843b79d63e59663f187037caca04716 | hv:Move severl variable declaration for boot code
add header file ld_sym.h in include/arch/x86/boot/
move 'ld_bss_start/end' from cpu.h to ld_sym.h,
avoid reverse dependency
move 'ld_text_end' from mmu.h to ld_sym.h
move 'ld_trampoline_load/start/end' to ld_sym.h
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "#include <e820.h>\n#include <cpu_caps.h>\n#include <security.h>\n+#include <ld_sym.h>\nstruct per_cpu_region per_cpu_data[CONFIG_MAX_PCPU_NUM] __aligned(PAGE_SIZE);\nstatic uint16_t ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Move severl variable declaration for boot code
-- add header file ld_sym.h in include/arch/x86/boot/
-- move 'ld_bss_start/end' from cpu.h to ld_sym.h,
avoid reverse dependency
-- move 'ld_text_end' from mmu.h to ld_sym.h
-- move 'ld_trampoline_load/start/end' to ld_sym.h
Tracked-On: #1842
Signed-off-by: Mingqi... |
528,768 | 26.01.2019 00:42:19 | -28,800 | c853eb4bc2927d95c8c84cbd61d8eda0c80fa073 | hv: remove redundant code for virtual interrupt injection
- vlapic_pending_intr() is called only for case no
APICv/VID(Virtual Interrupt Delivery) feature support,
in this case, there is no need to test VID case.
- remove 'apicv_pending_intr()' function.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -80,9 +80,6 @@ static inline void vlapic_dump_isr(__unused const struct acrn_vlapic *vlapic, __\nstatic int32_t\napicv_set_intr_ready(struct acrn_vlapic *vlapic,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove redundant code for virtual interrupt injection
- vlapic_pending_intr() is called only for case no
APICv/VID(Virtual Interrupt Delivery) feature support,
in this case, there is no need to test VID case.
- remove 'apicv_pending_intr()' function.
Tracked-On: #2427
Signed-off-by: Yonghua Huang <yo... |
528,647 | 01.12.2018 12:32:43 | -28,800 | 16df57aa447db371ad26b2bca50c1c7e7f5554ac | hv: don't remap msi for pt devices if lapic_pt
Since lapic is passed through, MSI/MSIx should be configured with the
vector allocated within guest OS, instead of physical vector allocated
in hypervisor.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -541,7 +541,13 @@ int32_t ptirq_msix_remap(struct acrn_vm *vm, uint16_t virt_bdf,\ninfo->pmsi_data.full = 0U;\n} else {\n/* build physical config MSI, update to info->pmsi_x... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: don't remap msi for pt devices if lapic_pt
Since lapic is passed through, MSI/MSIx should be configured with the
vector allocated within guest OS, instead of physical vector allocated
in hypervisor.
Tracked-On: #2351
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,647 | 23.12.2018 16:08:46 | -28,800 | 8925da64d9613cad46176e46e0ac13068f2b8b4b | dm: adapt mptable generation for VM with lapic pt
don't generate io apic entry for vm with lapic pt.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/main.c",
"new_path": "devicemodel/core/main.c",
"diff": "@@ -88,6 +88,7 @@ char *elf_file_name;\nuint8_t trusty_enabled;\nchar *mac_seed;\nbool stdio_in_use;\n+bool lapic_pt;\nstatic int virtio_msix = 1;\nstatic bool debugexit_enabled;\n"
},... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: adapt mptable generation for VM with lapic pt
- don't generate io apic entry for vm with lapic pt.
Tracked-On: #2351
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,647 | 21.12.2018 15:03:39 | -28,800 | 878c4e2ddc5b64b0d10d4fcf2c9fd488ccfc2c8a | dm: add example script to launch vm for realtime scenarios
This example script launch a VM with lapic passthrough for realtime scenarios.
Acked-by: Anthony Xu | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "devicemodel/samples/nuc/launch_hard_rt_vm.sh",
"diff": "+#!/bin/bash\n+# This is an example of launch script for KBL NUC7i7DNH, may need to revise for other platform.\n+\n+function launch_hard_rt_vm()\n+{\n+#for memsize setting\n+mem_size=1024M\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: add example script to launch vm for realtime scenarios
This example script launch a VM with lapic passthrough for realtime scenarios.
Tracked-On: #2351
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,671 | 28.01.2019 09:54:22 | -28,800 | 61552458f0b2a1b17e4f28b004f3ad1a44dee56b | Kconfig: enlarge range of maximum number of IOMMU
Some arches have more than two IOMMUs, so change this limitation.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/Kconfig",
"new_path": "hypervisor/arch/x86/Kconfig",
"diff": "@@ -93,7 +93,7 @@ config MAX_PT_IRQ_ENTRIES\nconfig MAX_IOMMU_NUM\nint \"Maximum number of IOMMU devices\"\n- range 1 2\n+ range 1 6\ndefault 2\nhelp\nThe maximum number of physi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Kconfig: enlarge range of maximum number of IOMMU
Some arches have more than two IOMMUs, so change this limitation.
Tracked-On: #2435
Signed-off-by: Tw <wei.tan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,702 | 29.01.2019 23:22:39 | -28,800 | 2a25f4e9fc4b36af30ef6160172d65e0642fe58d | Doc: Remove CL release number from GSG document | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/nuc/launch_uos.sh",
"new_path": "devicemodel/samples/nuc/launch_uos.sh",
"diff": "@@ -28,7 +28,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \\\n-s 2,pci-gvt -G \"$3\" \\\n-s 5,virtio-console,@pty:pty_port \\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Doc: Remove CL release number from GSG document
Signed-off-by: Xie, nanlin <nanlin.xie@intel.com> |
528,776 | 25.01.2019 12:14:02 | -28,800 | 89b6dc593fe85fcb3acae340d765e12a57718f94 | HV: MISRA clean in reloc.c
The patch is to fix MISRA violation in reloc.c by:
- remove multi-returns in relocate();
- remove non useful checking in relocate();
- add suffix U to macro definition
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/reloc.c",
"new_path": "hypervisor/boot/reloc.c",
"diff": "#include <ld_sym.h>\n#ifdef CONFIG_RELOC\n-#define DT_NULL 0 /* end of .dynamic section */\n-#define DT_RELA 7 /* relocation table */\n-#define DT_RELASZ 8 /* size of reloc table */\n-#d... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: MISRA clean in reloc.c
The patch is to fix MISRA violation in reloc.c by:
- remove multi-returns in relocate();
- remove non useful checking in relocate();
- add suffix U to macro definition
Tracked-On: #861
Signed-off-by: Chaohong guo <chaohong.guo@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,783 | 30.01.2019 11:15:12 | -28,800 | e9bb4267a799b188fbf9573c1fed2bc042b02049 | hv:move vpic.h & vioapic.h to dm folder
move the following files to dm folder
renamed: include/arch/x86/guest/vioapic.h -> include/dm/vioapic.h
renamed: include/arch/x86/guest/vpic.h -> include/dm/vpic.h | [
{
"change_type": "MODIFY",
"old_path": "doc/acrn.doxyfile",
"new_path": "doc/acrn.doxyfile",
"diff": "@@ -800,8 +800,8 @@ INPUT = custom-doxygen/mainpage.md \\\n../hypervisor/include/arch/x86/irq.h \\\n../hypervisor/include/arch/x86/guest/vmtrr.h \\\n../hypervisor/include/arch/x86/guest/vlapic.h \\\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:move vpic.h & vioapic.h to dm folder
move the following files to dm folder
renamed: include/arch/x86/guest/vioapic.h -> include/dm/vioapic.h
renamed: include/arch/x86/guest/vpic.h -> include/dm/vpic.h
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.c... |
528,783 | 29.01.2019 17:04:39 | -28,800 | 615c2bf88bc14353254b960baaf3f27df3df4349 | hv:move e820 related macro and structure to e820.h
move 'struct e820_entry' 'E820_TYPE_XXX' from mmu.h
to e820.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/sbl/multiboot.c",
"new_path": "hypervisor/boot/sbl/multiboot.c",
"diff": "#include <hypervisor.h>\n#include <multiboot.h>\n+#include <e820.h>\n#include <zeropage.h>\n#include <sbl_seed_parse.h>\n#include <abl_seed_parse.h>\n"
},
{
"chan... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:move e820 related macro and structure to e820.h
move 'struct e820_entry' 'E820_TYPE_XXX' from mmu.h
to e820.h
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 29.01.2019 17:15:43 | -28,800 | 2ffc683d01281cf2411803f88b42993a0f06918a | hv: move some api declaration from mmu.h to ept.h
add ept.h, and move ept related api declaration
from mmu.h to ept.h
move lookup_address()declaration from mmu.h to pgtable.h | [
{
"change_type": "MODIFY",
"old_path": "doc/acrn.doxyfile",
"new_path": "doc/acrn.doxyfile",
"diff": "@@ -794,6 +794,7 @@ WARN_LOGFILE =\nINPUT = custom-doxygen/mainpage.md \\\n../hypervisor/include/arch/x86/guest/guest.h \\\n+ ../hypervisor/include/arch/x86/guest/ept.h \\\n../hypervisor/include/arc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move some api declaration from mmu.h to ept.h
-- add ept.h, and move ept related api declaration
from mmu.h to ept.h
-- move lookup_address()declaration from mmu.h to pgtable.h
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,647 | 24.01.2019 20:04:33 | -28,800 | 72faca506883874848bc8148f6819899e1661a42 | doc: update documents for "--lapic_pt" feature
added description of lapic pt feature based on vlapic in HLD virt-interrupt part;
updated the doc to include description of new acrn-dm option "--lapic_pt".
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hld-devicemodel.rst",
"new_path": "doc/developer-guides/hld/hld-devicemodel.rst",
"diff": "@@ -57,7 +57,8 @@ options:\n[-s pci] [-U uuid] [--vsbl vsbl_file_name] [--ovmf ovmf_file_path]\n[--part_info part_info_name] [--enable_trusty] [... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update documents for "--lapic_pt" feature
- added description of lapic pt feature based on vlapic in HLD virt-interrupt part;
- updated the doc to include description of new acrn-dm option "--lapic_pt".
Tracked-On: #2351
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,801 | 25.01.2019 15:34:59 | -28,800 | fc887eade4785d972c01aa6f83256bdaa4f8db11 | doc: update coding guidelines
update and add some rules in coding guidelines | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/coding_guidelines.rst",
"new_path": "doc/developer-guides/coding_guidelines.rst",
"diff": "@@ -660,6 +660,41 @@ Compliant example::\n}\n+FN-10: The formal parameter type of a function shall be consistent\n+=================================... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update coding guidelines
- update and add some rules in coding guidelines
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,747 | 30.01.2019 09:51:37 | 28,800 | 9c3c316f7916ac2c2c107e17e87e93ce7efe148b | doc: add rt-linux tutorial
update tutorials with Using RT-Linux for real-time UOS | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -27,6 +27,8 @@ for downloading and flashing an updated BIOS for the NUC.\nSoftware setup\n**************\n+.. _set-up-CL:\n+\nSet up a Clear Linux Operating System\n==... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add rt-linux tutorial
update tutorials with Using RT-Linux for real-time UOS
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,747 | 30.01.2019 11:51:35 | 28,800 | e2cb6acba6250509a82dfe005f9bf1a95f8b3957 | doc: add Trusty ACRN doc
Add the Trusty and Security Services in ACRN tutorial | [
{
"change_type": "ADD",
"old_path": "doc/tutorials/images/trustyacrn-image1.png",
"new_path": "doc/tutorials/images/trustyacrn-image1.png",
"diff": "Binary files /dev/null and b/doc/tutorials/images/trustyacrn-image1.png differ\n"
},
{
"change_type": "ADD",
"old_path": "doc/tutorials/ima... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add Trusty ACRN doc
Add the Trusty and Security Services in ACRN tutorial
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,783 | 30.01.2019 15:45:50 | -28,800 | 7da9161d7d48747c117f5d134d68dfebc3626785 | hv:no need to use lock for the bit operations of local variable
Use bitmap_set_nolock/bitmap_clear_nolock instead of
bitmap_set_lock/bitmap_clear_lock for the local variable.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -36,7 +36,7 @@ uint64_t vcpumask2pcpumask(struct acrn_vm *vm, uint64_t vdmask)\nfor (vcpu_id = 0U; vcpu_id < vm->hw.created_vcpus; vcpu_id++) {\nif ((vdmask & (1UL... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:no need to use lock for the bit operations of local variable
Use bitmap_set_nolock/bitmap_clear_nolock instead of
bitmap_set_lock/bitmap_clear_lock for the local variable.
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 28.01.2019 22:57:16 | -28,800 | a01c3cb9133a0ee75682c00aa0aa5b6537823584 | doc: change term of vm0 to sos_vm
Using term of VM0 would mislead to a VM with VM id 0 easily, whereas
VM id 0 could be used for any PRE_LAUNCHED_VM. So replace VM0 with
SOS_VM. | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/hld/hld-devicemodel.rst",
"new_path": "doc/developer-guides/hld/hld-devicemodel.rst",
"diff": "@@ -981,8 +981,8 @@ potentially error-prone.\nACPI Emulation\n--------------\n-An alternative ACPI resource abstraction option is for the SOS (V... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: change term of vm0 to sos_vm
Using term of VM0 would mislead to a VM with VM id 0 easily, whereas
VM id 0 could be used for any PRE_LAUNCHED_VM. So replace VM0 with
SOS_VM.
Signed-off-by: Victor Sun <victor.sun@intel.com> |
528,671 | 29.01.2019 21:30:15 | -28,800 | efc64d778fdbc8faed4ac051905f2575fd89ed21 | hv: fix host call stack dump issue
As scheduler uses its own stack for now,
there is no need to check stack validity,
so wipe it out.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/init.c",
"new_path": "hypervisor/arch/x86/init.c",
"diff": "{ \\\nasm volatile (\"movq %0, %%rsp\\n\" \\\n\"pushq %1\\n\" \\\n- \"call *%2\\n\" \\\n+ \"jmpq *%2\\n\" \\\n: \\\n: \"r\"(rsp), \"rm\"(SP_BOTTOM_MAGIC), \"a\"(to)); \\\n}\n"
},... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix host call stack dump issue
As scheduler uses its own stack for now,
there is no need to check stack validity,
so wipe it out.
Tracked-On: #2455
Signed-off-by: Tw <wei.tan@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,671 | 30.01.2019 14:56:29 | -28,800 | 39ffd29aa3a1fd81c1b1b6340388bfff86e7f150 | schedule: add magic number at the bottom of schedule stack
Add this magic number to prevent potential overflow when dumping
host stack.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "#include <schedule.h>\n#include <security.h>\n#include <virtual_cr.h>\n+#include <init.h>\ninline uint64_t vcpu_get_gpreg(const struct acrn_vcpu *vcpu, uint32_t reg)\n{... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | schedule: add magic number at the bottom of schedule stack
Add this magic number to prevent potential overflow when dumping
host stack.
Tracked-On: #2455
Signed-off-by: Tw <wei.tan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,772 | 28.01.2019 22:15:41 | -28,800 | 648450c62c0281625ac0431abda528fdb3cbd7bb | HV: cpu: add msr_read_pcpu()& msr_write_pcpu()
Use smp_call_function() to read/write MSR register on target PCPU
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -416,3 +416,51 @@ static void cpu_xsave_init(void)\n}\n}\n}\n+\n+\n+static void smpcall_write_msr_func(void *data)\n+{\n+ struct msr_data_struct *msr = (struct msr_data_struct *)d... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: cpu: add msr_read_pcpu()& msr_write_pcpu()
Use smp_call_function() to read/write MSR register on target PCPU
Tracked-On: #2462
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,648 | 31.01.2019 11:56:47 | -28,800 | 37ce259fb93ef7a73d241260cec88704938392d6 | modify create-up2-images scripts | [
{
"change_type": "MODIFY",
"old_path": "doc/tutorials/create-up2-images.sh",
"new_path": "doc/tutorials/create-up2-images.sh",
"diff": "@@ -46,19 +46,20 @@ create_sos_images() {\nreturn 1\n}\n- SOS_BOOTARGS_DEBUG=${ACRN_HV_CODE_PATH}/devicemodel/samples/up2/sos_bootargs_debug.txt\n+ SOS_BOOTARGS_DEB... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | modify create-up2-images scripts |
528,768 | 31.01.2019 23:12:27 | -28,800 | 0f5c6e2c1826dae7633a5a4ae79f67d66197659a | HV: fix address type violation for MSR_LOAD/STORE
According to SDM 24.7.2, these two MSRs should be
configured with physical address.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmcs.c",
"new_path": "hypervisor/arch/x86/guest/vmcs.c",
"diff": "@@ -477,7 +477,7 @@ static void init_entry_ctrl(const struct acrn_vcpu *vcpu)\n* VM-entry MSR load address field\n*/\nexec_vmwrite32(VMX_ENTRY_MSR_LOAD_COUNT, MSR_AREA_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: fix address type violation for MSR_LOAD/STORE
According to SDM 24.7.2, these two MSRs should be
configured with physical address.
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,756 | 01.02.2019 09:58:27 | -28,800 | be946ca8e0be74294313e6aef1b78c7411e21ebf | IOC mediator: dynamically enable dummy channels
The dummy channels can emulate cbc lifecycle, cbc signal and cbc raw
channel instead canbox, and the feature can be enabled by ioc command
line within wakeup reason bit 24.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc.c",
"new_path": "devicemodel/hw/platform/ioc.c",
"diff": "@@ -89,7 +89,7 @@ do { if (ioc_debug && dbg_file) { fprintf(dbg_file, format, arg);\\\n* For debugging only, to generate lifecycle, signal and oem-raw data\n* from PTY device... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: dynamically enable dummy channels
The dummy channels can emulate cbc lifecycle, cbc signal and cbc raw
channel instead canbox, and the feature can be enabled by ioc command
line within wakeup reason bit 24.
Tracked-On: #2481
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel... |
528,801 | 01.02.2019 13:56:17 | -28,800 | 49623fc0731a8a46adbcee8f7106f78930993b1b | hv: refine `guest.c`
move `vcpumask2pcpumask` from `guest.c` to `vcpu.c`
move `prepare_sos_vm_memmap` from `guest.c` to `vm.c`
rename `guest.c` to `guest_memory.c`
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -176,7 +176,7 @@ C_SRCS += arch/x86/guest/vcpu.c\nC_SRCS += arch/x86/guest/vm.c\nC_SRCS += arch/x86/guest/vlapic.c\nC_SRCS += arch/x86/guest/vmtrr.c\n-C_SRCS += arch/x86/guest/guest.c\n+C_SRC... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: refine `guest.c`
- move `vcpumask2pcpumask` from `guest.c` to `vcpu.c`
- move `prepare_sos_vm_memmap` from `guest.c` to `vm.c`
- rename `guest.c` to `guest_memory.c`
Tracked-On: #2484
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 01.02.2019 19:37:09 | -28,800 | 123c2b5fa45ff22a1c5a5adab8612ceb6c13268b | hv: rename MACROs 'VMX_CRx_MASK"
CRx 'guest/host mask' is widely used when talking
about CR0/CR4 virtualization in SDM spec,
rename them to 'VMX_CRx_GUEST_HOST_MASK'.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/virtual_cr.c",
"new_path": "hypervisor/arch/x86/guest/virtual_cr.c",
"diff": "@@ -290,7 +290,7 @@ static void vmx_write_cr4(struct acrn_vcpu *vcpu, uint64_t cr4)\nvoid init_cr0_cr4_host_mask(void)\n{\nstatic bool inited = false;\n- st... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: rename MACROs 'VMX_CRx_MASK"
CRx 'guest/host mask' is widely used when talking
about CR0/CR4 virtualization in SDM spec,
rename them to 'VMX_CRx_GUEST_HOST_MASK'.
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 31.01.2019 13:35:51 | -28,800 | 11bfe3d43ed9c6ceeeced1af7ff5dab8cf9c69d6 | HV: move e820 entry out of vm description
move e820_default_entries[] from vm_description.c to ve820.c and rename
to ve820_entry[] as a temparary solution for partiton mode e820 management;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -145,6 +145,7 @@ ifeq ($(CONFIG_SHARING_MODE),y)\nC_SRCS += arch/x86/configs/sharing_config.c\nelse ifeq ($(CONFIG_PARTITION_MODE),y)\nC_SRCS += arch/x86/configs/partition_config.c\n+C_SRCS +... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: move e820 entry out of vm description
move e820_default_entries[] from vm_description.c to ve820.c and rename
to ve820_entry[] as a temparary solution for partiton mode e820 management;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,799 | 23.01.2019 14:26:50 | 28,800 | 65f9370d760afa5d1e4016b315e7ca9f88177559 | HV: move struct pci_bar and pci_pdev to pci.h | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/dm/pci.h",
"new_path": "hypervisor/include/dm/pci.h",
"diff": "@@ -138,6 +138,21 @@ enum pci_bar_type {\nPCIBAR_MEM64,\n};\n+struct pci_bar {\n+ uint64_t base;\n+ uint64_t size;\n+ enum pci_bar_type type;\n+};\n+\n+struct pci_pdev {\n+ /* Th... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: move struct pci_bar and pci_pdev to pci.h
Tracked-On: #2431
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,799 | 23.01.2019 14:33:30 | 28,800 | e0f9d1401176e9a980b28016a2b9194022331eb2 | HV: scan all physical PCI devices and store all needed info in array | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -195,6 +195,7 @@ void init_cpu_post(uint16_t pcpu_id)\ntimer_init();\nsetup_notification();\nsetup_posted_intr_notification();\n+ init_pci_pdev_list();\n/* Start all secondary cor... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: scan all physical PCI devices and store all needed info in array
Tracked-On: #2431
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,799 | 24.01.2019 16:34:30 | 28,800 | 983b717a61fd1673c3d96d5da74967f48c370f18 | HV: use the cached pci device info for sharing mode | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/msi.c",
"new_path": "hypervisor/dm/vpci/msi.c",
"diff": "static inline bool msicap_access(const struct pci_vdev *vdev, uint32_t offset)\n{\nbool ret;\n+\nif (vdev->msi.capoff == 0U) {\nret = 0;\n} else {\n@@ -83,7 +84,8 @@ static int32_t vms... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: use the cached pci device info for sharing mode
Tracked-On: #2431
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,794 | 15.01.2019 15:28:40 | -28,800 | f082176df06320d8ce2cda01fd221bf4207c0bd0 | HV: init ptdev bar during runtime for partition mode
Current pt devices bar info for partion mode is hardcoded in
vm_description.c, now we remove the hardcoded info and parse the bar
info during pt devices init. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/partition_mode.c",
"new_path": "hypervisor/dm/vpci/partition_mode.c",
"diff": "@@ -50,6 +50,49 @@ static struct pci_vdev *partition_mode_find_vdev(struct acrn_vpci *vpci, union p\nreturn NULL;\n}\n+static inline bool is_valid_bar_type(const ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: init ptdev bar during runtime for partition mode
Current pt devices bar info for partion mode is hardcoded in
vm_description.c, now we remove the hardcoded info and parse the bar
info during pt devices init.
Tracked-On: #2431
Signed-off-by: Victor Sun <victor.sun@intel.com>
Signed-off-by: dongshen <dongsheng.x.zh... |
528,794 | 18.01.2019 01:20:27 | -28,800 | 69d883560a70ec40939281ce8c0801e6bd2ba2e1 | HV: remove bar info in vm description
We have enabled bar decoding in init ptdev, so hard-coded bar info is not needed
any more. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/partition/apl-mrb/vm_description.c",
"new_path": "hypervisor/partition/apl-mrb/vm_description.c",
"diff": "@@ -14,7 +14,6 @@ static struct vpci_vdev_array vpci_vdev_array1 = {\n{/*vdev 0: hostbridge */\n.vbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x0... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove bar info in vm description
We have enabled bar decoding in init ptdev, so hard-coded bar info is not needed
any more.
Tracked-On: #2431
Signed-off-by: Victor Sun <victor.sun@intel.com>
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,794 | 18.01.2019 01:34:26 | -28,800 | 6ba07e64b9ac96de997d4bc026474f03ebd26eab | HV: remove ptdev ops init in vm description
The ptdev ops will be initialized automatically during ptdev init, so
remove the hardcoded ops in vm_description.c | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/partition_mode.c",
"new_path": "hypervisor/dm/vpci/partition_mode.c",
"diff": "@@ -107,12 +107,14 @@ static int32_t partition_mode_vpci_init(const struct acrn_vm *vm)\nvdev = &vdev_array->vpci_vdev_list[i];\nvdev->vpci = vpci;\n- /* Exclude ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove ptdev ops init in vm description
The ptdev ops will be initialized automatically during ptdev init, so
remove the hardcoded ops in vm_description.c
Tracked-On: #2431
Signed-off-by: Victor Sun <victor.sun@intel.com>
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@in... |
528,799 | 24.01.2019 18:52:34 | 28,800 | f4adb109de87ab1ed88989b0ae60ee58145a4d54 | HV: store a pointer to pdev instead to save memory.
As we store the physical pci device info in a global pdev array, the vdev struct can
store a pointer to pdev instead. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/msi.c",
"new_path": "hypervisor/dm/vpci/msi.c",
"diff": "@@ -46,7 +46,7 @@ static inline bool msicap_access(const struct pci_vdev *vdev, uint32_t offset)\nstatic int32_t vmsi_remap(const struct pci_vdev *vdev, bool enable)\n{\nstruct ptirq_m... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: store a pointer to pdev instead to save memory.
As we store the physical pci device info in a global pdev array, the vdev struct can
store a pointer to pdev instead.
Tracked-On: #2431
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,794 | 01.02.2019 14:53:36 | -28,800 | 9e33178998dd9608ebc9d6c64fe6d9bd365e6cdb | HV: add vm config files for partition mode
Add VM configure files for Intel apl-mrb and dnv-cb2 platforms.
The board specific config header is named as partition_config.h and
the PCI passthrough device list is named as pt_dev.c under
hypervisor/arch/x86/configs/$CONFIG_BOARD folder.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -146,6 +146,7 @@ C_SRCS += arch/x86/configs/sharing_config.c\nelse ifeq ($(CONFIG_PARTITION_MODE),y)\nC_SRCS += arch/x86/configs/partition_config.c\nC_SRCS += arch/x86/configs/$(CONFIG_BOARD)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add vm config files for partition mode
Add VM configure files for Intel apl-mrb and dnv-cb2 platforms.
The board specific config header is named as partition_config.h and
the PCI passthrough device list is named as pt_dev.c under
hypervisor/arch/x86/configs/$CONFIG_BOARD folder.
Tracked-On: #2291
Signed-off-by:... |
528,794 | 01.02.2019 18:11:31 | -28,800 | 55efc763ae07f2d16ff423da4250e7e1fd9132ef | HV: switch vm configs array for partition mode
The previous VM configs array for partition mode is inside struct of
vm_config_partition and named as vm_config_array[], now switch to
global vm_configs[];
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vm.h",
"new_path": "hypervisor/include/arch/x86/guest/vm.h",
"diff": "@@ -313,7 +313,6 @@ struct pcpu_vm_config_mapping {\nbool is_bsp;\n};\nextern const struct pcpu_vm_config_mapping pcpu_vm_config_map[];\n-extern struct vm_c... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: switch vm configs array for partition mode
The previous VM configs array for partition mode is inside struct of
vm_config_partition and named as vm_config_array[], now switch to
global vm_configs[];
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 02.02.2019 15:49:44 | -28,800 | d05af3526f570602f4c17cc581ced7ad7aaf421c | HV: vm description clean up
The partition mode vm config in vm_description.c is abandoned,
so delete the file. Its related struct in vm.h is also removed;
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -224,7 +224,6 @@ C_SRCS += dm/vpci/core.c\nC_SRCS += dm/vpci/vpci.c\nifeq ($(CONFIG_PARTITION_MODE),y)\nC_SRCS += dm/vmptable.c\n-C_SRCS += partition/$(CONFIG_BOARD)/vm_description.c\nC_SRCS ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: vm description clean up
The partition mode vm config in vm_description.c is abandoned,
so delete the file. Its related struct in vm.h is also removed;
Tracked-On: #2291
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 02.02.2019 14:07:43 | -28,800 | af1e5d5742d6f8a929697a775c679f83632a4694 | hv:remove several redundancy variables related memory
Remove redundancy code since they are not used now.
remove 'max_ram_blk_base' & 'max_ram_blk_size' in
struct e820_mem_params
remove 'gpa_lowtop' in struct vm_hw_info
remove MACRO 'UOS_DEFAULT_START_ADDR'
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/e820.c",
"new_path": "hypervisor/arch/x86/e820.c",
"diff": "@@ -28,8 +28,6 @@ static void obtain_e820_mem_info(void)\ne820_mem.mem_bottom = UINT64_MAX;\ne820_mem.mem_top = 0x0UL;\ne820_mem.total_mem_size = 0UL;\n- e820_mem.max_ram_blk_base ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:remove several redundancy variables related memory
Remove redundancy code since they are not used now.
-- remove 'max_ram_blk_base' & 'max_ram_blk_size' in
struct e820_mem_params
-- remove 'gpa_lowtop' in struct vm_hw_info
-- remove MACRO 'UOS_DEFAULT_START_ADDR'
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <... |
528,783 | 02.02.2019 22:45:21 | -28,800 | 229fbdd81d2eb4c2d43c54395e990d1fcf54f801 | hv:cleanup header file for vcpu.c & vcpu.h
For vcpu.c and vcpu.h,only include some necessary
header files, doesn't include hypervisor.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "* SPDX-License-Identifier: BSD-3-Clause\n*/\n-#include <hypervisor.h>\n-#include <schedule.h>\n-#include <security.h>\n-#include <virtual_cr.h>\n+#include <types.h>\n+#... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:cleanup header file for vcpu.c & vcpu.h
For vcpu.c and vcpu.h,only include some necessary
header files, doesn't include hypervisor.h
Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 03.02.2019 18:01:43 | -28,800 | c855b78230b3cf6b86ec80b424904507f7e6a2aa | hv:refine coding style for trusty_hypercallc.
remove some redundant code
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;\n+ int32_t ret = -EPERM;\n- if (next_w... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:refine coding style for trusty_hypercallc.
remove some redundant code
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,766 | 28.01.2019 16:09:43 | 28,800 | 24cf377d5d031827be6bc7899ac957cc47b45056 | dm: vhpet: fix vHPET memory leak on device reset
Need to properly remove and free its MMIO entry during deinit.
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/hpet.c",
"new_path": "devicemodel/hw/platform/hpet.c",
"diff": "@@ -90,13 +90,20 @@ static int hpet_debug;\n#define WPRINTF(params) (printf params)\n+static struct mem_range vhpet_mr = {\n+ .name = \"vhpet\",\n+ .base = VHPET_BASE,\n+ .... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: vhpet: fix vHPET memory leak on device reset
Need to properly remove and free its MMIO entry during deinit.
Tracked-On: #2453
Signed-off-by: Peter Fang <peter.fang@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.