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,713
16.04.2018 12:42:38
-28,800
db4e3f87bfc92d642364246cc7f3007a535f9c13
bootparam: bug fix on address convertion Before pasing commandline from boot param, switch the phisical address of param to virtaul address.
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/cmdline.c", "new_path": "hypervisor/bsp/uefi/cmdline.c", "diff": "@@ -103,7 +103,7 @@ int parse_hv_cmdline(void)\nreturn -EINVAL;\n}\n- mbi = (struct multiboot_info *)((uint64_t)boot_regs[1]);\n+ mbi = (struct multiboot_info *)(HPA2HVA((uin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
bootparam: bug fix on address convertion Before pasing commandline from boot param, switch the phisical address of param to virtaul address. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,647
16.04.2018 14:54:14
-28,800
c61559a336cd564c3af73f0e04bbb6cdaa224a3f
hv: remove spinlock_irq_obtain/spinlock_irq_release These APIs are not used, and not as safe as spinlock_irqsave_obtain/ spinlock_irqrestore_release. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/spinlock.h", "new_path": "hypervisor/include/lib/spinlock.h", "diff": "@@ -93,14 +93,12 @@ static inline int spinlock_release(spinlock_t *lock)\n#define spinlock_rflags unsigned long cpu_int_value\n-#define spinlock_irq_obtain(l) (CPU_IR...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: remove spinlock_irq_obtain/spinlock_irq_release These APIs are not used, and not as safe as spinlock_irqsave_obtain/ spinlock_irqrestore_release. Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,780
17.04.2018 13:39:41
-28,800
24739708c3b1829f9db222c7d582a130039f1a51
HV: Remove the unused mmio_or/and/rmw operation The mmio_or_long/mmio_and_long/mmio_rmw_long is defined to perform the read & write operation. But they are not used. So they are removed. Acked-by: Anthony Xu Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/arch/x86/io.h", "new_path": "hypervisor/include/arch/x86/io.h", "diff": "@@ -238,133 +238,6 @@ static inline uint8_t mmio_read_byte(void *addr)\nreturn *((uint8_t *)addr);\n}\n-/** Sets bits in a 32 bit value from a memory mapped IO device.\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Remove the unused mmio_or/and/rmw operation The mmio_or_long/mmio_and_long/mmio_rmw_long is defined to perform the read & write operation. But they are not used. So they are removed. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel...
528,804
16.04.2018 11:49:25
-28,800
fdfb71e07532f5208c9945d24d1dea6c8178ad1f
delete watchdog timer when deinit is called to avoid system resource/memory leaked when guest os reboot. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/wdt_i6300esb.c", "new_path": "devicemodel/hw/pci/wdt_i6300esb.c", "diff": "@@ -132,7 +132,7 @@ wdt_expired_thread(union sigval v)\n}\nstatic void\n-stop_wdt_timer()\n+stop_wdt_timer(void)\n{\nstruct itimerspec timer_val;\n@@ -145,6 +145,19 @...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
delete watchdog timer when deinit is called to avoid system resource/memory leaked when guest os reboot. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,804
12.04.2018 17:26:49
-28,800
ac5da17e5261c776f600394c0b2d2676c63d603b
enable rdtscp instruction for guest OS all vCPUs before just AP can run "rdtscp" intruction, if run it on BSP, it will cause "illegal instruction"; now align BSP & AP. also remove duplicated code. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmexit.c", "new_path": "hypervisor/arch/x86/vmexit.c", "diff": "@@ -246,13 +246,6 @@ static int write_cr0(struct vcpu *vcpu, uint64_t value)\nexec_vmwrite(VMX_ENTRY_CONTROLS, value32);\npr_dbg(\"VMX_ENTRY_CONTROLS: 0x%x \", value32);\n- /* ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
enable rdtscp instruction for guest OS all vCPUs before just AP can run "rdtscp" intruction, if run it on BSP, it will cause "illegal instruction"; now align BSP & AP. also remove duplicated code. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,675
30.01.2018 22:58:40
-28,800
25ef14edac7cf32d982651e73d2b335ebdeda4da
hugetlb: add ept map memseg support adding API vm_map_memseg_vma() which using ioctl IC_SET_MEMSEG call into VHM for futher mem(ept) mapping, based on user vma information. Acked-by: Xu, Anthony
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/hugetlb.c", "new_path": "devicemodel/core/hugetlb.c", "diff": "@@ -487,6 +487,18 @@ int hugetlb_setup_memory(struct vmctx *ctx)\n}\nprintf(\"total_size 0x%lx\\n\\n\", total_size);\n+ /* map ept for lowmem*/\n+ if (vm_map_memseg_vma(ctx, ctx->l...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hugetlb: add ept map memseg support adding API vm_map_memseg_vma() which using ioctl IC_SET_MEMSEG call into VHM for futher mem(ept) mapping, based on user vma information. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
528,675
18.04.2018 11:49:18
-28,800
4f6bdee0c53aaf0896b2ea9491f6b105f2b5e1db
DM: change VM_SYSMEM/VM_MMIO to VM_MEMMAP_SYSMEM/VM_MEMMAP_MMIO these MACROs are only for MEMMAP
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/vmmapi.c", "new_path": "devicemodel/core/vmmapi.c", "diff": "@@ -321,7 +321,7 @@ vm_map_memseg_vma(struct vmctx *ctx, size_t len, vm_paddr_t gpa,\nstruct vm_memmap memmap;\nbzero(&memmap, sizeof(struct vm_memmap));\n- memmap.type = VM_SYSMEM;\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: change VM_SYSMEM/VM_MMIO to VM_MEMMAP_SYSMEM/VM_MEMMAP_MMIO these MACROs are only for MEMMAP Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,675
13.04.2018 08:52:54
-28,800
71ee5ef6c8f9eb5bf49beca8fa67094d964d6059
mmu: refine function check_mmu_1gb_support change its input from map_params to page_table_type, and make it as a public API. Acked-by: Xu, Anthony
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -124,11 +124,11 @@ void invept(struct vcpu *vcpu)\n_invept(INVEPT_TYPE_ALL_CONTEXTS, desc);\n}\n-static bool check_mmu_1gb_support(struct map_params *map_params)\n+bool check_mmu_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine function check_mmu_1gb_support change its input from map_params to page_table_type, and make it as a public API. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
528,763
11.04.2018 15:11:53
-28,800
3648a0cd6f3ff14dd939966296f7aebb2b74f514
VTd: bluetooth passthrough support Adds ACPI tables for 0:18.0(UART) device
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/passthrough.c", "new_path": "devicemodel/hw/pci/passthrough.c", "diff": "@@ -1807,6 +1807,28 @@ write_dsdt_ipu_i2c(struct pci_vdev *dev)\ndsdt_line(\"}\");\n}\n+static void\n+write_dsdt_urt1(struct pci_vdev *dev)\n+{\n+ printf(\"write virt-%...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
VTd: bluetooth passthrough support Adds ACPI tables for 0:18.0(UART) device Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
528,804
02.04.2018 12:08:46
-28,800
8a8b1a47baec59981da73669760f150dde1feeed
remove timer spinlock for timer list is operated by per-cpu; and no interrupt service operates it too. So it's unnecessary for spinlock. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "@@ -65,7 +65,6 @@ struct per_cpu_timers {\nstruct timer *timers_pool; /* it's timers pool for allocation */\nuint64_t free_bitmap;\nstruct list_head timer_list; /* it's for runti...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove timer spinlock for timer list is operated by per-cpu; and no interrupt service operates it too. So it's unnecessary for spinlock. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie....
528,804
18.04.2018 14:22:47
-28,800
9dbcf7afaf6b03f5bae0bf7f96eec3785efc0ee5
remove deadcode of timer the code is used to debug before, not used now. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "@@ -438,41 +438,6 @@ bool cancel_timer(long handle, int cpu_id)\nreturn ret;\n}\n-void dump_timer_pool_info(int cpu_id)\n-{\n- struct per_cpu_timers *cpu_timer =\n- &per_cpu(cpu_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove deadcode of timer the code is used to debug before, not used now. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,794
17.04.2018 12:12:33
-28,800
c3374a519a9f489706925a65f3ab6ee2cd984349
HV: code cleanup for cpu state Split pm.c from cpu_state_tbl.c to put guest power management related functions, keep cpu_state_tbl.c to store host cpu state table and related functions. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -116,6 +116,7 @@ C_SRCS += arch/x86/guest/vmsr.c\nC_SRCS += arch/x86/guest/vioapic.c\nC_SRCS += arch/x86/guest/instr_emul.c\nC_SRCS += arch/x86/guest/ucode.c\n+C_SRCS += arch/x86/guest/pm.c\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: code cleanup for cpu state Split pm.c from cpu_state_tbl.c to put guest power management related functions, keep cpu_state_tbl.c to store host cpu state table and related functions. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,756
18.04.2018 16:29:12
-28,800
10c3a98577a55ad40fd722e87bbd28713d31d82d
IOC mediator: update signal whitelist Remove some useless signals from the whitelist and add new three signals into the whitelist based on requirement. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -423,172 +423,15 @@ static struct wlist_signal wlist_rx_signal_table[] = {\n};\nstatic struct wlist_signal wlist_tx_signal_table[] = {\n+ {(uint16_t)CBC_SIG_ID_TSE, DEFAUL...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: update signal whitelist Remove some useless signals from the whitelist and add new three signals into the whitelist based on requirement. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
17.04.2018 11:40:01
-28,800
1b1f723c7bbb82ee537b8d761bcc515e430b371f
hv: add hardware_detect_support to detect which hardware we support Now just add some basic feature/capability detect (not all). Vapic didn't add here for if we must support vapic then the code which for vapic not supported must remove, like mmio apic r/w. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -126,7 +126,6 @@ static uint64_t get_address_mask(uint8_t limit)\nstatic void get_cpu_capabilities(void)\n{\nuint32_t eax, unused;\n- uint32_t max_extended_function_idx;\nuint32_t...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: add hardware_detect_support to detect which hardware we support Now just add some basic feature/capability detect (not all). Vapic didn't add here for if we must support vapic then the code which for vapic not supported must remove, like mmio apic r/w. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie D...
528,756
20.04.2018 13:08:45
-28,800
cb412101044744e36cfc6ed530d4e21a3738d470
IOC mediator: update signal whitelist Add AmbientTemperature signal into the whitelist, instead of TemperatureSensorEnvironment signal. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -423,7 +423,7 @@ static struct wlist_signal wlist_rx_signal_table[] = {\n};\nstatic struct wlist_signal wlist_tx_signal_table[] = {\n- {(uint16_t)CBC_SIG_ID_TSE, DEFAULT_W...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: update signal whitelist Add AmbientTemperature signal into the whitelist, instead of TemperatureSensorEnvironment signal. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,713
18.04.2018 14:10:19
-28,800
1c57adc8b308317f4a97e2b415cc9103b8fd3f50
hv: bug fix on synchronizing with APs Using eax will truncate the high 32bit part of 64bit virtual address. And the type of sync is unsigned long, so using rbx instead of ebx.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -732,11 +732,11 @@ static void print_hv_banner(void)\nstatic void pcpu_sync_sleep(unsigned long *sync, int mask_bit)\n{\n- int wake_sync = (1 << mask_bit);\n+ uint64_t wake_sync =...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: bug fix on synchronizing with APs Using eax will truncate the high 32bit part of 64bit virtual address. And the type of sync is unsigned long, so using rbx instead of ebx. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
528,713
23.04.2018 15:49:48
-28,800
529ccd79448e3873cb474fac6860ab74f02da1f3
UEFI: bug fix on redundant waking up APs Due to redundant waking up APs When rebooting UOS, the crash occurs and fail to reboot UOS. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/uefi.c", "new_path": "hypervisor/bsp/uefi/uefi.c", "diff": "@@ -104,6 +104,12 @@ void efi_deferred_wakeup_pcpu(int cpu_id)\n{\nuint32_t timeout;\nuint32_t expected_up;\n+ static uint32_t waked_pcpu_bitmap;\n+\n+ if ((1 << cpu_id) & waked_pc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
UEFI: bug fix on redundant waking up APs Due to redundant waking up APs When rebooting UOS, the crash occurs and fail to reboot UOS. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,804
25.04.2018 11:16:29
-28,800
f8a26a69e922da2a0243476f7e524adac96d89c2
remove deadcode of vm1 config in vm_description Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/sbl/vm_description.c", "new_path": "hypervisor/bsp/sbl/vm_description.c", "diff": "/* Logical CPU IDs assigned to VM0 */\nint VM0_CPUS[VM0_NUM_CPUS] = {0};\n-/* Number of CPUs in VM1 */\n-#define VM1_NUM_CPUS 2\n-\n-/* Logical CPU IDs assigned w...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove deadcode of vm1 config in vm_description Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
19.04.2018 13:50:05
-28,800
0287ac4a9934fa6f9c0999aaee3eaddd213e0281
hv: Not to destroy ept of trusty memory if it's not initialized. If guest reboot is issued before trusty init hypercall is issued, we shouldn't destroy ept fo trusty memory because the ept is not created yet. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -125,8 +125,15 @@ void destroy_ept(struct vm *vm)\n{\nfree_ept_mem(HPA2HVA(vm->arch_vm.nworld_eptp));\nfree_ept_mem(HPA2HVA(vm->arch_vm.m2p));\n- /* Destroy Secure world ept */\n-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Not to destroy ept of trusty memory if it's not initialized. If guest reboot is issued before trusty init hypercall is issued, we shouldn't destroy ept fo trusty memory because the ept is not created yet. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked...
528,654
23.04.2018 12:52:04
-28,800
d129659ecd35d0c5e0183fc92c87582ce473057a
hv: timer: remove statistics for timer Since there no dump related API. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "#define MAX_TIMER_ACTIONS 32\n-struct timer_statistics {\n- struct {\n- uint64_t pickup_id;\n- uint64_t pickup_time;\n- uint64_t pickup_deadline;\n- uint64_t added_id;\n- uint64_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: remove statistics for timer Since there no dump related API. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
23.04.2018 13:01:04
-28,800
7f4332f53979362a4fc8db36c1c76022b230ffe7
hv: timer: rename cpu/cpu_id to pcpu_id timer is physical cpu related. Acked-by: Eddie Dong <eddie.dong>
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "@@ -41,7 +41,7 @@ struct timer {\nuint64_t priv_data; /* func private data */\nuint64_t deadline; /* tsc deadline to interrupt */\nlong handle; /* unique handle for user */\n- in...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: rename cpu/cpu_id to pcpu_id timer is physical cpu related. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong>
528,654
19.04.2018 16:16:42
-28,800
ab97963088b09fa40dc81c3778a5a9398304099e
hv: lib: add max()/min() API Add max()/min() lib API Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/util.h", "new_path": "hypervisor/include/lib/util.h", "diff": "/** Roundup (x/y) to ( x/y + (x%y) ? 1 : 0) **/\n#define INT_DIV_ROUNDUP(x, y) (((x)+(y)-1)/(y))\n+#define min(x, y) ((x) < (y)) ? (x) : (y)\n+\n+#define max(x, y) ((x) < (y)...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: lib: add max()/min() API Add max()/min() lib API Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
20.04.2018 08:42:50
-28,800
cfc87903b237ef6e4568469653450f60dbffa87e
hv: cpuid: add cpuid_level Get maximum input value for basic cpuid information. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -128,6 +128,10 @@ static void get_cpu_capabilities(void)\nuint32_t eax, unused;\nuint32_t family, model;\n+ cpuid(CPUID_VENDORSTRING,\n+ &boot_cpu_data.cpuid_level,\n+ &unused, &u...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cpuid: add cpuid_level Get maximum input value for basic cpuid information. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
23.04.2018 13:24:12
-28,800
dace32eca1536eed45b311376d7a9a83e032e24d
hv: timer: add calibrate tsc hz by cpuid 0x15 Get tsc hz by cpuid 0x15 if we supported, otherwise calibrate tsc by pit timer. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "extern uint32_t efi_physical_available_ap_bitmap;\n#endif\n-uint64_t tsc_clock_freq = 1000000000;\n-\nspinlock_t cpu_secondary_spinlock = {\n.head = 0,\n.tail = 0\n@@ -494,8 +492,8 @...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: add calibrate tsc hz by cpuid 0x15 Get tsc hz by cpuid 0x15 if we supported, otherwise calibrate tsc by pit timer. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
23.04.2018 13:48:22
-28,800
be9f4ee9e6c8e8cbc0e091e8abd63df66bdf1cd0
hv: timer: pass timer callback function parameter by pointer Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1908,7 +1908,7 @@ vlapic_msr(uint32_t msr)\n}\n/* interrupt context */\n-static int tsc_periodic_time(uint64_t data)\n+static int tsc_periodic_time(void *data)\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: pass timer callback function parameter by pointer Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
25.04.2018 14:26:33
-28,800
9bfa574a27ae1c5869f7eda65fe4cac127168a20
hv: timer: restruct add_timer/del_timer API add initialize_timer to initialize or reset a timer; add_timer add timer to corresponding physical cpu timer list. del_timer delete timer from corresponding physical cpu timer list.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1576,10 +1576,7 @@ vlapic_reset(struct vlapic *vlapic)\nvlapic->svr_last = lapic->svr;\n- if (vlapic->last_timer > 0) {\n- cancel_timer(vlapic->last_timer, vlap...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: restruct add_timer/del_timer API add initialize_timer to initialize or reset a timer; add_timer add timer to corresponding physical cpu timer list. del_timer delete timer from corresponding physical cpu timer list. Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,654
25.04.2018 15:14:44
-28,800
ac253f8c600db462e15686fe0a3a4c6ffa72e0f8
hv: timer: add periodic timer setup support and add MIN_TIMER_PERIOD_US for limit periodic timer frequency. Now it's set to 500 us.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1576,7 +1576,7 @@ vlapic_reset(struct vlapic *vlapic)\nvlapic->svr_last = lapic->svr;\n- initialize_timer(&vlapic->timer, NULL, NULL, 0);\n+ initialize_timer(&v...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: add periodic timer setup support and add MIN_TIMER_PERIOD_US for limit periodic timer frequency. Now it's set to 500 us. Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,747
26.04.2018 09:00:14
25,200
e35874cae19351f76d4b11878784b16db80a0e16
doc: introduce howto area for technical notes Tech note articles about technology and process tips now have a place in the ACRN documentaion. Move the doc process documention into this new area, and add a placeholder for tech tips for now.
[ { "change_type": "MODIFY", "old_path": "doc/conf.py", "new_path": "doc/conf.py", "diff": "@@ -161,7 +161,7 @@ else:\nhtml_context = {\n'current_version': current_version,\n'versions': ( (\"latest\", \"/latest/\"),\n- (\"0.1-rc4\", \"/0.1-rc4/\"),\n+# (\"0.1-rc4\", \"/0.1-rc4/\"),\n)\n}\n" }, { ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: introduce howto area for technical notes Tech note articles about technology and process tips now have a place in the ACRN documentaion. Move the doc process documention into this new area, and add a placeholder for tech tips for now. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,695
26.04.2018 17:32:14
-28,800
1cd06ba3032d6af776be31148a962829ce8977fd
efi: clean RuntimeServices code efi runtime service table unused
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/efi/boot.c", "new_path": "hypervisor/bsp/uefi/efi/boot.c", "diff": "EFI_SYSTEM_TABLE *sys_table;\nEFI_BOOT_SERVICES *boot;\n-EFI_RUNTIME_SERVICES *runtime;\nextern const uint64_t guest_entry;\nstatic inline void hv_jump(EFI_PHYSICAL_ADDRESS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
efi: clean RuntimeServices code efi runtime service table unused Signed-off-by: Chris Ye <yechunliangcn@163.com>
528,652
26.04.2018 13:18:03
25,200
a39509a8fe2446ea3d6093b4dfebf7740571e55e
HV: fixed the issue of AP initialization code can't be loaded to address high than 64K
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_secondary.S", "new_path": "hypervisor/arch/x86/cpu_secondary.S", "diff": "@@ -51,6 +51,8 @@ cpu_secondary_reset:\n/* Disable local interrupts */\ncli\n+ mov %cs, %ax\n+ mov %ax, %ds\n/* Set DE, PAE, MCE and OS support bits in CR4 */\n@@...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: fixed the issue of AP initialization code can't be loaded to address high than 64K Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com>
528,751
26.04.2018 19:17:31
-28,800
d1a17a6401bc655c5561546ea9793a4f821c95bc
dm: rename fbsdrun_addcpu and fbsdrun_deletecpu Remove weird prefix "fbsdrun" from the function name. Since "fbsdrun_addcpu" has never been called by external functions, Let's remove its declaration from "dm.h" and make it as a static function to keep consistency with "fbsdrun_deletecpu". Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -267,8 +267,8 @@ fbsdrun_start_thread(void *param)\nreturn NULL;\n}\n-void\n-fbsdrun_addcpu(struct vmctx *ctx, int guest_ncpus)\n+static void\n+add_cpu(struct vmctx *ctx, int guest_nc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: rename fbsdrun_addcpu and fbsdrun_deletecpu Remove weird prefix "fbsdrun" from the function name. Since "fbsdrun_addcpu" has never been called by external functions, Let's remove its declaration from "dm.h" and make it as a static function to keep consistency with "fbsdrun_deletecpu". Signed-off-by: Jie Deng <jie...
528,751
27.04.2018 02:25:42
-28,800
d63b9002dd6af85fdf46bae3d45f8d2c6e22a040
dm: code clean up Following functions have never been used anywhere. Let's remove them. fbsdrun_muxed() fbsdrun_vmexit_on_hlt() fbsdrun_vmexit_on_pause() fbsdrun_disable_x2apic() Remove weird prefix "fbsdrun" from following functions' name. fbsdrun_virtio_msix() --> virtio_uses_msix() fbsdrun_start_thread() --> star...
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -231,25 +231,13 @@ dm_gpa2hva(uint64_t gpa, size_t size)\n}\nint\n-fbsdrun_vmexit_on_pause(void)\n-{\n- return guest_vmexit_on_pause;\n-}\n-\n-int\n-fbsdrun_vmexit_on_hlt(void)\n-{\n-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: code clean up Following functions have never been used anywhere. Let's remove them. fbsdrun_muxed() fbsdrun_vmexit_on_hlt() fbsdrun_vmexit_on_pause() fbsdrun_disable_x2apic() Remove weird prefix "fbsdrun" from following functions' name. fbsdrun_virtio_msix() --> virtio_uses_msix() fbsdrun_start_thread() --> ...
528,794
17.04.2018 13:52:00
-28,800
373a828058b692eb483d9e9151548e7f6d500d6d
HV Cx: load cx data to boot_cpu_data when boot The cx data is hardcoded within HV, load it to boot_cpu_data when HV boot. The patch provide a3960 soc cx data for example. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_state_tbl.c", "new_path": "hypervisor/arch/x86/cpu_state_tbl.c", "diff": "@@ -53,6 +53,13 @@ struct cpu_px_data px_a3960[] = {\n{0x320, 0, 0xA, 0xA, 0x0800, 0x0800} /* P16 */\n};\n+/* The table includes cpu cx info of Intel A3960 SoC */...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV Cx: load cx data to boot_cpu_data when boot The cx data is hardcoded within HV, load it to boot_cpu_data when HV boot. The patch provide a3960 soc cx data for example. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
18.04.2018 00:07:38
-28,800
1c3b7a629a320e1260ed14082833c8db6026f53e
HV Cx: load cx data while create VM Each VM would have its own Cx data, for now we copy it from boot_cpu_info. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/pm.c", "new_path": "hypervisor/arch/x86/guest/pm.c", "diff": "#include <acrn_common.h>\n#include <hv_lib.h>\n#include <hv_arch.h>\n+#include <hv_debug.h>\nint validate_pstate(struct vm *vm, uint64_t perf_ctl)\n{\n@@ -82,7 +83,35 @@ st...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV Cx: load cx data while create VM Each VM would have its own Cx data, for now we copy it from boot_cpu_info. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
18.04.2018 01:00:15
-28,800
ebf184f0388142fd9cacd573675ccef19022275e
HV Cx: add hypercall function to retrieve host cx The patch add function in vhm hypercall to retrieve physical cx data to VHM/DM. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -729,6 +729,40 @@ int64_t hcall_get_cpu_pm_state(struct vm *vm, uint64_t cmd, uint64_t param)\nreturn 0;\n}\n+ case PMCMD_GET_CX_CNT: {\n+\n+ if (!target_vm->pm.cx_cnt) {\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV Cx: add hypercall function to retrieve host cx The patch add function in vhm hypercall to retrieve physical cx data to VHM/DM. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
27.04.2018 11:53:23
-28,800
8b29ce1991ba9e1f3673d534bf7c1920f2c3f58f
HV Cx: allow guest to access host idle port with this patch guest could access idle io port and enter idle normally. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/pm.c", "new_path": "hypervisor/arch/x86/guest/pm.c", "diff": "@@ -110,8 +110,24 @@ static void vm_setup_cpu_cx(struct vm *vm)\n}\n+static inline void init_cx_port(struct vm *vm)\n+{\n+ uint8_t cx_idx;\n+\n+ for (cx_idx = 2; cx_idx <= ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV Cx: allow guest to access host idle port with this patch guest could access idle io port and enter idle normally. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
27.04.2018 12:08:39
-28,800
c2c1932a651040d47a970527378c7a0f66df590e
HV Cx: add cx data of bxt j3455 SOC This is cx data for APL NUC. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_state_tbl.c", "new_path": "hypervisor/arch/x86/cpu_state_tbl.c", "diff": "@@ -73,6 +73,13 @@ struct cpu_px_data px_j3455[] = {\n{0x320, 0, 0xA, 0xA, 0x0800, 0x0800} /* P8 */\n};\n+/* The table includes cpu cx info of Intel J3455 SoC */\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV Cx: add cx data of bxt j3455 SOC This is cx data for APL NUC. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
28.04.2018 20:59:01
-28,800
765805da21c3f39581214eb6830eb30cd4fb83a3
HV cleanup: move iobitmap ini out of loop The initial of iobitmap pointer should be moved out of loop since address is sequentially incremented. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/io.c", "new_path": "hypervisor/arch/x86/io.c", "diff": "@@ -212,8 +212,8 @@ static void deny_guest_io_access(struct vm *vm, uint32_t address, uint32_t nbyte\nuint32_t i;\nuint32_t a;\n- for (i = 0; i < nbytes; i++) {\nb = vm->arch_vm.iobitm...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV cleanup: move iobitmap ini out of loop The initial of iobitmap pointer should be moved out of loop since address is sequentially incremented. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
28.04.2018 21:22:07
-28,800
55bced400edd3cfb00411297f4b82cf79d6f215a
HV cleanup: assert on vm setup cpu px Make assert on max px cnt of boot cpu data, since it shouldn't happen if px data is properly initialized in boot process. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/pm.c", "new_path": "hypervisor/arch/x86/guest/pm.c", "diff": "@@ -70,11 +70,10 @@ static void vm_setup_cpu_px(struct vm *vm)\nreturn;\n}\n- if (boot_cpu_data.state_info.px_cnt > MAX_PSTATE) {\n- vm->pm.px_cnt = MAX_PSTATE;\n- } else {...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV cleanup: assert on vm setup cpu px Make assert on max px cnt of boot cpu data, since it shouldn't happen if px data is properly initialized in boot process. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,669
01.05.2018 11:12:06
25,200
7073173ec36619d3add77c2e9c4c572f91dd63c7
Use exit instead of assert when checking images Print an error message and exit rather than using assert, so it is more obvious what the problem is and no core files are produced. Fixes
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_bzimage.c", "new_path": "devicemodel/core/sw_load_bzimage.c", "diff": "@@ -133,8 +133,11 @@ acrn_parse_kernel(char *arg)\nif (len < STR_LEN) {\nstrncpy(kernel_path, arg, len);\nkernel_path[len] = '\\0';\n- assert(check_image(kernel_pat...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Use exit instead of assert when checking images Print an error message and exit rather than using assert, so it is more obvious what the problem is and no core files are produced. Fixes #61 Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
528,733
20.04.2018 17:54:07
-28,800
4fcdebc4342b7b9d36e79d95efaefee5940a44e0
DM: vrtc code cleanup Move the variable local_time from main.c to rtc.c Change vrtc_init to return int instead of pointer to vrtc. We do track vrtc in struct vmctx. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -577,7 +577,6 @@ main(int argc, char *argv[])\n{\nint c, error, gdb_port, err;\nint max_vcpus, mptgen, memflags;\n- int rtc_localtime;\nstruct vmctx *ctx;\nsize_t memsize;\nchar *opts...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: vrtc code cleanup - Move the variable local_time from main.c to rtc.c - Change vrtc_init to return int instead of pointer to vrtc. We do track vrtc in struct vmctx. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
20.04.2018 18:17:13
-28,800
81cf3e19f801021d814a0f6e57e2ec29862aac14
DM: main loop cleanup Move all virtual devices init/deinit to function to simplify the failure path of main loop. In the future, new virtual device will not touch main loop. Acked-by: Anthony Xu Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -459,6 +459,63 @@ handle_vmexit(struct vmctx *ctx, struct vhm_request *vhm_req, int vcpu)\nvm_notify_request_done(ctx, vcpu);\n}\n+static int\n+vm_init_vdevs(struct vmctx *ctx)\n+{\n+...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: main loop cleanup Move all virtual devices init/deinit to function to simplify the failure path of main loop. In the future, new virtual device will not touch main loop. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
528,794
18.04.2018 16:00:04
-28,800
bdd90e6597699dc07f6748dbc0fde445f9d37495
DM Cx: code cleanup for getting cpu state cnt Then we could use a common interface to get cx count. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi_pm.c", "new_path": "devicemodel/hw/acpi/acpi_pm.c", "diff": "#include \"dm.h\"\n#include \"acpi.h\"\n-static uint8_t get_vcpu_px_cnt(struct vmctx *ctx, int vcpu_id)\n+static inline int get_vcpu_pm_info(struct vmctx *ctx, int vcpu_id,\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM Cx: code cleanup for getting cpu state cnt Then we could use a common interface to get cx count. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
18.04.2018 16:14:02
-28,800
a0425385654f2e6327ffb84e25caf2bc835c25ad
DM Cx: add function to get cx cnt and cx data DM will use these functions to get cx entry cnt and cx data then inject _CST objects to UOS DSDT table. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi_pm.c", "new_path": "devicemodel/hw/acpi/acpi_pm.c", "diff": "@@ -59,6 +59,17 @@ static inline uint8_t get_vcpu_px_cnt(struct vmctx *ctx, int vcpu_id)\nreturn (uint8_t)px_cnt;\n}\n+uint8_t get_vcpu_cx_cnt(struct vmctx *ctx, int vcpu_id)...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM Cx: add function to get cx cnt and cx data DM will use these functions to get cx entry cnt and cx data then inject _CST objects to UOS DSDT table. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
18.04.2018 20:39:30
-28,800
5e7e816981d77d4a48fd21ab94847c61e47826eb
DM Cx: add function to write Cx data to DSDT The function would write CST objects which needed to enable Cx control to UOS DSDT table. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi_pm.c", "new_path": "devicemodel/hw/acpi/acpi_pm.c", "diff": "@@ -128,6 +128,117 @@ int get_vcpu_cx_data(struct vmctx *ctx, int vcpu_id,\nreturn 0;\n}\n+char *_asi_table[7] = { \"SystemMemory\",\n+ \"SystemIO\",\n+ \"PCI_Config\",\n+ \"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM Cx: add function to write Cx data to DSDT The function would write CST objects which needed to enable Cx control to UOS DSDT table. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,654
03.05.2018 12:08:52
-28,800
b61e6af228e890acc341ae21a15b758232899e1b
hv: cpuid: don't reference the crossed array We should consider the boundary condition although we didn't access it.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpuid.c", "new_path": "hypervisor/arch/x86/cpuid.c", "diff": "@@ -91,12 +91,13 @@ static inline int set_vcpuid_entry(struct vm *vm,\nstruct vcpuid_entry *tmp;\nsize_t entry_size = sizeof(struct vcpuid_entry);\n- tmp = &vm->vcpuid_entries[vm...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cpuid: don't reference the crossed array We should consider the boundary condition although we didn't access it. Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,768
03.05.2018 19:28:17
-28,800
85716e8b01c03125774b0f2e0bebf1650367daaf
security: fix issues reported by Klocwork - NULL pointer reference risk - buffer overflow risk
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -488,9 +488,7 @@ add_msix_remapping(struct vm *vm, uint16_t virt_bdf, uint16_t phys_bdf,\nentry_id_from_msix(phys_bdf, msix_entry_index));\nif (!entry) {\nif (_lookup_entry_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
security: fix issues reported by Klocwork - NULL pointer reference risk - buffer overflow risk Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,747
04.05.2018 09:41:59
25,200
7dd647672c2652a4c041b451a86c949f1f9ee288
doc: GSG formating fix, RTD theme tweak Fix some formatting problems with a recent GSG update. Tweak the custom CSS to adjust code block (and code literal) colors. Update Makefile to document doc build options for pulling source from the other repos and for publishing targets.
[ { "change_type": "MODIFY", "old_path": "doc/Makefile", "new_path": "doc/Makefile", "diff": "@@ -21,6 +21,14 @@ PUBLISHDIR = ../projectacrn.github.io/$(RELEASE)\n# Put it first so that \"make\" without argument is like \"make help\".\nhelp:\n@$(SPHINXBUILD) -M help \"$(SOURCEDIR)\" \"$(BUILDDIR)\" $(...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: GSG formating fix, RTD theme tweak Fix some formatting problems with a recent GSG update. Tweak the custom CSS to adjust code block (and code literal) colors. Update Makefile to document doc build options for pulling source from the other repos and for publishing targets. Signed-off-by: David B. Kinder <david....
528,768
07.05.2018 19:19:02
-28,800
121d14a61675740695f358bc2d47a51e6c68fde1
rename 'req_buf' field in 'struct vm_sw_info' - rename it to 'io_shared_page' to keep consistent with ACRN HDL foils. - update related code that reference this data structure.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -353,7 +353,7 @@ int dm_emulate_mmio_post(struct vcpu *vcpu)\nint cur = vcpu->vcpu_id;\nstruct vhm_request_buffer *req_buf;\n- req_buf = (struct vhm_request_buffer *)(vcpu->vm->sw...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
rename 'req_buf' field in 'struct vm_sw_info' - rename it to 'io_shared_page' to keep consistent with ACRN HDL foils. - update related code that reference this data structure. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,768
07.05.2018 18:43:42
-28,800
e8d5a497f34ba1687720f63a9abc7ced86309583
refine external interrupt VM exit handler According to Intel SDM 24.9.2,Vol3, should check the validity of "VM-exit interruption information" before extracting the vector of interrupt.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/interrupt.c", "new_path": "hypervisor/arch/x86/interrupt.c", "diff": "@@ -266,16 +266,25 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu)\nint external_interrupt_vmexit_handler(struct vcpu *vcpu)\n{\n- int vector = exec_vmread(VMX_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
refine external interrupt VM exit handler - According to Intel SDM 24.9.2,Vol3, should check the validity of "VM-exit interruption information" before extracting the vector of interrupt. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,802
16.04.2018 08:35:23
-28,800
8123483ae1c13e84d31ff348aac6e566ddad4f01
dm: virtio-input: add virtio-input data structures This patch adds the data structures and macros used to implement virtio-input. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -71,6 +71,7 @@ SRCS += hw/pci/xhci.c\nSRCS += hw/pci/core.c\nSRCS += hw/pci/virtio/virtio_console.c\nSRCS += hw/pci/virtio/virtio_block.c\n+SRCS += hw/pci/virtio/virtio_input.c\nSRCS += hw/...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-input: add virtio-input data structures This patch adds the data structures and macros used to implement virtio-input. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,802
16.04.2018 09:40:19
-28,800
25fe5634d32bc6c2695f9709658a7182162fadeb
dm: virtio-input: implement callbacks of virtio_input_ops This patch implements the callbacks required by virtio_input_ops: reset/cfgread/cfgwrite/apply_features/set_status. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_input.c", "new_path": "devicemodel/hw/pci/virtio/virtio_input.c", "diff": "@@ -157,6 +157,8 @@ static void virtio_input_neg_features(void *, uint64_t);\nstatic void virtio_input_set_status(void *, uint64_t);\nstatic int virtio_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-input: implement callbacks of virtio_input_ops This patch implements the callbacks required by virtio_input_ops: reset/cfgread/cfgwrite/apply_features/set_status. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> A...
528,802
04.05.2018 21:50:11
-28,800
181ff20bcb91e5a1ac73c0372e59faee1fae381b
dm: virtio-input: implement virtio_input_get_config The implementation of virtio_input_get_config is based on ioctl of evdev fd. The following properties of input device are got by ioctl to service configuation request from FE driver: name and devids propbit evbit: keybit/relbit/absbit/mscbit/swbit absbit Acked-by: Edd...
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_input.c", "new_path": "devicemodel/hw/pci/virtio/virtio_input.c", "diff": "@@ -351,12 +351,191 @@ virtio_input_read_event(int fd __attribute__((unused)),\n}\n}\n+static int\n+virtio_input_get_bitmap(struct virtio_input *vi, uns...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-input: implement virtio_input_get_config The implementation of virtio_input_get_config is based on ioctl of evdev fd. The following properties of input device are got by ioctl to service configuation request from FE driver: - name and devids - propbit - evbit: keybit/relbit/absbit/mscbit/swbit - absbit Sig...
528,802
16.04.2018 10:35:58
-28,800
919aa3d3740d11412ea18a200765a0df817f4736
dm: virtio-input: implement virtio_input_deinit All related resources are freed in virtio_input_deinit. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_input.c", "new_path": "devicemodel/hw/pci/virtio/virtio_input.c", "diff": "@@ -691,7 +691,24 @@ fail:\nstatic void\nvirtio_input_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts)\n{\n- /* to be implemented */\n+ struc...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: virtio-input: implement virtio_input_deinit All related resources are freed in virtio_input_deinit. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Acked-by: Eddie Dong <...
528,713
07.05.2018 16:14:52
-28,800
e386a814ae0aa231dd0baaed4de7b734e6401f70
DM: bug fix in handling signal With curren code, DM will ignore the SIGHUP signal generated from SOS reboot that causes DM will not release resource when SOS reboot occurs.
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -648,6 +648,8 @@ main(int argc, char *argv[])\nquit_vm_loop = 0;\nhugetlb = 0;\n+ if (signal(SIGHUP, sig_handler_term) == SIG_ERR)\n+ fprintf(stderr, \"cannot register handler for SIG...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: bug fix in handling signal With curren code, DM will ignore the SIGHUP signal generated from SOS reboot that causes DM will not release resource when SOS reboot occurs. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,652
07.05.2018 22:59:51
25,200
260b37a52f630ba03c6ae9d381e3ff8fec551f52
HV: Fix the missing list_head initializaiton Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/arch/x86/timer.h", "new_path": "hypervisor/include/arch/x86/timer.h", "diff": "@@ -61,6 +61,7 @@ static inline void initialize_timer(struct timer *timer,\ntimer->fire_tsc = fire_tsc;\ntimer->mode = mode;\ntimer->period_in_cycle = period_in_c...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Fix the missing list_head initializaiton Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,747
07.05.2018 15:58:39
25,200
8a73718af3bc82b6fef704a3056ecb54b2aa6b04
doc: add use of GitHub issues We've enabled GitHub issues for submitting and tracking bug and enhancement requests for the project. Add some documentation about how to use issues and what to expect.
[ { "change_type": "MODIFY", "old_path": "doc/contribute.rst", "new_path": "doc/contribute.rst", "diff": "@@ -9,8 +9,8 @@ source environment, standards and methods for submitting changes help\nreduce the chaos that can result from an active development community.\nThis document explains how to partici...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add use of GitHub issues We've enabled GitHub issues for submitting and tracking bug and enhancement requests for the project. Add some documentation about how to use issues and what to expect. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,794
08.05.2018 11:31:39
-28,800
48171342973c5263859db67ec3eeea9ba9884476
DM: rename acrn_register to acpi_generic_address The name of acrn_register is too generic, rename to acpi_generic_address which is more common. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi_pm.c", "new_path": "devicemodel/hw/acpi/acpi_pm.c", "diff": "@@ -172,7 +172,7 @@ void dsdt_write_cst(struct vmctx *ctx, int vcpu_id)\nint i;\nuint8_t vcpu_cx_cnt;\nchar *cx_asi;\n- struct acrn_register cx_reg;\n+ struct acpi_generic_ad...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: rename acrn_register to acpi_generic_address The name of acrn_register is too generic, rename to acpi_generic_address which is more common. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,652
08.05.2018 11:05:44
25,200
eebf5fec6f84eaf46f535e52509a7931164929ef
HV: correct the handling of MU_MEM_ATTR_READ MMU flag Currently config_page_table_attr() treats MMU_MEM_ATTR_READ exactly as MMU_MEM_ATTR_BIT_READ_WRITE for PTT_HOST, so even when MMU_MEM_ATTR_WRITE is not used, the R/W bit in PTE is still being set
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -587,7 +587,7 @@ uint64_t config_page_table_attr(struct map_params *map_params, uint32_t flags)\nif (flags & MMU_MEM_ATTR_READ) {\n/* Configure for read access */\nattr |= ((table...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: correct the handling of MU_MEM_ATTR_READ MMU flag Currently config_page_table_attr() treats MMU_MEM_ATTR_READ exactly as MMU_MEM_ATTR_BIT_READ_WRITE for PTT_HOST, so even when MMU_MEM_ATTR_WRITE is not used, the R/W bit in PTE is still being set Signed-off-by: Zide Chen <zide.chen@intel.com>
528,794
08.05.2018 11:21:53
-28,800
c53a04f56c30688c11be7b06cd85b07b2722cf35
HV: rename acrn_register to acpi_generic_address The name of acrn_register is too generic, rename to acpi_generic_address which is more common. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/public/acrn_common.h", "new_path": "hypervisor/include/public/acrn_common.h", "diff": "@@ -301,7 +301,7 @@ struct acrn_vm_pci_msix_remap {\n#define SPACE_PLATFORM_COMM 10\n#define SPACE_FFixedHW 0x7F\n-struct acrn_register {\n+struct acpi_ge...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: rename acrn_register to acpi_generic_address The name of acrn_register is too generic, rename to acpi_generic_address which is more common. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,652
08.05.2018 12:35:57
25,200
6f97a143984150f85c095ddb9a46b3496d84a267
HV: Enable CR0.WP Page fault could be raised if writing to read-only pages. This is useful for debugging.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -485,6 +485,12 @@ uint64_t get_paging_pml4(void)\nvoid enable_paging(uint64_t pml4_base_addr)\n{\n+ uint64_t tmp64 = 0;\n+\n+ /* Enable Write Protect, inhibiting writing to read-o...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Enable CR0.WP Page fault could be raised if writing to read-only pages. This is useful for debugging. Signed-off-by: Zide Chen <zide.chen@intel.com>
528,747
11.05.2018 10:05:05
25,200
f8861806f0ee99a7e02c99cb5401e592f544e27a
doc: post-merge changes to docs Documentation updates were needed to account for changes caused by the recent merging of the three acrn-hypervisor, acrn-devicemodel, and acrn-documentation repos.
[ { "change_type": "MODIFY", "old_path": "doc/Makefile", "new_path": "doc/Makefile", "diff": "@@ -32,7 +32,6 @@ help:\n# Generate the doxygen xml (for Sphinx) and copy the doxygen html to the\n# api folder for publishing along with the Sphinx-generated API docs.\n-#doxy: pullsource\ndoxy:\n$(Q)(cat ac...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: post-merge changes to docs Documentation updates were needed to account for changes caused by the recent merging of the three acrn-hypervisor, acrn-devicemodel, and acrn-documentation repos. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
11.05.2018 13:16:03
25,200
ec0d7e0e1e282a5b1640e1edd0ede2d968df9a02
doc: update doc building howto Post-merge, the doc building instructions need an update to reflect the new diretory structure.
[ { "change_type": "MODIFY", "old_path": "doc/howtos/process/acrn-doc-fork.png", "new_path": "doc/howtos/process/acrn-doc-fork.png", "diff": "Binary files a/doc/howtos/process/acrn-doc-fork.png and b/doc/howtos/process/acrn-doc-fork.png differ\n" }, { "change_type": "MODIFY", "old_path": "...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: update doc building howto Post-merge, the doc building instructions need an update to reflect the new diretory structure. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,747
11.05.2018 12:17:36
25,200
b73f1face694951abb639abd9fd707343a25e50c
doc: add project README Simplify the previous README and add more information about project resources. Fixes:
[ { "change_type": "ADD", "old_path": null, "new_path": "README.rst", "diff": "+Project ACRN Embedded Hypervisor\n+################################\n+\n+\n+The open source project ACRN defines a device hypervisor reference stack\n+and an architecture for running multiple software subsystems, managed\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: add project README Simplify the previous README and add more information about project resources. Fixes: #144 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,728
14.05.2018 13:41:43
-7,200
6fc511677636552d3010c2f4458e2baca7de5876
Documentation: update the contributing guide to use new LICENSE file Update the "Contributing Guidelines" document to point at the top-level LICENSE file that was created after the merger of the three acrn-{hypervisor,devicemodel,documentation} repositories
[ { "change_type": "MODIFY", "old_path": "doc/contribute.rst", "new_path": "doc/contribute.rst", "diff": "@@ -19,8 +19,9 @@ Licensing is very important to open source projects. It helps ensure the\nsoftware continues to be available under the terms that the author\ndesired.\n-Project ACRN uses a BSD-3...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Documentation: update the contributing guide to use new LICENSE file Update the "Contributing Guidelines" document to point at the top-level LICENSE file that was created after the merger of the three acrn-{hypervisor,devicemodel,documentation} repositories Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel...
528,654
25.04.2018 16:47:12
-28,800
5df2efad4a98b7f6fe283320ed95445e6be4ec74
hv: timer: make the timer list be ordered make the timer list be ordered to speed up expried timer process and next timer event finding. Add timer would not schedule timer unless it's the next timer event. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/timer.c", "new_path": "hypervisor/arch/x86/timer.c", "diff": "@@ -48,41 +48,6 @@ struct per_cpu_timers {\nstatic DEFINE_CPU_DATA(struct per_cpu_timers, cpu_timers);\nstatic DEFINE_CPU_DATA(struct dev_handler_node *, timer_node);\n-static st...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: timer: make the timer list be ordered make the timer list be ordered to speed up expried timer process and next timer event finding. Add timer would not schedule timer unless it's the next timer event. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
03.05.2018 10:08:59
-28,800
b9971c206f01e087229e44d1d683cbe92185502d
hv: vlapic_timer: remove vlapic one-shot/periodic timer implement These code is useless since it just pseudocode. Current it doesn't support vlapic one-shot/periodic timer. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpuid.c", "new_path": "hypervisor/arch/x86/cpuid.c", "diff": "@@ -165,14 +165,11 @@ static void init_vcpuid_entry(__unused struct vm *vm,\n*\n* EAX: (Virtual) TSC frequency in kHz.\n* TSC frequency is calculated from PIT in ACRN\n- * EBX: (...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vlapic_timer: remove vlapic one-shot/periodic timer implement These code is useless since it just pseudocode. Current it doesn't support vlapic one-shot/periodic timer. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
03.05.2018 10:47:31
-28,800
8ec78f8efce0545f85546b63988a0441acca6dd1
hv: vlapic: coding refine Using __func__ instead of function string name. Using tab instead of more whitespace. Using macro instead of numeric constants. Remove unnecessary function declaration. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -86,18 +86,11 @@ do { \\\n#endif\n/* TIMER_LVT bit[18:17] == 0x10 TSD DEADLINE mode */\n-#define VLAPIC_TSCDEADLINE(lvt) (((lvt) & 0x60000) == 0x40000)\n+#define...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vlapic: coding refine Using __func__ instead of function string name. Using tab instead of more whitespace. Using macro instead of numeric constants. Remove unnecessary function declaration. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
03.05.2018 14:17:53
-28,800
ea54216116bbeb7d5f14d14bf987a93df09bc5c7
hv: vlapic_timer: add vlapic timer mode API Add vlapic_lvtt_oneshot, vlapic_lvtt_masked rename vlapic_periodic_timer to vlapic_lvtt_period rename VLAPIC_TSCDEADLINE to vlapic_lvtt_tsc_deadline Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -85,9 +85,6 @@ do { \\\n#define VLAPIC_CTR_ISR(vlapic, msg)\n#endif\n-/* TIMER_LVT bit[18:17] == 0x10 TSD DEADLINE mode */\n-#define VLAPIC_TSCDEADLINE(lvt) (((l...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vlapic_timer: add vlapic timer mode API Add vlapic_lvtt_oneshot, vlapic_lvtt_masked rename vlapic_periodic_timer to vlapic_lvtt_period rename VLAPIC_TSCDEADLINE to vlapic_lvtt_tsc_deadline Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
04.05.2018 10:22:51
-28,800
9dd7d277378134fc31eba9607f3b16cc3ad2750b
hv: vlapic_timer: refine vlapic tscdeadline timer Add vlapic_create_timer/vlapic_reset_timer to setup/reset a timer. Add vlapic_update_lvtt to disarm timer when mode changes. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -107,6 +107,8 @@ apicv_batch_set_tmr(struct vlapic *vlapic);\n*/\nstatic void vlapic_set_error(struct vlapic *vlapic, uint32_t mask);\n+static int vlapic_timer_e...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vlapic_timer: refine vlapic tscdeadline timer Add vlapic_create_timer/vlapic_reset_timer to setup/reset a timer. Add vlapic_update_lvtt to disarm timer when mode changes. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,780
10.05.2018 11:14:09
-28,800
3a9bf54d66776462fdc86b89ed50cbe10e930be6
HV: Add gcc compiler option to disable FPU/SSE/MMX FPU/SSE is not supported in HV. Otherwise it is possible that the SSE/FPU register is used under -O2 option. So the gcc option is added to disable them. Acked-by: Anthony Xu Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -25,7 +25,7 @@ HV_FILE := acrn\nCFLAGS += -Wall -W\nCFLAGS += -ffunction-sections -fdata-sections\nCFLAGS += -fshort-wchar -ffreestanding\n-CFLAGS += -m64\n+CFLAGS += -m64 -mno-mmx -mno-sse -...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Add gcc compiler option to disable FPU/SSE/MMX FPU/SSE is not supported in HV. Otherwise it is possible that the SSE/FPU register is used under -O2 option. So the gcc option is added to disable them. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: An...
528,780
14.05.2018 13:51:54
-28,800
263fafe819ee33c93ff7ac6ae3e22487ee873c94
HV: Initialize one variable to fix the compiling warning If the optimization option is enabled, it is possible that one variable is not initialized before using in the get_vioapic_info. (In fact the warning is bogus) This is only to reduce the compiling warning.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -636,6 +636,7 @@ int get_vioapic_info(char *str, int str_max, int vmid)\nsize -= len;\nstr += len;\n+ rte = 0;\nfor (pin = 0 ; pin < vioapic_pincount(vm); pin+...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Initialize one variable to fix the compiling warning If the optimization option is enabled, it is possible that one variable is not initialized before using in the get_vioapic_info. (In fact the warning is bogus) This is only to reduce the compiling warning. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
528,780
10.05.2018 11:14:16
-28,800
9efbf1212f6de4d615d788925f88ea23e47abb20
HV: Enable the -O2 option for HV Now the -O0 option is used. In such case the code is not optimized. Acked-by: Anthony Xu Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -28,7 +28,7 @@ CFLAGS += -fshort-wchar -ffreestanding\nCFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387\nCFLAGS += -mno-red-zone\nCFLAGS += -static -nostdinc -nostdlib...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: Enable the -O2 option for HV Now the -O0 option is used. In such case the code is not optimized. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Zheng Gen <gen.zheng@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <ed...
528,768
15.05.2018 17:17:21
-28,800
c597a0fc2f068a25b1b6d0c729578e580370f2a9
I/O VM-exit handler cleanup add check for spanning i/o devices access remove ASSERT in I/O instr. VM exit handler
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/io.c", "new_path": "hypervisor/arch/x86/io.c", "diff": "@@ -108,10 +108,12 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)\nif ((port >= handler->desc.addr + handler->desc.len) ||\n(port + sz <= handler->desc.addr))\ncontinue;\n-\n- /* Do...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
I/O VM-exit handler cleanup - add check for spanning i/o devices access - remove ASSERT in I/O instr. VM exit handler Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,804
15.05.2018 09:09:20
-28,800
fb19b296eaa9215b7d438edd54c8dae2a336f7e0
add a makefile under project root directory it can be used as following: make ==> to make hypervisor & devicemodel & tools also modify tools makefile to support out-dir setting.
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -5,6 +5,7 @@ devicemodel/build/\ndevicemodel/include/version.h\ndoc/doxygen\ndoc/_build\n+build\n*.bak\n*.sav\n*.log\n" }, { "change_type": "ADD", "old_path": null, "new_path": "Makefile", ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
add a makefile under project root directory it can be used as following: make ==> to make hypervisor & devicemodel & tools also modify tools makefile to support out-dir setting. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Jack Ren <jack.ren@intel.com>
528,647
14.05.2018 14:26:29
-28,800
6f340f8564acb9e59683670a0987b1e38f63ed37
tools: acrnlog: fix issues founded in static analysis fixed two issues: 1) potential uninitiliazed usage of 'len' in hvlog_read_dev(); 2) NULL dereference of 'last' if 'calloc' failure. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "tools/acrnlog/acrnlog.c", "new_path": "tools/acrnlog/acrnlog.c", "diff": "@@ -127,7 +127,7 @@ static int get_cpu_num(void)\nstruct hvlog_msg *hvlog_read_dev(struct hvlog_dev *dev)\n{\nint ret;\n- size_t len;\n+ size_t len = 0;\nstruct hvlog_msg *msg[2];\nint m...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrnlog: fix issues founded in static analysis fixed two issues: 1) potential uninitiliazed usage of 'len' in hvlog_read_dev(); 2) NULL dereference of 'last' if 'calloc' failure. Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,647
14.05.2018 14:42:47
-28,800
a4c4d6077f5f890f980cc2ff7df80a8c7ebf5b17
tools: acrntrace: fix NULL pointer issue in create_trace_file_dir() Fix NULL pointer dereference if 'localtime()' execution encountered an error, in create_trace_file_dir(). Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "tools/acrntrace/acrntrace.c", "new_path": "tools/acrntrace/acrntrace.c", "diff": "@@ -173,9 +173,13 @@ static int create_trace_file_dir(char *dir)\ntime(&timep);\np = localtime(&timep);\n+ if (p)\nsnprintf(time_str, TIME_STR_LEN, \"%d%02d%02d-%02d%02d%02d\",\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
tools: acrntrace: fix NULL pointer issue in create_trace_file_dir() Fix NULL pointer dereference if 'localtime()' execution encountered an error, in create_trace_file_dir(). Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
15.05.2018 18:20:14
-28,800
69d9918ddc7ffb7504b944ab01e0b432c9088ff6
remove potential using default i/o handler device driver should register valid i/o handlers in any cases, avoid referencing to default handler remove i/o handler test code as they shall never be NULL.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/io.c", "new_path": "hypervisor/arch/x86/io.c", "diff": "@@ -116,9 +116,6 @@ int io_instr_vmexit_handler(struct vcpu *vcpu)\n}\nif (direction == 0) {\n- if (handler->desc.io_write == NULL)\n- continue;\n-\nhandler->desc.io_write(handler, vm,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove potential using default i/o handler - device driver should register valid i/o handlers in any cases, avoid referencing to default handler - remove i/o handler test code as they shall never be NULL. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,728
15.05.2018 10:24:47
-7,200
3efef5790cd75c1f1a20248c9fb828def04462da
Remove duplicate license file Remove 'license_header' files that were located in hypervisor/ and devicemodel/ and used by the respective Makefiles to build the 'include/version.h' header file. Both Makefiles were adjusted to use the top-level LICENSE file
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -141,7 +141,10 @@ include/version.h:\nDIRTY=`git diff-index --name-only HEAD`;\\\nif [ -n \"$$DIRTY\" ];then PATCH=\"$$COMMIT-dirty\";else PATCH=\"$$COMMIT\";fi;\\\nTIME=`date \"+%Y-%m-%d %...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Remove duplicate license file Remove 'license_header' files that were located in hypervisor/ and devicemodel/ and used by the respective Makefiles to build the 'include/version.h' header file. Both Makefiles were adjusted to use the top-level LICENSE file Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel....
528,763
15.05.2018 09:37:37
-28,800
e1bb372763474543ada79d2e30dbc0e274712118
HV: increase UOS VIOAPIC pin count To avoid UOS virtual GSI sharing
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "#define IOEOI 0x40\n#define REDIR_ENTRIES_HW 120 /* SOS align with native ioapic */\n-#define REDIR_ENTRIES_UOS 24 /* UOS pins*/\n#define RTBL_RO_BITS ((uint64_t)...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: increase UOS VIOAPIC pin count To avoid UOS virtual GSI sharing Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
528,786
16.05.2018 13:47:02
-28,800
2ea3b49858073b6583ceb1be0903da65c1ac7433
HV: refine copy_from_vm/copy_to_vm If the target is an array, then only the first element will be copied. So replace structure assignment with memcpy_s(). Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -62,7 +62,7 @@ int64_t hcall_get_api_version(struct vm *vm, uint64_t param)\nversion.major_version = HV_API_MAJOR_VERSION;\nversion.minor_version = HV_API_MINOR_VERSION;\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: refine copy_from_vm/copy_to_vm If the target is an array, then only the first element will be copied. So replace structure assignment with memcpy_s(). Signed-off-by: Qi Yadong <yadong.qi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
15.05.2018 14:43:53
-28,800
953f6b5b1b925455f6fd3c69378d050b1e1c465f
vlapic: kick AP for INIT-SIPI sequence wakeup AP need INIT-SIPI-SIPI sequence in old time, now we only need INIT-SIPI. Acked-by: Xu, Anthony Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1049,7 +1049,11 @@ vlapic_icrlo_write_handler(struct vlapic *vlapic)\n/* put target vcpu to INIT state and wait for SIPI */\npause_vcpu(target_vcpu, VCPU_PAUSED...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vlapic: kick AP for INIT-SIPI sequence wakeup AP need INIT-SIPI-SIPI sequence in old time, now we only need INIT-SIPI. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
15.05.2018 10:57:00
-28,800
d2a7a9c91dc96f89d9a26bba688295d3e8614083
uefi: remove warkaround for AP wakeup remove sipi_from_efi_boot_service_exit & efi_deferred_wakeup_pcpu workaround for uefi boot flow Acked-by: Xu, Anthony Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "#include <version.h>\n#include <hv_debug.h>\n-#ifdef CONFIG_EFI_STUB\n-extern uint32_t efi_physical_available_ap_bitmap;\n-#endif\n-\nspinlock_t cpu_secondary_spinlock = {\n.head = 0...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
uefi: remove warkaround for AP wakeup remove sipi_from_efi_boot_service_exit & efi_deferred_wakeup_pcpu workaround for uefi boot flow Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,806
16.05.2018 13:21:26
18,000
f7a93d8f3315ecb8c133cd44dbd5edee16d56cbb
Makefile: use -C parameter for recursive invocation Instead of changing directories with "cd" command use the C parameter to change directory.
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -13,23 +13,18 @@ TOOLS_OUT := $(ROOT_OUT)/tools\nall: hypervisor devicemodel tools\nhypervisor:\n- cd $(T)/hypervisor; \\\n- make HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) clean; \\\n- make HV_OBJDIR...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Makefile: use -C parameter for recursive invocation Instead of changing directories with "cd" command use the -C parameter to change directory. Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
528,806
16.05.2018 14:21:45
18,000
ace25dd3db97284502e890181ddecf227f0ac116
Makefile: implement make install The make install target was missing. This commits adds the intall target which uses the install target from subprojects. Also a make install target was created in each tool program.
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -30,5 +30,17 @@ tools:\nclean:\nrm -rf $(ROOT_OUT)\n+.PHONY: install\n+install: hypervisor-install devicemodel-install tools-intall\n+hypervisor-install:\n+ make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(P...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Makefile: implement make install The make install target was missing. This commits adds the intall target which uses the install target from subprojects. Also a make install target was created in each tool program. Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
528,806
16.05.2018 17:59:53
18,000
d79d641679cc194425dac4b4855c13b7197b590a
Makefile: fix typos and style Remove the trailing ";" and "\" and fix a typo in install.
[ { "change_type": "MODIFY", "old_path": "Makefile", "new_path": "Makefile", "diff": "@@ -13,25 +13,25 @@ TOOLS_OUT := $(ROOT_OUT)/tools\nall: hypervisor devicemodel tools\nhypervisor:\n- make -C $(T)/hypervisor HV_OBJDIR=$(HV_OUT) PLATFORM=$(PLAT) RELEASE=$(RELEASE) clean; \\\n+ make -C $(T)/hypervis...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Makefile: fix typos and style Remove the trailing ";" and "\" and fix a typo in install. Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
528,675
16.05.2018 20:40:55
-28,800
ab0ba5f520d699c25521ac454f8c2670ba70eec3
Doc: add UEFI boot chapter in primer add UEFI boot chapter in primer.
[ { "change_type": "MODIFY", "old_path": "doc/primer/index.rst", "new_path": "doc/primer/index.rst", "diff": "@@ -911,3 +911,56 @@ or\n.. code-block:: bash\nscreen /dev/pts/0\n+\n+UEFI Boot\n+*********\n+This section introduces UEFI boot support by ACRN.\n+\n+Usage of acrn.efi\n+=================\n+\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Doc: add UEFI boot chapter in primer add UEFI boot chapter in primer. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,718
17.05.2018 12:27:21
-28,800
e2b7f3ca9193e72117e5f9cb39237eeef72f2b6d
doc: link the Android guest to Celadon
[ { "change_type": "MODIFY", "old_path": "doc/introduction/index.rst", "new_path": "doc/introduction/index.rst", "diff": "@@ -93,7 +93,7 @@ This ACRN hypervisor block diagram shows:\nFor example: the Service OS and Linux Guest can come from the Clear\nLinux project at https://clearlinux.org and (in la...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: link the Android guest to Celadon Signed-off-by: Tonny Tzeng tonny.tzeng@intel.com
528,675
15.05.2018 10:08:58
-28,800
71e1ae17ce89117ec42cdd5f93960cc026c7e184
hypercall: add set_memmaps hypercall support Add set_memmaps hypercall to support multi regions memmap. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vmcall.c", "new_path": "hypervisor/arch/x86/guest/vmcall.c", "diff": "@@ -110,6 +110,10 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\nret = hcall_set_vm_memmap(vm, param1, param2);\nbreak;\n+ case HC_VM_SET_MEMMAPS:\n+ ret = hcall_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hypercall: add set_memmaps hypercall support Add set_memmaps hypercall to support multi regions memmap. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,794
16.05.2018 15:59:16
-28,800
a6780652f3d0d7a0bb5588c6aa4a702deb709fd7
HV: operate schedule lock on correct vcpu Lock should be on target vcpu in function pause_vcpu(), not current vcpu. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -281,11 +281,11 @@ void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state)\nvcpu->prev_state = vcpu->state;\nvcpu->state = new_state;\n- get_schedule_lock(pcpu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: operate schedule lock on correct vcpu Lock should be on target vcpu in function pause_vcpu(), not current vcpu. Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
15.05.2018 19:35:12
-28,800
25219e29a5c708dce299afa261aa7b90ec3f7eed
HV: refine EPT violation VM-exit handler refine EPT violation vmexit handler add check for mmio access that spans devices
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -229,62 +229,17 @@ int is_ept_supported(void)\nreturn status;\n}\n-static int check_hv_mmio_range(struct vm *vm, struct mem_io *mmio)\n+static int hv_emulate_mmio(struct vcpu *vcp...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: refine EPT violation VM-exit handler - refine EPT violation vmexit handler - add check for mmio access that spans devices Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,783
16.05.2018 17:28:32
-28,800
b3126bdc11adbde5e20dd462f61fef443b110065
hv: Check ept rwx misconfigurations Check ept rwx misconfigurations when config memory attribute, if misconfig it will assert. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -947,6 +947,19 @@ static int modify_paging(struct map_params *map_params, void *paddr,\n}\nattr = config_page_table_attr(map_params, flags);\n+ /* Check ept misconfigurations,\n+ ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Check ept rwx misconfigurations Check ept rwx misconfigurations when config memory attribute, if misconfig it will assert. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Eddie Dong <eddie.dong@int...
528,654
16.05.2018 15:39:08
-28,800
5e427f340e85da03bcd9d174a5a524f0f5941081
hv: lib: split atomic operation to atomic.h split atomic related operation to file atomic.h Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/hv_lib.h", "new_path": "hypervisor/include/hv_lib.h", "diff": "#include <stdarg.h>\n#include <util.h>\n#include <list.h>\n+#include <atomic.h>\n#include <bits.h>\n#include <sprintf.h>\n" }, { "change_type": "ADD", "old_path": nul...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: lib: split atomic operation to atomic.h split atomic related operation to file atomic.h Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
16.05.2018 15:41:50
-28,800
0a83cf462dd2de098223b40a0e2020f993e51360
hv: remove support atomic operation for char/short From now on, only plan to support atomic operation for int/long. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/atomic.h", "new_path": "hypervisor/include/lib/atomic.h", "diff": "#define ATOMIC_H\n#define BUS_LOCK \"lock ; \"\n-/*\n- * #define atomic_set_char(P, V) (*(unsigned char *)(P) |= (V))\n- */\n-static inline void atomic_set_char(unsigned ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: remove support atomic operation for char/short From now on, only plan to support atomic operation for int/long. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
16.05.2018 15:49:09
-28,800
bd3f3b00f7c0f91dc0ace66d158599d119f80ecf
hv: fix incorrect use of atomic_set_xxx 1. vpic_wire_mode no need to atomically set its value. 2. uart open conut want to atomically set its value not atomically set its bits. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vioapic.c", "new_path": "hypervisor/arch/x86/guest/vioapic.c", "diff": "@@ -331,13 +331,12 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)\n/* mask -> umask */\nif ((last & IOAPIC_RTE_INTMASK) &&\n((new & IOAPI...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: fix incorrect use of atomic_set_xxx 1. vpic_wire_mode no need to atomically set its value. 2. uart open conut want to atomically set its value not atomically set its bits. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
16.05.2018 16:12:22
-28,800
fadaf14a944cf8048556bcaa38a3d962051b812c
hv: refine atomic_xadd 1. rename atomic_xadd_int to atomic_xadd, add atomic_xadd64. 2. add atomic_add/sbu64_return, atomic_inc/dec64_return.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -80,7 +80,7 @@ int create_vcpu(int cpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)\n* vcpu->vcpu_id = vm->hw.created_vcpus;\n* vm->hw.created_vcpus++;\n*/\n- v...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: refine atomic_xadd 1. rename atomic_xadd_int to atomic_xadd, add atomic_xadd64. 2. add atomic_add/sbu64_return, atomic_inc/dec64_return. Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,654
16.05.2018 16:55:29
-28,800
336a8883db884aa7cf1a3023e8d5403a0980f713
hv: remove atomic_add/subtract API add atomic_inc(64)/dec(64) API. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vcpu.c", "new_path": "hypervisor/arch/x86/guest/vcpu.c", "diff": "@@ -225,7 +225,7 @@ int destroy_vcpu(struct vcpu *vcpu)\n(unsigned long *)&vcpu->vm->hw.vcpu_array[vcpu->vcpu_id],\n(unsigned long)NULL);\n- atomic_subtract_int(&vcpu->...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: remove atomic_add/subtract API add atomic_inc(64)/dec(64) API. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
17.05.2018 10:11:43
-28,800
1f3da93e74eae88403711bf39b5b6a3ac3f24bd4
hv: refine atomic_load/store_xxx name rename atomic_load/store_xxx32 to atomic_load/store rename atomic_load/store_xxx64 to atomic_load64/store64 Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -98,7 +98,7 @@ is_entry_invalid(struct ptdev_remapping_info *entry)\nstatic inline bool\nis_entry_active(struct ptdev_remapping_info *entry)\n{\n- return atomic_load_acq_int...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: refine atomic_load/store_xxx name rename atomic_load/store_xxx32 to atomic_load/store rename atomic_load/store_xxx64 to atomic_load64/store64 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
17.05.2018 16:39:50
-28,800
edb26a7e175be9ad8f12226dfa1781a75e20ef93
hv: refine the left atomic operation rename atomic_cmpxchg_int to atomic_cmpxchg replace atomic_cmpset_long with atomic_cmpxchg64 rename atomic_readandclear_long to atomic_readandclear64 Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1992,7 +1992,7 @@ apicv_set_intr_ready(struct vlapic *vlapic, int vector, __unused bool level)\nmask = 1UL << (vector % 64);\natomic_set_long(&pir_desc->pir[idx...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: refine the left atomic operation rename atomic_cmpxchg_int to atomic_cmpxchg replace atomic_cmpset_long with atomic_cmpxchg64 rename atomic_readandclear_long to atomic_readandclear64 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@Intel.com>
528,733
16.05.2018 10:46:58
-28,800
03a3fb0d2a2d3a638afecc8fb922267250c9d696
hv: cleanup the shell cmd code. Remove cmd register API. And use static pre-defined cmd array instead. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/shell_internal.c", "new_path": "hypervisor/debug/shell_internal.c", "diff": "@@ -266,27 +266,19 @@ static int shell_process(struct shell *p_shell)\nstruct shell_cmd *shell_find_cmd(struct shell *p_shell, const char *cmd_str)\n{\n- struct shell...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cleanup the shell cmd code. Remove cmd register API. And use static pre-defined cmd array instead. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>