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,677
02.07.2018 11:42:20
-28,800
4eae78cb719bd0e48e94acd4e18c4d56b09a7dbf
cbc: fix the install issue when do make misc-install only The install -D is misleading people since it only creates the leading directories. The problem was hidden due to we always call make install and the destination folder was already created in previous install script.
[ { "change_type": "MODIFY", "old_path": "misc/cbc_attach/Makefile", "new_path": "misc/cbc_attach/Makefile", "diff": "@@ -6,7 +6,8 @@ all:\nclean:\nrm -rf $(OUT_DIR)/cbc_attach\n-install: $(OUT_DIR)/cbc_attach\n+install: $(OUT_DIR)/cbc_attach cbc_attach.service\ninstall -d $(DESTDIR)/usr/bin\ninstall ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
cbc: fix the install issue when do make misc-install only The install -D is misleading people since it only creates the leading directories. The problem was hidden due to we always call make install and the destination folder was already created in previous install script. Signed-off-by: Alek Du <alek.du@intel.com>
528,665
03.07.2018 14:48:03
-28,800
8afbe66fe979aeacf9e5d044f4a419eaa2704d36
HV: Fix wrong log message in init_host_state There are some cases that we write to VMX_HOST_XXX regs but have debug message like "pr_dbg("VMX_GUEST_XXX ...")". Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmx.c", "new_path": "hypervisor/arch/x86/vmx.c", "diff": "@@ -1112,21 +1112,21 @@ static void init_host_state(__unused struct vcpu *vcpu)\nvalue = (uint32_t) value;\nfield = VMX_HOST_CR0;\nexec_vmwrite(field, value);\n- pr_dbg(\"VMX_GUEST_C...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix wrong log message in init_host_state There are some cases that we write to VMX_HOST_XXX regs but have debug message like "pr_dbg("VMX_GUEST_XXX ...")". Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,715
03.07.2018 09:25:50
-28,800
50f06cad55df9f5f26e9066447a34bd75543f8f7
HV:treewide: Rename bit operation function fls as fls32 Rename bit operation function fls as fls32, keep name style with other bit operation 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": "@@ -774,7 +774,7 @@ vlapic_process_eoi(struct vlapic *vlapic)\ntmrptr = &lapic->tmr[0];\nfor (i = 7; i >= 0; i--) {\n- bitpos = fls(isrptr[i].val);\n+ bitpos = fls3...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:treewide: Rename bit operation function fls as fls32 Rename bit operation function fls as fls32, keep name style with other bit operation function. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,747
29.06.2018 11:51:56
25,200
05d2558f9fe8825fce6e107e4f3b08bcf16e9be1
doc: move graphviz material to developer-guides Rather than a "tutorial", it was suggested to move the graphviz information to the devleoper-guides, along with the documentation guidelines. Makes sense.
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/doc_guidelines.rst", "new_path": "doc/developer-guides/doc_guidelines.rst", "diff": "@@ -393,3 +393,42 @@ the first non-white space in the preceding line. For example:\nKeep the line length for documentation less than 80 characters to make...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: move graphviz material to developer-guides Rather than a "tutorial", it was suggested to move the graphviz information to the devleoper-guides, along with the documentation guidelines. Makes sense. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,725
03.07.2018 22:55:34
-28,800
a27f33f9bcda6dbd8f48bc2bee29b613c72398a9
HV: debug: make log severity constants unsigned logmsg() expects the severity given to be uint32_t. This patch adds the 'U' suffix to the severity constants. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/debug/logmsg.h", "new_path": "hypervisor/include/debug/logmsg.h", "diff": "#define LOGMSG_H\n/* Logging severity levels */\n-#define LOG_FATAL 1\n+#define LOG_FATAL 1U\n/* For msg should be write to console and sbuf meanwhile but not fatal e...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: debug: make log severity constants unsigned logmsg() expects the severity given to be uint32_t. This patch adds the 'U' suffix to the severity constants. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,676
03.07.2018 18:34:25
-28,800
8b94957774a50cda442d429d44d0cc6aaf35447e
HV:guest:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpuid.c", "new_path": "hypervisor/arch/x86/cpuid.c", "diff": "@@ -63,7 +63,7 @@ static inline int set_vcpuid_entry(struct vm *vm,\nsize_t entry_size = sizeof(struct vcpuid_entry);\nif (vm->vcpuid_entry_nr == MAX_VM_VCPUID_ENTRIES) {\n- pr_e...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:guest:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@inte...
528,676
03.07.2018 18:37:07
-28,800
102d2f1a68312d57ba41ace35aaf312f65cc097a
HV:common:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hv_main.c", "new_path": "hypervisor/common/hv_main.c", "diff": "@@ -56,7 +56,7 @@ void vcpu_thread(struct vcpu *vcpu)\n}\nvmexit_end = rdtsc();\n- if (vmexit_begin > 0)\n+ if (vmexit_begin != 0UL)\nper_cpu(vmexit_time, vcpu->pcpu_id)[basic_ex...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:common:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@int...
528,676
03.07.2018 11:52:30
-28,800
95736e659fac01217f500e9f98bce4291cb1b301
HV:interrupt:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ioapic.c", "new_path": "hypervisor/arch/x86/ioapic.c", "diff": "@@ -114,19 +114,19 @@ ioapic_write_reg32(const void *ioapic_base,\n}\nstatic inline uint64_t\n-get_ioapic_base(int apic_id)\n+get_ioapic_base(uint8_t apic_id)\n{\n- uint64_t ad...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:interrupt:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@...
528,676
03.07.2018 18:40:23
-28,800
2ffa69cb9a31145e475e9ed3d12b696c782f38c3
HV:misc:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -136,7 +136,7 @@ lookup_entry_by_vintx(struct vm *vm, uint8_t vpin,\nstatic void\nptdev_update_irq_handler(struct vm *vm, struct ptdev_remapping_info *entry)\n{\n- int phys_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:misc:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel...
528,676
03.07.2018 18:43:00
-28,800
ac7ba6c47f47837efd98daa7e3c115584df54d91
HV:lib:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/types.h", "new_path": "hypervisor/include/lib/types.h", "diff": "@@ -44,7 +44,7 @@ typedef _Bool bool;\n#endif\n#ifndef UINT64_MAX\n-#define UINT64_MAX (-1UL)\n+#define UINT64_MAX (0xffffffffffffffffUL)\n#endif\n#endif /* ASSEMBLER */\n"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:lib:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel....
528,676
03.07.2018 11:53:19
-28,800
b3fa2efe56b64a887a1d12a5a6697301825d6d48
public:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/include/public/acrn_common.h", "new_path": "devicemodel/include/public/acrn_common.h", "diff": "@@ -293,13 +293,13 @@ struct acrn_vm_pci_msix_remap {\n*\n*/\n-#define SPACE_SYSTEM_MEMORY 0\n-#define SPACE_SYSTEM_IO 1\n-#define SPACE_PCI_CONFIG 2\n-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
public:fix "signed/unsigned conversion without cast" Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
04.07.2018 23:14:04
-28,800
b332410f0c3f70547341694c9eb4b3f501b5b5b8
HV: Fix coding style violation of MISRA in string.c update 'strtol_deci()' & 'strtoul_hex()' Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/lib/string.c", "new_path": "hypervisor/lib/string.c", "diff": "@@ -27,13 +27,17 @@ long strtol_deci(const char *nptr)\n* Skip white space and pick up leading +/- sign if any.\n*/\ndo {\n- c = *s++;\n+ c = *s;\n+ s++;\n} while (ISSPACE(c));\nif (c ==...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix coding style violation of MISRA in string.c - update 'strtol_deci()' & 'strtoul_hex()' Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,665
26.06.2018 17:44:24
-28,800
85a5668b906dc8fec4820b17a4ddf1858a9b2277
tools: acrntrace: Updata README.rst Add acrntrace_format.py usage to README.rst Add acrntrace usage to README.rst Add acrnanalyze.py to README.rst Acked-by: Geoffroy Van Cutsem
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/README.rst", "new_path": "tools/acrntrace/README.rst", "diff": "@@ -12,6 +12,71 @@ A ``scripts`` directory includes scripts to analyze the trace data.\nUsage\n*****\n+The ``acrntrace`` tool runs on the Service OS (SOS) to capture trace data and...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Updata README.rst -Add acrntrace_format.py usage to README.rst -Add acrntrace usage to README.rst -Add acrnanalyze.py to README.rst Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Acked-by: Geoff...
528,768
05.07.2018 01:30:18
-28,800
cc7167026bbe9702342dfd902b1dcf9490933efb
HV: cleanup coding style violation - replace MACROs with inline functions - remove unused local viarbles - fix build errors
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -536,7 +536,6 @@ vioapic_reset(struct vioapic *vioapic)\nstruct vioapic *\nvioapic_init(struct vm *vm)\n{\n- int i;\nstruct vioapic *vioapic;\nvioapic = calloc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: cleanup coding style violation - replace MACROs with inline functions - remove unused local viarbles - fix build errors Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,783
04.07.2018 18:40:39
-28,800
9d8893e499200c9022fd9a43ed883648ab88b486
hv:rename several APIs in vlapic.c rename 4 APIs: x2apic_msr -> is_ x2apic_msr vlapic_msr -> is_vlapic_msr vlapic_mmio_write -> vlapic_write_mmio_reg vlapic_mmio_read -> vlapic_read_mmio_reg
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1807,7 +1807,7 @@ vlapic_intr_msi(struct vm *vm, uint64_t addr, uint64_t msg)\n}\nstatic bool\n-x2apic_msr(uint32_t msr)\n+is_x2apic_msr(uint32_t msr)\n{\nif (m...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:rename several APIs in vlapic.c rename 4 APIs: x2apic_msr -> is_ x2apic_msr vlapic_msr -> is_vlapic_msr vlapic_mmio_write -> vlapic_write_mmio_reg vlapic_mmio_read -> vlapic_read_mmio_reg Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
528,733
03.07.2018 17:43:37
-28,800
fdd785d66933a2e458c26e61be135b026d14eda5
hv: Add 32bit bitmap bit ops API We need bitmap bit ops API for 32bit operators like vlapic irr registers. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/bits.h", "new_path": "hypervisor/include/lib/bits.h", "diff": "@@ -172,34 +172,38 @@ static inline uint16_t clz64(uint64_t value)\n* Note:Input parameter nr shall be less than 64.\n* If nr>=64, it will be truncated.\n*/\n-#define build_b...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Add 32bit bitmap bit ops API We need bitmap bit ops API for 32bit operators like vlapic irr registers. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,715
05.07.2018 08:55:40
-28,800
b74358d08ed12f401d14519690801c4691569330
HV:treewide:string assigned to const object In the hypervisor, some strings are assigned to non const object, this violates MISRA C:2012. Update the type of the object as const type since it always points to string.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -823,7 +823,7 @@ static void cpu_set_logical_id(uint16_t pcpu_id)\nstatic void print_hv_banner(void)\n{\n- char *boot_msg = \"ACRN Hypervisor\\n\\r\";\n+ const char *boot_msg = \"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:treewide:string assigned to const object In the hypervisor, some strings are assigned to non const object, this violates MISRA C:2012. Update the type of the object as const type since it always points to string. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
528,676
04.07.2018 16:04:19
-28,800
98c49c71b7468560ad6591928709f7d81373285e
HV:guest:add suffix U to the numeric constant Add suffix U to the numeric constant 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": "@@ -691,7 +691,7 @@ emulate_movs(struct vcpu *vcpu, __unused uint64_t gpa, struct vie *vie,\n* The count register is %rcx, %ecx or %cx depending on the\n* a...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:guest:add suffix U to the numeric constant Add suffix U to the numeric constant Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,676
04.07.2018 16:04:40
-28,800
d3bd514e58aab12974bb085205cdf83050078828
HV:common:add suffix U to the numeric constant Add suffix U to the numeric constant Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hv_main.c", "new_path": "hypervisor/common/hv_main.c", "diff": "@@ -88,7 +88,7 @@ void vcpu_thread(struct vcpu *vcpu)\npr_fatal(\"dispatch VM exit handler failed for reason\"\n\" %d, ret = %d!\",\nvcpu->arch_vcpu.exit_reason & 0xFFFFU, ret);\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:common:add suffix U to the numeric constant Add suffix U to the numeric constant Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,676
04.07.2018 16:04:54
-28,800
d3ad411c91e6145732ca26458f9c5a41597883e5
HV:lib:add suffix U to the numeric constant Add suffix U to the numeric constant Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/lib/memory.c", "new_path": "hypervisor/lib/memory.c", "diff": "@@ -22,7 +22,7 @@ static uint32_t Malloc_Heap_Contiguity_Bitmap[MALLOC_HEAP_BITMAP_SIZE];\nstruct mem_pool Memory_Pool = {\n.start_addr = Malloc_Heap,\n- .spinlock = {.head = 0, .tail = ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:lib:add suffix U to the numeric constant Add suffix U to the numeric constant Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,676
05.07.2018 09:06:03
-28,800
96372ed09c5d223906f90b8302327a7d4a6c29e2
HV:misc:add suffix U to the numeric constant Add suffix U to the numeric constant Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -947,8 +947,8 @@ static void get_entry_info(struct ptdev_remapping_info *entry, char *type,\n} else {\nstrcpy_s(type, 16, \"NONE\");\n*irq = IRQ_INVALID;\n- *vector = 0;\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:misc:add suffix U to the numeric constant Add suffix U to the numeric constant Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
05.07.2018 17:29:51
-28,800
3f9b0d53f59a531c6fd370bbceca336b182e5adb
HV: rename functions in cpu.c rename 'cpu_set_logical_id()' to 'set_current_cpu_id()' rename 'cpu_find_logical_id()' to 'get_cpu_id_from_lapic_id()' some clean up in cpu.c & trampolines.s
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -52,9 +52,9 @@ static void bsp_boot_post(void);\nstatic void cpu_secondary_post(void);\nstatic void vapic_cap_detect(void);\nstatic void cpu_xsave_init(void);\n-static void cpu_se...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: rename functions in cpu.c - rename 'cpu_set_logical_id()' to 'set_current_cpu_id()' - rename 'cpu_find_logical_id()' to 'get_cpu_id_from_lapic_id()' - some clean up in cpu.c & trampolines.s Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,725
03.07.2018 21:34:50
-28,800
bbb6920a7507f4ab6fef5a3df8f4f21701c890c9
HV: instr_emul: replace u_long with uint64_t Rflags is always 64-bit. Spell out the width explicitly and drop the unused typedef'ed u_long type.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -361,10 +361,10 @@ vie_update_register(struct vcpu *vcpu, enum vm_reg_name reg,\n* Return the status flags that would result from doing (x - y).\n*/\n#de...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: replace u_long with uint64_t Rflags is always 64-bit. Spell out the width explicitly and drop the unused typedef'ed u_long type. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,725
03.07.2018 22:36:46
-28,800
edc793145ab8bbb7849f49a0cb0b93423694ccf5
HV: instr_emul: convert sizes to uint8_t Op_sizes are mostly from vie->opsize which is a 4-bit field in struct vie. Use uint8_t instead of int to represent them.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -328,24 +328,24 @@ vie_write_bytereg(struct vcpu *vcpu, struct vie *vie, uint8_t byte)\nint\nvie_update_register(struct vcpu *vcpu, enum vm_reg_name reg,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: convert sizes to uint8_t Op_sizes are mostly from vie->opsize which is a 4-bit field in struct vie. Use uint8_t instead of int to represent them. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,725
04.07.2018 00:41:11
-28,800
845437646f482cd47ae15748e73bb9987b01d785
HV: instr_emul: keep using enum vm_reg_name for registers The vm_reg_name is a good example of a collection of discrete values. This patch replaces signed integers with this type whenever applicable to avoid dependence on the underlying value of such enumeration constants.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -671,8 +671,9 @@ emulate_movs(struct vcpu *vcpu, __unused uint64_t gpa, struct vie *vie,\n{\nuint64_t dstaddr, srcaddr;\nuint64_t rcx, rdi, rsi, rflags;\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: keep using enum vm_reg_name for registers The vm_reg_name is a good example of a collection of discrete values. This patch replaces signed integers with this type whenever applicable to avoid dependence on the underlying value of such enumeration constants. Signed-off-by: Junjie Mao <junjie.mao@intel....
528,725
04.07.2018 17:52:20
-28,800
479dacc2199246a6a20a76a3f803e0890f1f1a09
HV: instr_emul: convert cpl to uint8_t CPL is represented by a plain int but calculated from shifts and bit-wise operations. Convert it the uint8_t for consistency.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -1527,13 +1527,13 @@ vmm_emulate_instruction(struct vcpu *vcpu, uint64_t gpa, struct vie *vie,\n}\nint\n-vie_alignment_check(int cpl, uint8_t size, uint6...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: convert cpl to uint8_t CPL is represented by a plain int but calculated from shifts and bit-wise operations. Convert it the uint8_t for consistency. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,725
04.07.2018 23:04:41
-28,800
158242d507b67a468e98dd71474f23e15bb313f8
HV: instr_emul: enforce unsignedness of VIE_OP constants Translate the VIE_OP_* enum constants (which belong to an anonymous enum type) to macros to ensure that they are always unsigned.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "#include \"instr_emul.h\"\n/* struct vie_op.op_type */\n-enum {\n- VIE_OP_TYPE_NONE = 0,\n- VIE_OP_TYPE_MOV,\n- VIE_OP_TYPE_MOVSX,\n- VIE_OP_TYPE_MOVZX,\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: enforce unsignedness of VIE_OP constants Translate the VIE_OP_* enum constants (which belong to an anonymous enum type) to macros to ensure that they are always unsigned. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,725
05.07.2018 00:14:45
-28,800
62865d03973ccdb053e4907a8fd357b1bec59188
HV: instr_emul: make SEG_DESC_* macros having type bool The SEG_DESC_* macros are mostly used as branch conditions though they evaluates to signed int. This patch simplies their definitions and drop the unnecessary casts accordingly.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -1270,7 +1270,7 @@ emulate_stack_op(struct vcpu *vcpu, uint64_t mmio_gpa, struct vie *vie,\nerror = vm_get_seg_desc(vcpu, CPU_REG_SS, &ss_desc);\nASSERT(...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: make SEG_DESC_* macros having type bool The SEG_DESC_* macros are mostly used as branch conditions though they evaluates to signed int. This patch simplies their definitions and drop the unnecessary casts accordingly. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,725
05.07.2018 00:22:24
-28,800
91ef6ed59b440b181ae5e6885cad1e2708e429d4
HV: instr_emul: enforce unsignedness when possible Most of variables used when decoding instructions are unsigned bit-fields. This patch adds the 'U' or 'UL' suffix to constants in unsigned context and changes the type of arguments/local variables when necessary.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -209,8 +209,8 @@ static const struct vie_op one_byte_opcodes[256] = {\n#define VIE_MOD_DIRECT 3U\n/* struct vie.rm */\n-#define VIE_RM_SIB 4\n-#define VI...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: enforce unsignedness when possible Most of variables used when decoding instructions are unsigned bit-fields. This patch adds the 'U' or 'UL' suffix to constants in unsigned context and changes the type of arguments/local variables when necessary. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
528,728
04.07.2018 00:43:39
-7,200
f7d78289ee5fc596ff69c22d37d3c3f6787ebf94
Documentation: add pictures to Trusty documentation A couple of diagram were written using text characters. This commit changes that to use pictures instead.
[ { "change_type": "ADD", "old_path": "doc/developer-guides/images/ept-hierarchy.png", "new_path": "doc/developer-guides/images/ept-hierarchy.png", "diff": "Binary files /dev/null and b/doc/developer-guides/images/ept-hierarchy.png differ\n" }, { "change_type": "ADD", "old_path": "doc/deve...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: add pictures to Trusty documentation A couple of diagram were written using text characters. This commit changes that to use pictures instead. Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,747
05.07.2018 00:11:57
25,200
1bf511cf080b611a4d84050d5bf553473e1d0826
doc: small tweaks to new trusty doc Adjusted the picture sizes a bit smaller, fixed some spelling errors, and moved the boot-flow.dot image used by trusty into the common images folder (and renamed the image to trusty-boot-flow.dot)
[ { "change_type": "RENAME", "old_path": "doc/developer-guides/trusty/boot-flow.dot", "new_path": "doc/developer-guides/images/trusty-boot-flow.dot", "diff": "" }, { "change_type": "MODIFY", "old_path": "doc/developer-guides/trusty.rst", "new_path": "doc/developer-guides/trusty.rst", ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: small tweaks to new trusty doc Adjusted the picture sizes a bit smaller, fixed some spelling errors, and moved the boot-flow.dot image used by trusty into the common images folder (and renamed the image to trusty-boot-flow.dot) Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,680
14.06.2018 18:49:15
25,200
8779e4fd20eace694abfdd8f33ce829677ed2667
HV: uart16550: check the denominator before use To prevent the value is devided by zero, checks the denominator before the calculation. Adding the if statement to check before use. If the baud_rate is equal to zero, using default baud_rate.
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/uart16550.c", "new_path": "hypervisor/debug/uart16550.c", "diff": "@@ -89,6 +89,8 @@ static int uart16550_calc_baud_div(__unused struct tgt_uart *tgt_uart,\n{\nuint32_t baud_multiplier = baud_rate < BAUD_460800 ? 16 : 13;\n+ if (baud_rate == 0...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: uart16550: check the denominator before use To prevent the value is devided by zero, checks the denominator before the calculation. Adding the if statement to check before use. If the baud_rate is equal to zero, using default baud_rate. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,665
02.07.2018 10:31:50
-28,800
5042ba6009216337f50a659d691c1d962eee38da
tools: acrntrace: Change option -t to -i Option -i is more suitable for interval. Meanwhile, we will use option -t for timeout in later patch.
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/README.rst", "new_path": "tools/acrntrace/README.rst", "diff": "@@ -18,7 +18,7 @@ output to trace file under ``/tmp/acrntrace`` with raw (binary) data format.\nOptions:\n-h print this message\n--t period specify polling interval in milliseconds...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Change option -t to -i Option -i is more suitable for interval. Meanwhile, we will use option -t for timeout in later patch. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,665
02.07.2018 10:59:43
-28,800
d7f071200db534e1125df234e1b6613be948bdab
tools: acrntrace: Add option -t for max capture time If option -t is configured, a timer will be set with configured timeout when launching acrntrace. When timer fired, acrntrace will exit.
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/Makefile", "new_path": "tools/acrntrace/Makefile", "diff": "OUT_DIR ?= .\nall:\n- $(CC) -o $(OUT_DIR)/acrntrace acrntrace.c sbuf.c -I. -lpthread\n+ $(CC) -o $(OUT_DIR)/acrntrace acrntrace.c sbuf.c -I. -lpthread -lrt\nclean:\nrm -f $(OUT_DIR)/ac...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Add option -t for max capture time If option -t is configured, a timer will be set with configured timeout when launching acrntrace. When timer fired, acrntrace will exit. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Geoffroy Van Cutsem <ge...
528,728
06.07.2018 08:12:13
-7,200
0cb7b0417a28e5f8d27bee188cdfaf49152af786
Documentation: update script higlights in Getting Started Guide The 'launch_uos.sh' script was updated recently and new lines added to it. Adjust the 'emphasize-lines' directive accordingly.
[ { "change_type": "MODIFY", "old_path": "doc/getting-started/apl-nuc.rst", "new_path": "doc/getting-started/apl-nuc.rst", "diff": "@@ -290,7 +290,7 @@ Set up Reference UOS\n.. literalinclude:: ../../devicemodel/samples/nuc/launch_uos.sh\n:caption: devicemodel/samples/nuc/launch_uos.sh\n:language: bas...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: update script higlights in Getting Started Guide The 'launch_uos.sh' script was updated recently and new lines added to it. Adjust the 'emphasize-lines' directive accordingly. Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,747
06.07.2018 00:19:04
25,200
8d3847d21660f6a595e2385be6d84f97eb602eb2
doc: fix acrntrace parameter documentation Fix missing parameter documentation, and a misspelling
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/README.rst", "new_path": "tools/acrntrace/README.rst", "diff": "@@ -19,9 +19,9 @@ Options:\n-h print this message\n-i period specify polling interval in milliseconds [1-999]\n--t max time to capture trace data (in second)\n+-t max_time max time...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: fix acrntrace parameter documentation Fix missing parameter documentation, and a misspelling Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,801
06.07.2018 11:18:01
-28,800
54bd55d6365c9634807c35de6527f9842fe8ab25
hv: fix 'Recursion in procedure calls found' Here is how the recursion might happen: when there is something wrong | sbuf_put -> memcpy_s -> pr_err -> do_logmsg | | Replace 'pr_err' with 'ASSERT' in 'memcpy_s' to break this kind of recursion.
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/dump.c", "new_path": "hypervisor/debug/dump.c", "diff": "@@ -234,7 +234,7 @@ void __assert(uint32_t line, const char *file, const char *txt)\nuint64_t rsp = cpu_rsp_get();\nuint64_t rbp = cpu_rbp_get();\n- pr_fatal(\"Assertion failed in file %...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix 'Recursion in procedure calls found' Here is how the recursion might happen: when there is something wrong | sbuf_put -> memcpy_s -> pr_err -> do_logmsg | | ----------------------------------- Replace 'pr_err' with 'ASSERT' in 'm...
528,732
06.07.2018 11:09:46
-28,800
6494708f2f40330264f7544a9e736dec4c9ab6e1
tools: acrn-crashlog: fix potential buffer overflow issues This patch is to fix the potential buffer overflow issues.
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/common/log_sys.c", "new_path": "tools/acrn-crashlog/common/log_sys.c", "diff": "@@ -17,7 +17,9 @@ void do_log(const int level,\nva_list args;\nchar *fmt;\nchar log[MAX_LOG_LEN];\n+ char *msg_log;\nint n = 0;\n+ int msg_len = 0;\n#ifdef DEBU...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrn-crashlog: fix potential buffer overflow issues This patch is to fix the potential buffer overflow issues. Signed-off-by: CHEN Gang <gang.c.chen@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Reviewed-by: xiaojin2 <xiaojing.liu@intel.com>
528,683
06.07.2018 14:16:45
-28,800
3b6c8852869a1163962ae6b9e4342d5d97dec76a
launch_uos: remove enable_initial_modeset for UOS Some UOS need use FB device to display, while initial_modeset will disable fb, so we need remove correlation between plane restriction and initial modeset in kernel driver, also don't need set enable_initial_modeset in launch script.
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "new_path": "devicemodel/samples/apl-mrb/launch_uos.sh", "diff": "@@ -122,7 +122,7 @@ acrn-dm -A -m $mem_size -c $2$boot_GVT_option\"$GVT_args\" -s 0:0,hostbridge -s 1:\n-B \"root=/dev/vda2 rw rootwait maxcpus=$2 noh...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
launch_uos: remove enable_initial_modeset for UOS Some UOS need use FB device to display, while initial_modeset will disable fb, so we need remove correlation between plane restriction and initial modeset in kernel driver, also don't need set enable_initial_modeset in launch script. Signed-off-by: Fei Jiang <fei.jian...
528,665
06.07.2018 14:05:15
-28,800
21f0bddff80fc954f1fb2f7da067e66ba66242ae
HV: instr_emul: Rename emul_cnx to emul_ctxt ctxt is a more general abbreviation of context. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c", "new_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c", "diff": "@@ -258,19 +258,19 @@ static uint32_t get_vmcs_field(enum cpu_reg_name ident)\n}\n}\n-static void get_guest_paging_info(struct vcpu *vcpu, s...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: Rename emul_cnx to emul_ctxt ctxt is a more general abbreviation of context. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,806
12.06.2018 01:53:24
18,000
eff7353e11f21ce6fee32a597f8f369ae466729e
acrn-bridge: Do not overwrite system files We can not overwrite system files, there are others ways to overwrite configuration. Fixes: ("convert bridge creation to service") Acked-by: Geoffroy Van Cutsem
[ { "change_type": "MODIFY", "old_path": "tools/acrnbridge/Makefile", "new_path": "tools/acrnbridge/Makefile", "diff": "@@ -14,5 +14,3 @@ install:\ninstall -p -D -m 0644 $(OUT_DIR)/acrn.network $(DESTDIR)/$(SYSTEMD_NETWORKDIR)/systemd/network\ninstall -p -D -m 0644 $(OUT_DIR)/acrn_tap0.netdev $(DESTDI...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
acrn-bridge: Do not overwrite system files We can not overwrite system files, there are others ways to overwrite configuration. Fixes: b7ad7052bd42 ("convert bridge creation to service") Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.co...
528,786
25.06.2018 12:39:16
-28,800
260e84769df32a268705eee2c07a55e9a4e4d7bf
HV: trusty: use copy_from_gpa() instead of gpa2hpa() Use gpa2hpa() has potential hpa contiguous issue for structure trusty_boot_param. Fix it by using copy_from_gpa() instead.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "@@ -417,36 +417,41 @@ bool initialize_trusty(struct vcpu *vcpu, uint64_t param)\n{\nuint64_t trusty_entry_gpa, trusty_base_gpa, trusty_base_hpa;\nstruct vm *vm = vcpu->vm;\n- s...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: trusty: use copy_from_gpa() instead of gpa2hpa() Use gpa2hpa() has potential hpa contiguous issue for structure trusty_boot_param. Fix it by using copy_from_gpa() instead. Signed-off-by: Qi Yadong <yadong.qi@intel.com> Reviewed-by: Zhu Bing <bing.zhu@intel.com> Reviewed-by: Wang Kai <kai.z.wang@intel.com>
528,786
25.06.2018 10:59:49
-28,800
3e2d1fba6bc9f110432f628b8f2f4aa1bb178075
HV: trusty: Get rpmb_key from OSloader when init trusty Extend struct trusty_boot_param to hold rpmb_key. Copy rpmb_key from trusty_boot_param when initialize trusty.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "#include <hypervisor.h>\n#include <hkdf.h>\n-#define TRUSTY_VERSION 1\n+#define TRUSTY_VERSION 1U\n+#define TRUSTY_VERSION_2 2U\nstruct trusty_mem {\n/* The first page of trust...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: trusty: Get rpmb_key from OSloader when init trusty Extend struct trusty_boot_param to hold rpmb_key. Copy rpmb_key from trusty_boot_param when initialize trusty. Signed-off-by: Qi Yadong <yadong.qi@intel.com> Reviewed-by: Zhu Bing <bing.zhu@intel.com> Reviewed-by: Wang Kai <kai.z.wang@intel.com>
528,680
26.06.2018 17:30:41
25,200
dd695f3cfa8cbcb890963b20d0afb24502e302a3
HV: Moving operators out from conditions To follow the Misra-c standard, any operators should be done outside the conditions. Removed the prefix, postfix and bitwise shift from conditions.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1107,7 +1107,8 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)\n\"Sending SIPI from VCPU %d to %hu with vector %d\",\nvlapic->vcpu->vcpu_id, vcpu_id, vec);...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Moving operators out from conditions To follow the Misra-c standard, any operators should be done outside the conditions. Removed the prefix, postfix and bitwise shift from conditions. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,680
06.07.2018 18:40:30
25,200
0bed25745b47a393cc0a7afc5280c9fcb946f016
HV: Using one assignment in for loop statement To follow Misra-C standard, only one assignment is allowed in both initialization and update statement. Noncompliant example: for (i = 0, a = arry[0]; ...; i++, a = arry[i]){...}
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -620,9 +620,8 @@ void init_paging(void)\nattr_uc);\n/* Modify WB attribute for E820_TYPE_RAM */\n- for (i = 0U, entry = &e820[0];\n- i < e820_entries;\n- i++, entry = &e820[i]) {\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Using one assignment in for loop statement To follow Misra-C standard, only one assignment is allowed in both initialization and update statement. Noncompliant example: for (i = 0, a = arry[0]; ...; i++, a = arry[i]){...} Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,747
08.07.2018 20:58:58
25,200
bf5088eff44117927b5e4b78cdc46e1dba80d00d
doc: add v0.1 release notes Update text-formatted release notes as a reST document, but still needs work to explain the features and is mising GitHub issue links for the known issues list.
[ { "change_type": "MODIFY", "old_path": "doc/release_notes.rst", "new_path": "doc/release_notes.rst", "diff": "Release Notes\n#############\n-Version 0.1 release (March 2018)\n+Version 0.1 release (July 2018)\n********************************\n-In March 2018, Intel announced the open source Project A...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add v0.1 release notes Update text-formatted release notes as a reST document, but still needs work to explain the features and is mising GitHub issue links for the known issues list. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
09.07.2018 11:08:07
25,200
7a7fc5ba85e8ad560b3b6612973a70b25dcaceb6
doc: fix a formatting issue in the virtio-hld Layout of note at the end of the doc had a CSS formatting problem solved by adding a leading sentence before the bullet list.
[ { "change_type": "MODIFY", "old_path": "doc/developer-guides/virtio-hld.rst", "new_path": "doc/developer-guides/virtio-hld.rst", "diff": "@@ -610,7 +610,9 @@ To use the virtio-console device, use the following virtio command::\n.. note::\n- - '@' : marks the port as a console port, otherwise it is a...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: fix a formatting issue in the virtio-hld Layout of note at the end of the doc had a CSS formatting problem solved by adding a leading sentence before the bullet list. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
09.07.2018 08:17:33
25,200
de5bb50545bffc6220e8199d047ae35051e66f4a
doc: handle new VERSION file and format A recent PR changed where the release version is maintained (was in the hypervisor/Makefile, now in a VERSION file) and format (was a RC_VERSION variable, now a EXTRA_VERSION variable). The doc build process uses the version information when generating documents.
[ { "change_type": "MODIFY", "old_path": "doc/conf.py", "new_path": "doc/conf.py", "diff": "@@ -79,7 +79,7 @@ try:\nversion_major = None\nversion_minor = None\nversion_rc = None\n- for line in open(os.path.normpath(\"../hypervisor/Makefile\")) :\n+ for line in open(os.path.normpath(\"../VERSION\")) :\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: handle new VERSION file and format A recent PR changed where the release version is maintained (was in the hypervisor/Makefile, now in a VERSION file) and format (was a RC_VERSION variable, now a EXTRA_VERSION variable). The doc build process uses the version information when generating documents. Signed-off-by...
528,725
06.07.2018 20:59:44
-28,800
e6499674fdb97ad54d371770f7fbc197c032e44d
HV: ioapic: clean up remaining integral-related violations This patch cleans up the remaining integral-related violations in ioapic.c, including * integral narrowing, and * explicit conversion between signed & unsigned integers. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ioapic.c", "new_path": "hypervisor/arch/x86/ioapic.c", "diff": "@@ -262,8 +262,8 @@ void ioapic_set_rte(uint32_t irq, uint64_t raw_rte)\nreturn;\naddr = gsi_table[irq].addr;\n- rte.lo_32 = raw_rte;\n- rte.hi_32 = raw_rte >> 32;\n+ rte.lo_32...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: ioapic: clean up remaining integral-related violations This patch cleans up the remaining integral-related violations in ioapic.c, including * integral narrowing, and * explicit conversion between signed & unsigned integers. Tracked-on: ccm0001001-247033 Signed-off-by: Junjie Mao <junjie.mao@intel.com> A...
528,715
09.07.2018 15:13:14
-28,800
b79f35097756d8f6e6e118b3f7b924a188a9c49b
HV:CPU: Add 'U/UL' for constant value in CPU module There are unsinged constant values don't have 'U/UL' suffix in the HV reported by static analysis tool. Add 'U/UL' suffix for unsigned constant values as needed.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -723,7 +723,7 @@ void start_cpus()\n/* Wait until global count is equal to expected CPU up count or\n* configured time-out has expired\n*/\n- timeout = CONFIG_CPU_UP_TIMEOUT * 100...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:CPU: Add 'U/UL' for constant value in CPU module There are unsinged constant values don't have 'U/UL' suffix in the HV reported by static analysis tool. Add 'U/UL' suffix for unsigned constant values as needed. Tracked-on: ccm0001001-247033 Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Reviewed-by: Junjie ...
528,675
10.07.2018 09:24:30
-28,800
09859348d8cdbb38c2230f1440776b0865503b70
samples: add cma reservation into sos cmdline it's needed for trusty memory reservation. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt", "new_path": "devicemodel/samples/apl-mrb/sos_bootargs_debug.txt", "diff": "-pci_devices_ignore=(0:18:2) maxcpus=1 console=tty0 console=ttyS0 i915.nuclear_pageflip=1 root=/dev/mmcblk1p1 rw rootwait quiet logl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
samples: add cma reservation into sos cmdline it's needed for trusty memory reservation. Tracked-on: ccm0001001-242199 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,665
09.07.2018 11:18:01
-28,800
688b0cdb9c114c448c3599653177b5387cbae39a
HV: instr_emul: Return -EINVAL if inst_len equals 0 inst_len with 0 length should be treated as invaild value. This patch move 0 length check to the begainning of the function and return -EINVAL if inst_len == 0.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul.c", "new_path": "hypervisor/arch/x86/guest/instr_emul.c", "diff": "@@ -1682,9 +1682,13 @@ vie_calculate_gla(enum vm_cpu_mode cpu_mode, enum cpu_reg_name seg,\nint\nvie_init(struct vie *vie, struct vcpu *vcpu)\n{\n+ uint64_t...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: Return -EINVAL if inst_len equals 0 inst_len with 0 length should be treated as invaild value. This patch move 0 length check to the begainning of the function and return -EINVAL if inst_len == 0. Tracked-On: ccm0001001-247210 Signed-off-by: Kaige Fu <kaige.fu@intel.com>
528,680
22.06.2018 15:44:48
25,200
0419816574d6aeb265f54ba1e2cd206d077319a4
HV: Avoiding assignment opperation inside macro To follow the Misra-c standard, the assignment operation inside function-like macro should be avoided. Replaced the violations macro using inline function instead.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/guest.c", "new_path": "hypervisor/arch/x86/guest/guest.c", "diff": "@@ -733,7 +733,7 @@ uint64_t create_guest_initial_paging(struct vm *vm)\n/* PML4 used 1 page, skip it to fetch PDPT */\npdpt_base_paddr = GUEST_INIT_PAGE_TABLE_START ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Avoiding assignment opperation inside macro To follow the Misra-c standard, the assignment operation inside function-like macro should be avoided. Replaced the violations macro using inline function instead. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,680
03.07.2018 18:05:29
25,200
cfca49d7c6f426662016338eba489f287d7336b5
Changing the mem_read* from macro to inline To be consistant with inline function mem_write, modifying the mem_read* and using inline function instead.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -19,7 +19,7 @@ static uint64_t find_next_table(uint32_t table_offset, void *table_base)\nuint64_t sub_table_addr = 0;\n/* Read the table entry */\n- table_entry = MEM_READ64(table...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Changing the mem_read* from macro to inline To be consistant with inline function mem_write, modifying the mem_read* and using inline function instead. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,680
06.07.2018 15:00:39
25,200
e7aa00b83a2348ce2738fbefb34b53cb4b9dd980
HV: Avoiding the chained assignment To follow the Misra C standard, doing one assignment per line to make code is clearly readable and reduces the confusion of its intetion or typo.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpuid.c", "new_path": "hypervisor/arch/x86/cpuid.c", "diff": "@@ -164,7 +164,8 @@ int set_vcpuid_entries(struct vm *vm)\nresult = set_vcpuid_entry(vm, &entry);\nif (result != 0)\nreturn result;\n- vm->vcpuid_level = limit = entry.eax;\n+ li...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Avoiding the chained assignment To follow the Misra C standard, doing one assignment per line to make code is clearly readable and reduces the confusion of its intetion or typo. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,768
09.07.2018 19:38:53
-28,800
2e3135042a9dfb1953c48a2a25826d410c82537d
HV: Rename 'CPU_BOOT_ID' to 'BOOT_CPU_ID' - code cleanup to set a more smooth name
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -430,7 +430,7 @@ void bsp_boot_init(void)\nCPU_CONTEXT_OFFSET_IA32_SPEC_CTRL,\n\"run_context ia32_spec_ctrl offset not match\");\n- __bitmap_set(CPU_BOOT_ID, &pcpu_active_bitmap);...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Rename 'CPU_BOOT_ID' to 'BOOT_CPU_ID' - code cleanup to set a more smooth name Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,680
09.07.2018 16:16:29
25,200
39159ebe162484d3ca5dd1ed81e3e30ae0a1fa31
HV: Assignment should not mix with operator Removed the postfix and prefix operation in assignment expression. Noncompliant code example: 1) *a++ = *b ++; 2) a = arr[--b];
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -255,8 +255,10 @@ uint16_t __attribute__((weak)) parse_madt(uint8_t *lapic_id_base)\nstatic const uint8_t lapic_id[] = {0U, 2U, 4U, 6U};\nuint32_t i;\n- for (i = 0U; i < ARRAY_SIZ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Assignment should not mix with operator Removed the postfix and prefix operation in assignment expression. Noncompliant code example: 1) *a++ = *b ++; 2) a = arr[--b]; Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,676
10.07.2018 11:05:40
-28,800
0ccd74b947acd35210ce102d78f31fc1c9c9d605
HV:modified vm_description and vm_hw_info memebers' type transfer num_vcpus,exp_num_vcpus to uint16_t. transfer vm_hw_num_cores to uint16_t. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -469,7 +469,7 @@ int ept_mmap(struct vm *vm, uint64_t hpa,\nuint64_t gpa, uint64_t size, uint32_t type, uint32_t prot)\n{\nstruct map_params map_params;\n- int i;\n+ uint16_t i;\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:modified vm_description and vm_hw_info memebers' type transfer num_vcpus,exp_num_vcpus to uint16_t. transfer vm_hw_num_cores to uint16_t. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,665
04.07.2018 16:16:58
-28,800
c7f26ba962d7666edba513bbe20e70e6169a6cf4
tools: acrntrace: Add support for TRACE_6C/16STR We have TRACE_6C and TRACE_16STR API in hypervisor now. It's time to add support for parsing data traced by both APIs.
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/scripts/acrntrace_format.py", "new_path": "tools/acrntrace/scripts/acrntrace_format.py", "diff": "@@ -70,6 +70,8 @@ TSCREC = \"Q\"\nHDRREC = \"Q\"\nD2REC = \"QQ\"\nD4REC = \"IIII\"\n+D8REC = \"BBBBBBBBBBBBBBBB\"\n+D16REC = \"bbbbbbbbbbbbbbbb\"\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Add support for TRACE_6C/16STR We have TRACE_6C and TRACE_16STR API in hypervisor now. It's time to add support for parsing data traced by both APIs. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com>
528,680
09.07.2018 11:53:52
25,200
e263d8ebb9c9311a3266220f02c3ce8f174d287d
HV: No assignment inside while loop condition The assigment should be done outside while loop condition. To fix it, one assigment initializaion and update statement of for loop have been applied. The only while loop reminds to avoid very long for loop expression.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/guest.c", "new_path": "hypervisor/arch/x86/guest/guest.c", "diff": "@@ -79,7 +79,8 @@ inline uint64_t vcpumask2pcpumask(struct vm *vm, uint64_t vdmask)\nuint64_t dmask = 0;\nstruct vcpu *vcpu;\n- while ((vcpu_id = ffs64(vdmask)) != IN...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: No assignment inside while loop condition The assigment should be done outside while loop condition. To fix it, one assigment initializaion and update statement of for loop have been applied. The only while loop reminds to avoid very long for loop expression. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,725
09.07.2018 21:20:50
-28,800
0f777d3fe1a9adf1fbda9f5a7f2e0a12793efece
HV: assert: use signed int for __LINE__ GCC preprocessor expands __LINE__ to signed decimal integers. Keep the prototype of __assert aligned with this. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/dump.c", "new_path": "hypervisor/debug/dump.c", "diff": "@@ -228,13 +228,13 @@ static void show_host_call_trace(uint64_t rsp, uint64_t rbp, uint16_t pcpu_id)\nprintf(\"\\r\\n\");\n}\n-void __assert(uint32_t line, const char *file, const char *...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: assert: use signed int for __LINE__ GCC preprocessor expands __LINE__ to signed decimal integers. Keep the prototype of __assert aligned with this. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
09.07.2018 21:35:14
-28,800
eb7cf14bcf43ed89d3670992182a9ecfad43ef9d
HV: code format for memory.c replace blank space indent with tabs Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/lib/memory.c", "new_path": "hypervisor/lib/memory.c", "diff": "@@ -108,7 +108,8 @@ static void *allocate_mem(struct mem_pool *pool, unsigned int num_bytes)\n}\n/* Break if selected buffer is not free */\n- if ((pool->bitmap[tmp_idx] & (1U << tmp_bit...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: code format for memory.c replace blank space indent with tabs Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,680
26.06.2018 17:54:33
25,200
cb064b1133c0f5a004ae6682eb6300b00538fa9b
HV: Do not return expression contains subexpression Operation should be done outside return expression.
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/printf.c", "new_path": "hypervisor/debug/printf.c", "diff": "@@ -23,7 +23,8 @@ static int charout(int cmd, const char *s, int sz, void *hnd)\nelse\ns += console_write(s, sz);\n- return (*nchars += (s - p));\n+ *nchars += (s - p);\n+ return *nc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Do not return expression contains subexpression Operation should be done outside return expression. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,680
27.06.2018 18:16:50
25,200
809eb9f6cacc18028675258b2fe3b2a92ab6323c
vioapic.c: Using suffix rather than casting Using suffix "UL" rather than type casting 0xffffffff.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -330,7 +330,7 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)\nlast = vioapic->rtbl[pin].reg;\ndata64 = (uint64_t)data << lshift;\n- ma...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vioapic.c: Using suffix rather than casting Using suffix "UL" rather than type casting 0xffffffff. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
528,783
10.07.2018 13:08:24
-28,800
2686fe76bcea523b5575b623334b3c768a6012b0
hv: no need to return error when inject GP GP fault is a normal case,no need to return error. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/virq.c", "new_path": "hypervisor/arch/x86/virq.c", "diff": "@@ -290,11 +290,10 @@ void vcpu_inject_nmi(struct vcpu *vcpu)\nvcpu_make_request(vcpu, ACRN_REQUEST_NMI);\n}\n-int vcpu_inject_gp(struct vcpu *vcpu, uint32_t err_code)\n+void vcpu_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: no need to return error when inject GP GP fault is a normal case,no need to return error. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
10.07.2018 13:33:33
-28,800
f01e6efdf5c11b95705640e65709a3a435d2f430
hv:fix return value violation in vmexit handler Check return value for the called functions in vmexit handler Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -2258,7 +2258,7 @@ apicv_inject_pir(struct vlapic *vlapic)\nint apic_access_vmexit_handler(struct vcpu *vcpu)\n{\n- int access_type, offset = 0, ret;\n+ int acce...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:fix return value violation in vmexit handler Check return value for the called functions in vmexit handler Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
09.07.2018 15:01:52
-28,800
3fed57bb9f0ebc2245348d93e510b1963eacd607
hv:fix return value violation in prepare_vm0 Check the return value for prepare_vcpu/start_vm Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vm.c", "new_path": "hypervisor/arch/x86/guest/vm.c", "diff": "@@ -311,25 +311,28 @@ void resume_vm_from_s3(struct vm *vm, uint32_t wakeup_vec)\n/* Create vm/vcpu for vm0 */\nint prepare_vm0(void)\n{\n- int ret;\n+ int err;\nuint16_t i...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:fix return value violation in prepare_vm0 Check the return value for prepare_vcpu/start_vm Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
10.07.2018 12:00:37
-28,800
b3690987bd30804ce3c886c85bdc1ba6bf369f22
[REVERT-ME]: disable turbo mode there is a bug for system hang on SBL bootloader after we enabled turbo mode. so add tmp patch to disable turbo mode as the work-around. after SBL fixed it, we revert this patch. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -368,6 +368,7 @@ static void get_cpu_name(void)\nvoid bsp_boot_init(void)\n{\nuint64_t rsp;\n+ uint64_t misc_en;\nstart_tsc = rdtsc();\n@@ -436,6 +437,10 @@ void bsp_boot_init(voi...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
[REVERT-ME]: disable turbo mode there is a bug for system hang on SBL bootloader after we enabled turbo mode. so add tmp patch to disable turbo mode as the work-around. after SBL fixed it, we revert this patch. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,747
09.07.2018 12:40:19
25,200
1707fc370ac1f7f962132c5f580d77899bd8ecf1
doc: add memory management HLD Transcribe and publish the reviewed memory managment HLD into the ACRN doc set as a developer guide
[ { "change_type": "ADD", "old_path": "doc/developer-guides/images/mem-image1.png", "new_path": "doc/developer-guides/images/mem-image1.png", "diff": "Binary files /dev/null and b/doc/developer-guides/images/mem-image1.png differ\n" }, { "change_type": "ADD", "old_path": "doc/developer-gui...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add memory management HLD Transcribe and publish the reviewed memory managment HLD into the ACRN doc set as a developer guide Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
10.07.2018 10:18:28
25,200
2c706b21a1ac40df96fe1aed8be8483920d0c62b
doc: add ACPI virtualization HLD Transcribe and publish the reviewed ACPI virtualization HLD as another developer guide.
[ { "change_type": "ADD", "old_path": null, "new_path": "doc/developer-guides/ACPI-virt-hld.rst", "diff": "+.. _ACPI-virt-HLD:\n+\n+ACPI Virtualization High Level Design\n+#####################################\n+\n+ACPI introduction\n+*****************\n+\n+Advanced Configuration and Power Interface (...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add ACPI virtualization HLD Transcribe and publish the reviewed ACPI virtualization HLD as another developer guide. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,665
05.07.2018 10:29:55
-28,800
a2a412244c04df043a784e7aeae3712280c811af
tools: acrntrace: Remove unused function get_cpu_freq Function get_cpu_freq is not used anymore. This patch remove it.
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/acrntrace.c", "new_path": "tools/acrntrace/acrntrace.c", "diff": "@@ -185,30 +185,6 @@ static int get_cpu_num(void)\nreturn ret;\n}\n-static double get_cpu_freq(void)\n-{\n- char cmd[] =\n- \"cat /proc/cpuinfo | grep -m 1 \\\"cpu MHz\\\" | awk ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Remove unused function get_cpu_freq Function get_cpu_freq is not used anymore. This patch remove it. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com>
528,665
09.07.2018 16:02:13
-28,800
b52be90a2fc6ea02ab6dedab37247ec3ee0c7a9a
tools: acrntrace: Fix wrong event id in vmexit_analyze.py Value of VMEXIT_XXX must have the same as TRACE_VMEXIT_XXX defined in ./hypervisor/include/debug/trace.h. This patch fix the events with wrong event id. Fixes: (tools: acrntrace: Refactor vmexit_analyzer based on new trace format)
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/scripts/vmexit_analyze.py", "new_path": "tools/acrntrace/scripts/vmexit_analyze.py", "diff": "@@ -28,12 +28,12 @@ LIST_EVENTS = {\n'VMEXIT_IO_INSTRUCTION': VMEXIT_ENTRY + 0x0000001E,\n'VMEXIT_RDMSR': VMEXIT_ENTRY + 0x0000001F,\n'VMEXIT_WRMSR': ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: Fix wrong event id in vmexit_analyze.py Value of VMEXIT_XXX must have the same as TRACE_VMEXIT_XXX defined in ./hypervisor/include/debug/trace.h. This patch fix the events with wrong event id. Fixes: 8a233ee (tools: acrntrace: Refactor vmexit_analyzer based on new trace format) Signed-off-by: Kaige...
528,652
22.06.2018 10:16:17
25,200
92cd2612fc919c52a480d2472e30077d6100a050
hv: fixup addresses in the c code for relocation Trampoline code doesn't have the same relocation delta with HV, Need to manually patch them when referenced from HV replace all references to CONFIG_RAM_START with the actual HV load address
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "#include <hypervisor.h>\n#include <schedule.h>\n#include <version.h>\n+#include <reloc.h>\n#ifdef CONFIG_EFI_STUB\n#include <acrn_efi.h>\n@@ -662,39 +663,47 @@ static void update_tra...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fixup addresses in the c code for relocation - Trampoline code doesn't have the same relocation delta with HV, Need to manually patch them when referenced from HV - replace all references to CONFIG_RAM_START with the actual HV load address Signed-off-by: Zheng Gen <gen.zheng@intel.com> Signed-off-by: Zide Che...
528,652
22.06.2018 10:25:24
25,200
84d9da1d6ab2a156079aab005908e13bf8a9bf6b
hv: build hypervisor as PIE (position-independent executable) Build and link hypervisor with "-pie" and remove static linking so that it generates .rela sections for relocation
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -42,6 +42,7 @@ CFLAGS += -mno-red-zone\nCFLAGS += -static -nostdinc -nostdlib -fno-common\nCFLAGS += -O2 -D_FORTIFY_SOURCE=2\nCFLAGS += -Wformat -Wformat-security\n+CFLAGS += -fpie\nifdef STA...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: build hypervisor as PIE (position-independent executable) Build and link hypervisor with "-pie" and remove static linking so that it generates .rela sections for relocation Signed-off-by: Zheng Gen <gen.zheng@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Reviewed-by: Yin fengwei <fengwei.yin@intel.com...
528,652
28.06.2018 14:32:43
25,200
5cb9972919b09eeab24b82b444867d37eccc88b9
hv: cleanup cpu.c and cpu.h move all relocatoin code from cpu.c and cpu.h to reloc.c and reloc.h no any logic changes
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "#include <version.h>\n#include <reloc.h>\n-#ifdef CONFIG_EFI_STUB\n-#include <acrn_efi.h>\n-#endif\n-\nspinlock_t trampoline_spinlock = {\n.head = 0U,\n.tail = 0U\n@@ -31,8 +27,6 @@ ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cleanup cpu.c and cpu.h - move all relocatoin code from cpu.c and cpu.h to reloc.c and reloc.h - no any logic changes Signed-off-by: Zide Chen <zide.chen@intel.com> Reviewed-by: Yin fengwei <fengwei.yin@intel.com>
528,783
10.07.2018 20:46:58
-28,800
a9d04cc5cea328afef2c0d661beea6e8aa1428c5
[REVERT-ME]:handle discontinuous hpa for trusty This is a temp solution to handle discontinuous hpa when create/destroy secure world ept.
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -124,6 +124,7 @@ C_SRCS += arch/x86/vmexit.c\nC_SRCS += arch/x86/vmx.c\nC_SRCS += arch/x86/assign.c\nC_SRCS += arch/x86/trusty.c\n+C_SRCS += arch/x86/trusty2.c\nC_SRCS += arch/x86/cpu_state_t...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
[REVERT-ME]:handle discontinuous hpa for trusty This is a temp solution to handle discontinuous hpa when create/destroy secure world ept. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
528,700
10.07.2018 13:01:56
-18,000
057a384f8e982a6029a661fdf158a80069fca4f1
HV: bug fix update RTE if trigger mode or polarity is updated
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -406,12 +406,13 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)\n/* remap for active: interrupt mask -> unmask\n* remap for deactive: i...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: bug fix update RTE if trigger mode or polarity is updated Signed-off-by: Abdul Rehman <abdulrehmanee010@gmail.com>
528,728
10.07.2018 18:24:26
-7,200
5a7ccc87b1915864c507995deb5b58a847ffb71e
Dockerfile: remove security by-pass in Clear Linux Dockerfile "RUN git config --global http.sslVerify false" was needed with a cloud-based CI system else it failed to clone the repository. The project does not use that cloud-based CI system and hence this workaround (security by-pass) is not needed.
[ { "change_type": "MODIFY", "old_path": ".travis-dockerfiles/Dockerfile.clearlinux", "new_path": ".travis-dockerfiles/Dockerfile.clearlinux", "diff": "@@ -5,9 +5,6 @@ RUN swupd bundle-add -b os-clr-on-clr python3-basic\nRUN pip3 install kconfiglib\n-RUN mkdir -p /usr/local/bin\n-RUN git config --glob...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Dockerfile: remove security by-pass in Clear Linux Dockerfile "RUN git config --global http.sslVerify false" was needed with a cloud-based CI system else it failed to clone the repository. The project does not use that cloud-based CI system and hence this workaround (security by-pass) is not needed. Signed-off-by: G...
528,804
10.07.2018 19:07:46
-28,800
4cab8b9cc55af2a1186d6a831f29d9a562ab76ab
HV: code cleanup as MISRA-C report for guest/vmsr like: constant of unsigned int need add U/UL as surfix. enum value can't use to give or compare with int directlly. unsigned and signed mis-matched Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/guest.c", "new_path": "hypervisor/arch/x86/guest/guest.c", "diff": "#include <multiboot.h>\n#include <reloc.h>\n-#define ACRN_DBG_GUEST 6\n+#define ACRN_DBG_GUEST 6U\n/* for VM0 e820 */\nuint32_t e820_entries;\n@@ -18,7 +18,7 @@ struc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: code cleanup as MISRA-C report for guest/vmsr like: constant of unsigned int need add U/UL as surfix. enum value can't use to give or compare with int directlly. unsigned and signed mis-matched Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <...
528,783
11.07.2018 12:57:29
-28,800
2d03706dd5eb09887541ce819020a2fed82dc067
hv:change shell_puts to void type Change this function to void type Remove some parameters check, add these checks as preconditions
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/shell_internal.h", "new_path": "hypervisor/debug/shell_internal.h", "diff": "@@ -170,7 +170,7 @@ uint8_t shell_getc_serial(struct shell *p_shell);\nvoid shell_special_serial(struct shell *p_shell, uint8_t ch);\nvoid kick_shell(struct shell *p_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:change shell_puts to void type Change this function to void type Remove some parameters check, add these checks as preconditions Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
528,646
02.07.2018 15:58:28
-28,800
0683b16573bfbe5451a53f414766d4d675736007
tools:acrn-crashlog: Get reboot reason in acrnprobe Get system reboot reason from kernel commandline. Acked-by: Chen Gang
[ { "change_type": "MODIFY", "old_path": "tools/acrn-crashlog/acrnprobe/include/startupreason.h", "new_path": "tools/acrn-crashlog/acrnprobe/include/startupreason.h", "diff": "* limitations under the License.\n*/\n-extern void read_startupreason(char *startupreason);\n+#define REBOOT_REASON_SIZE 32\n+...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools:acrn-crashlog: Get reboot reason in acrnprobe Get system reboot reason from kernel commandline. Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Acked-by: Chen Gang <gang.c.chen@intel.com>
528,794
11.07.2018 10:49:04
-28,800
401ffd1e39816e41cbcbb2afa088adb262faa2dd
HV: pm: cleanup for misra integral type violations The patch fixes integral type related violations on HV pm part.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/pm.c", "new_path": "hypervisor/arch/x86/guest/pm.c", "diff": "@@ -36,7 +36,7 @@ static void vm_setup_cpu_px(struct vm *vm)\nuint32_t px_data_size;\nvm->pm.px_cnt = 0U;\n- (void)memset(vm->pm.px_data, 0,\n+ (void)memset(vm->pm.px_data,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: pm: cleanup for misra integral type violations The patch fixes integral type related violations on HV pm part. Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
528,801
10.07.2018 16:01:25
-28,800
194fd8ba1eea8a967a7482815782735d88c9b5b8
hv: irq: fix 'Pointer arithmetic is not on array' Define the array for 'struct irq_desc' with its size The array size for 'struct irq_desc' is constant and will not be changed. Use array rather than a pointer to avoid the pointer arithmetic.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/irq.c", "new_path": "hypervisor/arch/x86/irq.c", "diff": "static spinlock_t exception_spinlock = { .head = 0U, .tail = 0U, };\n-static struct irq_desc *irq_desc_base;\n+static struct irq_desc irq_desc_array[NR_MAX_IRQS];\nstatic uint32_t ve...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: irq: fix 'Pointer arithmetic is not on array' - Define the array for 'struct irq_desc' with its size The array size for 'struct irq_desc' is constant and will not be changed. - Use array rather than a pointer to avoid the pointer arithmetic. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Ju...
528,768
12.07.2018 18:07:00
-28,800
83361018b56e750ceb5e5d4a0fce58bf99a8ccd6
DM: Fix potential buffer overflow and uninitialized variable avoid buffer overflow access when calling 'memcmp()'
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/hugetlb.c", "new_path": "devicemodel/core/hugetlb.c", "diff": "@@ -506,7 +506,7 @@ static bool release_larger_freepage(int level_limit)\n*/\nstatic bool hugetlb_reserve_pages(void)\n{\n- int left_gap, pg_size;\n+ int left_gap = 0, pg_size;\nin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: Fix potential buffer overflow and uninitialized variable - @'rpmb_check_frame()', avoid buffer overflow access when calling 'memcmp()' Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,693
12.07.2018 15:01:56
25,200
82e0cdb808898ef1f6f82c14aa1507231020e4a9
HV: Fix missing brackets for MISRA C Violations Patch 3 of 7. Added changes to make sure Misra C violations are fixed for rules 11S and 12S.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c", "new_path": "hypervisor/arch/x86/guest/instr_emul_wrapper.c", "diff": "@@ -28,10 +28,13 @@ int vm_get_register(struct vcpu *vcpu, enum cpu_reg_name reg, uint64_t *retval)\n{\nstruct run_context *cur_context;\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix missing brackets for MISRA C Violations Patch 3 of 7. Added changes to make sure Misra C violations are fixed for rules 11S and 12S. Signed-off-by: Arindam Roy <arindam.roy@intel.com>
528,693
12.07.2018 15:03:27
25,200
1af8586cd1dd7170ec8d7dd014b66f2c9fa37d0d
HV: Fix missing brackets for MISRA C Violations Patch 7 of 7. Added changes to make sure Misra C violations are fixed for rules 11S and 12S.
[ { "change_type": "MODIFY", "old_path": "hypervisor/lib/memory.c", "new_path": "hypervisor/lib/memory.c", "diff": "@@ -80,8 +80,9 @@ static void *allocate_mem(struct mem_pool *pool, unsigned int num_bytes)\nfor (bit_idx = ffz64(pool->bitmap[idx]);\nbit_idx < BITMAP_WORD_SIZE; bit_idx++) {\n/* Check i...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix missing brackets for MISRA C Violations Patch 7 of 7. Added changes to make sure Misra C violations are fixed for rules 11S and 12S. Signed-off-by: Arindam Roy <arindam.roy@intel.com>
528,725
13.07.2018 17:00:22
-28,800
87f2d4c042666f391d71e9a4dabb5df078c27141
HV: vlapic: add suffix 'U' when necessary For constants used in unsigned contexts, a 'U' suffix is required per MISRA C standard. Acked-by: Dong Eddie
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "#define VLAPIC_VERBOS 0\n#define PRIO(x) ((x) >> 4)\n-#define VLAPIC_VERSION (16)\n+#define VLAPIC_VERSION (16U)\n#define APICBASE_RESERVED 0x000002ffU\n#define API...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: vlapic: add suffix 'U' when necessary For constants used in unsigned contexts, a 'U' suffix is required per MISRA C standard. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie.dong@intel.com>
528,725
13.07.2018 17:04:24
-28,800
6dd78d5ad1fe721732a256054a7428d4c2aabd54
HV: vlapic: convert loop variables to unsigned Most loop variables in vlapic are used in unsigned contexts (include bitops, arithmetic w/ other unsigned integers, etc). This patch refactors these loop so the these variables can be unsigned. Acked-by: Dong Eddie
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "#if VLAPIC_VERBOS\nstatic inline void vlapic_dump_irr(struct vlapic *vlapic, char *msg)\n{\n- int i;\n+ uint32_t i;\nstruct lapic_reg *irrptr = &(vlapic)->apic_page...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: vlapic: convert loop variables to unsigned Most loop variables in vlapic are used in unsigned contexts (include bitops, arithmetic w/ other unsigned integers, etc). This patch refactors these loop so the these variables can be unsigned. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie....
528,725
13.07.2018 17:07:46
-28,800
f05e2fc73b63c469f87a7f01aa3c805ed9940d34
HV: vlapic: cleanup types in formatting strings Make the type indicators in formatting strings aligned with the actual variables passed. Acked-by: Dong Eddie
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -115,7 +115,7 @@ vm_lapic_from_pcpuid(struct vm *vm, uint16_t pcpu_id)\nstruct vcpu *vcpu;\nvcpu = vcpu_from_pid(vm, pcpu_id);\n- ASSERT(vcpu != NULL, \"vm%d, pc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: vlapic: cleanup types in formatting strings Make the type indicators in formatting strings aligned with the actual variables passed. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie.dong@intel.com>
528,725
13.07.2018 17:10:02
-28,800
e08a58ebe64b27f9e72a0d41ba59346349a1d9df
HV: vlapic: save complex expressions to local variables Use local variables to hold struct members before using them, which helps us avoid confusions from static checkers. Acked-by: Dong Eddie
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -126,7 +126,8 @@ static uint16_t vm_apicid2vcpu_id(struct vm *vm, uint8_t lapicid)\nstruct vcpu *vcpu;\nforeach_vcpu(i, vm, vcpu) {\n- if (vlapic_get_apicid(vcpu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: vlapic: save complex expressions to local variables Use local variables to hold struct members before using them, which helps us avoid confusions from static checkers. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie.dong@intel.com>
528,725
13.07.2018 17:11:27
-28,800
e3452cf8042cfbaf682323f89f6e22c30e0b1c07
HV: vlapic: minimize explicit casts by adjusting types To minimize explicit casts, this patch adjusts the types of function parameters and structure fields related to vlapic and update the types in the internal implementation accordingly. Acked-by: Dong Eddie
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -473,9 +473,10 @@ vlapic_set_intr_ready(struct vlapic *vlapic, uint32_t vector, bool level)\nreturn 1;\n}\n- if (vlapic->ops.apicv_set_intr_ready != NULL)\n+ if ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: vlapic: minimize explicit casts by adjusting types To minimize explicit casts, this patch adjusts the types of function parameters and structure fields related to vlapic and update the types in the internal implementation accordingly. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Dong Eddie <eddie.do...
528,715
12.07.2018 15:50:48
-28,800
2a2adc76f61636ba2f0dbe204d5daf15edf7ae6d
HV:CPU:Fix a mistake introduced by MARCO replacing patch Fixs: (HV:CPU:Constant values replace with CPU MACRO) There is a mistake in the previous MARCO replacing patch, use CR4 value replaces CR0 MACRO. Use CR0 value replaces CR0 MACRO.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/wakeup.S", "new_path": "hypervisor/arch/x86/wakeup.S", "diff": "@@ -121,8 +121,8 @@ restore_s3_context:\nmov 0x88 + cpu_ctx(%rip), %rax\nmov %rax, %cr3\n- /*144U=0x90=CPU_CONTEXT_OFFSET_CR4*/\n- mov 0x90 + cpu_ctx(%rip), %rax\n+ /*120U=0x78...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:CPU:Fix a mistake introduced by MARCO replacing patch Fixs: 7fd3c624 (HV:CPU:Constant values replace with CPU MACRO) There is a mistake in the previous MARCO replacing patch, use CR4 value replaces CR0 MACRO. Use CR0 value replaces CR0 MACRO. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Reviewed-by: Yin F...
528,783
12.07.2018 11:59:19
-28,800
1d628c640c0a29c9bde2be4ef27834834010e182
hv:fix MISRA-C return value violation 1) Change these 5 APIs to void type: vcpu_inject_pf uart16550_calc_baud_div uart16550_set_baud_rate console_init ptdev_activate_entry No need to return 'entry' for ptdev_activate_entry since the input parameter is 'entry'. 2) no need to check return value for the caller such as sbu...
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/virq.c", "new_path": "hypervisor/arch/x86/virq.c", "diff": "@@ -296,7 +296,7 @@ void vcpu_inject_gp(struct vcpu *vcpu, uint32_t err_code)\nvcpu_make_request(vcpu, ACRN_REQUEST_EXCP);\n}\n-int vcpu_inject_pf(struct vcpu *vcpu, uint64_t addr,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:fix MISRA-C return value violation 1) Change these 5 APIs to void type: vcpu_inject_pf uart16550_calc_baud_div uart16550_set_baud_rate console_init ptdev_activate_entry No need to return 'entry' for ptdev_activate_entry since the input parameter is 'entry'. 2) no need to check return value for the ca...
528,676
13.07.2018 11:43:29
-28,800
e3302e87e8aa1869d72326bd2ae97b9e4687590e
HV:transfer vm_hw_logical_core_ids's type and rename it rename vm_hw_logical_core_ids to vm_pcpu_ids and changed the type to uint16_t. V1->V2:rename the vm_hw_logical_core_ids Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vm.c", "new_path": "hypervisor/arch/x86/guest/vm.c", "diff": "@@ -356,7 +356,7 @@ static inline bool vcpu_in_vm_desc(struct vcpu *vcpu,\nint i;\nfor (i = 0; i < vm_desc->vm_hw_num_cores; i++) {\n- if (vcpu->pcpu_id == vm_desc->vm_hw_l...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:transfer vm_hw_logical_core_ids's type and rename it rename vm_hw_logical_core_ids to vm_pcpu_ids and changed the type to uint16_t. V1->V2:rename the vm_hw_logical_core_ids Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,665
12.07.2018 16:20:13
-28,800
0fbdf374a38cec58871ac80ef7c6f09645b8475b
HV: instr_emul: Cleanup ASSERT There so many ASSERT following the function vie_read_register and vm_get_seg_desc. It's better to move the ASSERT to those two functions and make the code more compact. 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": "@@ -246,6 +246,8 @@ vie_read_register(struct vcpu *vcpu, enum cpu_reg_name reg, uint64_t *rval)\nint error;\nerror = vm_get_register(vcpu, reg, rval);\n+ AS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: Cleanup ASSERT There so many ASSERT following the function vie_read_register and vm_get_seg_desc. It's better to move the ASSERT to those two functions and make the code more compact. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,665
12.07.2018 13:28:28
-28,800
2f3eb6723db5b36ab7f0e39d0f6a144433a1f38f
HV: Remove SIB decode related code in decode_modrm We will decode SIB in decode_sib after decode_modrm. So, there is no need to decode SIB related field in decode_modrm. This patch remove it. 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": "@@ -1969,41 +1969,6 @@ decode_modrm(struct vie *vie, enum vm_cpu_mode cpu_mode)\nvie->reg |= (vie->rex_r << 3);\n- /* SIB */\n- if (vie->mod != VIE_MOD_DIRE...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Remove SIB decode related code in decode_modrm We will decode SIB in decode_sib after decode_modrm. So, there is no need to decode SIB related field in decode_modrm. This patch remove it. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,665
12.07.2018 15:32:17
-28,800
44a175e4fe37e0c3da51a3b3f309273e0aaaddcf
HV: instr_emul: Add new function vie_update_rflags There are some duplicate codes in emulate_xxx functions which update rflags and it deserves a common function to deal with the situation. So, this patch introduces a new function vie_update_rflags to updating rflags accordingly. 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": "@@ -361,6 +361,26 @@ vie_update_register(struct vcpu *vcpu, enum cpu_reg_name reg,\n#define RFLAGS_STATUS_BITS (PSL_C | PSL_PF | PSL_AF | PSL_Z | PSL_N | PS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: instr_emul: Add new function vie_update_rflags There are some duplicate codes in emulate_xxx functions which update rflags and it deserves a common function to deal with the situation. So, this patch introduces a new function vie_update_rflags to updating rflags accordingly. Signed-off-by: Kaige Fu <kaige.fu@inte...
528,751
12.07.2018 10:13:09
-28,800
6ad150834fcb06506de54ec9f5c298c4f2648f5e
dm: virtio-net: add variable name in function declaration We should keep variable name in function declaration. It makes things clearer and easier to be understood. 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": "@@ -152,12 +152,11 @@ struct virtio_net {\nint iovcnt, int len);\n};\n-static void virtio_net_reset(void *);\n-static void virtio_net_tx_stop(struct virtio_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-net: add variable name in function declaration We should keep variable name in function declaration. It makes things clearer and easier to be understood. Signed-off-by: Jie Deng <jie.deng@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
528,676
13.07.2018 11:38:27
-28,800
680c64de13987e8a2d677ddaa81caa575d0ff816
HV:transfer vmid's type to uint16_t vmid's type prefered to be uint16_t. V1->V2:vmid from uint32_t transfer to uint16_t V2->V3:add range check to hcall's vmid parameter V3->V4:seperate the declaration and actual code. V4->V5:remove range check from hcall's vmid parameter Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -651,7 +651,7 @@ bool vioapic_get_rte(struct vm *vm, uint8_t pin, void *rte)\n}\n#ifdef HV_DEBUG\n-void get_vioapic_info(char *str, int str_max, int vmid)\n+vo...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV:transfer vmid's type to uint16_t vmid's type prefered to be uint16_t. V1->V2:vmid from uint32_t transfer to uint16_t V2->V3:add range check to hcall's vmid parameter V3->V4:seperate the declaration and actual code. V4->V5:remove range check from hcall's vmid parameter Signed-off-by: Huihuang Shi <huihuang.shi@int...
528,768
14.07.2018 01:49:40
-28,800
b831120165921d999706368b7f37c4fe4182e4d6
HV: coding style cleanup for TRACE_2L & TRACE_4I usage to align the data type of parameters
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/io.c", "new_path": "hypervisor/arch/x86/io.c", "diff": "@@ -73,8 +73,8 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)\ndirection = VM_EXIT_IO_INSTRUCTION_ACCESS_DIRECTION(exit_qual);\nmask = 0xfffffffful >> (32 - 8 * sz);\n- TRACE_4I(TRA...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: coding style cleanup for TRACE_2L & TRACE_4I usage to align the data type of parameters Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>