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,647 | 16.08.2018 20:32:57 | -28,800 | 538173838d7c98ffc0eb8d386a8d9fcb0ccfd32d | hv: pirq: change the order of functions within irq.c
This commit changes the order of functions in arch/x86/irq.c, and internal
function names to make it looks cleaner, with no change within any function.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ioapic.c",
"new_path": "hypervisor/arch/x86/ioapic.c",
"diff": "@@ -334,7 +334,7 @@ ioapic_nr_pins(void *ioapic_base)\nreturn nr_pins;\n}\n-void setup_ioapic_irq(void)\n+void setup_ioapic_irqs(void)\n{\nuint8_t ioapic_id;\nuint32_t gsi = 0U... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: pirq: change the order of functions within irq.c
This commit changes the order of functions in arch/x86/irq.c, and internal
function names to make it looks cleaner, with no change within any function.
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 16.08.2018 23:31:23 | -28,800 | 709cd5749e2478d5ad7b1ee155e7f9c5f41737f6 | hv: lib: add ffz64_ex
Add ffz64_ex to find the first zero bit in a uint64_t array.
Note: the API is lockless. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/lib/bits.h",
"new_path": "hypervisor/include/lib/bits.h",
"diff": "@@ -129,6 +129,22 @@ static inline uint16_t ffz64(uint64_t value)\nreturn ffs64(~value);\n}\n+\n+/*\n+ * find the first zero bit in a uint64_t array.\n+ * @pre: the size must... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: lib: add ffz64_ex
Add ffz64_ex to find the first zero bit in a uint64_t array.
Note: the API is lockless.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,783 | 16.08.2018 16:10:46 | -28,800 | 40fd8893b479e2cde51ffd16272fad55039154a7 | hv:fixed several return value violations
change two timer callbacks to void type
ignore the return value for add_timer
add (void) before several functions(memset/memcpy/
vcpu_get_xxx)
v1-->v2:
ignore the return value for add_timer | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -96,7 +96,7 @@ apicv_batch_set_tmr(struct acrn_vlapic *vlapic);\n*/\nstatic void vlapic_set_error(struct acrn_vlapic *vlapic, uint32_t mask);\n-static int vlapic... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fixed several return value violations
-- change two timer callbacks to void type
-- ignore the return value for add_timer
-- add (void) before several functions(memset/memcpy/
vcpu_get_xxx)
v1-->v2:
ignore the return value for add_timer
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junj... |
528,801 | 20.08.2018 14:01:29 | -28,800 | 431ef57076f858a8c7f4bc7ba1d56ac352d88906 | hv: vioapic: fix 'No definition in system for prototyped procedure'
Remove two APIs without definition | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vioapic.h",
"new_path": "hypervisor/include/arch/x86/guest/vioapic.h",
"diff": "@@ -46,9 +46,6 @@ void vioapic_deassert_irq(struct vm *vm, uint32_t irq);\nvoid vioapic_pulse_irq(struct vm *vm, uint32_t irq);\nvoid vioapic_upda... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: fix 'No definition in system for prototyped procedure'
Remove two APIs without definition
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,783 | 17.08.2018 11:28:32 | -28,800 | 752e311e1146167f3ae7c9cee3dfd24f2939c061 | hv:fixed MISRA-C return value violations
change send_start_ipi/do_copy_earlylog to void type
drop the return value for vcpu_queue_execption
when inject GP/PF/UD/AC/SS | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -520,7 +520,7 @@ void ptdev_softirq(__unused uint16_t cpu_id)\nptdev_intr_handle_irq(vm, entry);\n} else {\n/* TODO: msi destmode check required */\n- vlapic_intr_msi(vm,\n+... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fixed MISRA-C return value violations
-- change send_start_ipi/do_copy_earlylog to void type
-- drop the return value for vcpu_queue_execption
when inject GP/PF/UD/AC/SS
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> |
528,801 | 20.08.2018 15:32:14 | -28,800 | 7a4dcfcc1ab6f86cd02241b58069f76a8cf305a1 | hv: treewide: fix 'Function prototype/defn param type mismatch'
Fix the parameter type mismatch between API declaration and definition.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -78,13 +78,14 @@ static inline void vlapic_dump_isr(struct acrn_vlapic *vlapic, char *msg)\nstatic void *apicv_apic_access_addr;\nstatic int\n-apicv_set_intr_rea... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: treewide: fix 'Function prototype/defn param type mismatch'
Fix the parameter type mismatch between API declaration and definition.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,801 | 20.08.2018 14:25:10 | -28,800 | 8924f6dabba3cdc9416f74684d7c48ea7e495ca5 | hv: vmx: fix 'Array has no bounds specified'
MISRAC requires that the array size should be declared explicitly.
This patch fixes the issues caused by vm0_boot_context.
Fix pattern is like below:
extern char start_of_ROM, end_of_ROM, start_of_FLASH;
memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - &
start_of_ROM... | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -499,7 +499,7 @@ int prepare_vcpu(struct vm *vm, uint16_t pcpu_id)\n#else\nif (is_vm0(vcpu->vm)) {\nstruct boot_ctx *vm0_init_ctx =\n- (struct boot_ctx *)vm0_boot_co... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vmx: fix 'Array has no bounds specified'
MISRAC requires that the array size should be declared explicitly.
This patch fixes the issues caused by vm0_boot_context.
Fix pattern is like below:
extern char start_of_ROM, end_of_ROM, start_of_FLASH;
memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - &
sta... |
528,696 | 11.07.2018 11:30:03 | -28,800 | 17ef5076a445dfaaa2ffaf1d5211565c7f536bf3 | ipu: virtio-ipu4 as default IPU DM
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "#!/bin/bash\n+ipu_passthrough=0\n+\nfunction launch_clearlinux()\n{\nif [ ! -f \"/data/$5/$5.img\" ]; then\n@@ -54,6 +56,7 @@ echo \"0000:00:0f.0\" > ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | ipu: virtio-ipu4 as default IPU DM
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Reviewed-by: Edwin Zhai <edwin.zhai@intel.com>
Reviewed-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 20.08.2018 18:25:48 | -28,800 | e0d40feaa8057eb7c7f2c863925bbacbe5bd62f7 | HV:refine 'apic_page' & 'pir_desc' in 'struct acrn_vlapic'
- update 'apic_page' field in 'struct acrn_vlapic',
from pointer type to 'struct lapic_regs' type.
- delete 'pir' and update 'pir_desc' to 'vlapic_pir_desc'
type.
- fix potential memory leak in 'vlapic_create()'
should free allocated memory in case of registeri... | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "static inline void vlapic_dump_irr(struct acrn_vlapic *vlapic, char *msg)\n{\nuint32_t i;\n- struct lapic_reg *irrptr = &(vlapic)->apic_page->irr[0];\n+ struct lapi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:refine 'apic_page' & 'pir_desc' in 'struct acrn_vlapic'
- update 'apic_page' field in 'struct acrn_vlapic',
from pointer type to 'struct lapic_regs' type.
- delete 'pir' and update 'pir_desc' to 'vlapic_pir_desc'
type.
- fix potential memory leak in 'vlapic_create()'
should free allocated memory in ca... |
528,647 | 20.08.2018 22:41:08 | -28,800 | 65e01a0cd2dbacbf50198c6aacb63cd2e6508b9d | hv: pirq: use a bitmap to maintain irq use status
This commit replaces the "used" field of irq_desc with a bitmap to maintain
the irq use status to save memory and LOC, and improve the efficiency as well.
Acked-by: Anthony Xu | [
{
"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, };\nstatic spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };\n+#define IRQ_ALLOC_BITMAP_SIZE INT_DIV_ROUND... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: pirq: use a bitmap to maintain irq use status
This commit replaces the "used" field of irq_desc with a bitmap to maintain
the irq use status to save memory and LOC, and improve the efficiency as well.
Signed-off-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <ant... |
528,801 | 22.08.2018 09:35:57 | -28,800 | 3e598ebb284c9c70948cde0c881c8a3a32b47c3f | hv: fix 'No definition in system for prototyped procedure'
Remove the functions without definition. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vlapic.h",
"new_path": "hypervisor/include/arch/x86/guest/vlapic.h",
"diff": "@@ -57,7 +57,6 @@ int vlapic_pending_intr(struct acrn_vlapic *vlapic, uint32_t *vecptr);\nvoid vlapic_intr_accepted(struct acrn_vlapic *vlapic, uint... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix 'No definition in system for prototyped procedure'
Remove the functions without definition.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> |
528,731 | 21.08.2018 22:28:38 | -28,800 | 0c630d9003a49a812e3f4a0c476f30d8a42a8572 | dm: cmos: fix a logic error for read to clear range
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/cmos_io.c",
"new_path": "devicemodel/hw/platform/cmos_io.c",
"diff": "@@ -92,7 +92,7 @@ cmos_io_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,\nif (in) {\n*eax = ctx->cmos_buffer[buf_offset];\n/* read to clear for Key... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: cmos: fix a logic error for read to clear range
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 22.08.2018 13:43:39 | -28,800 | b75a7df4159289048ec59375184e0ec2816b8d87 | hv: vcpuid: disable some features in cpuid
We didn't emualte them well, so just disable them.
Here are PMU CPUID.0A, Intel RDT CPUID.0F and CPUID.10, Intel SGX CPUID.12,
Intel Processor Trace CPUID.14 | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpuid.c",
"new_path": "hypervisor/arch/x86/cpuid.c",
"diff": "@@ -112,13 +112,6 @@ static void init_vcpuid_entry(__unused struct vm *vm,\n}\nbreak;\n- case 0x0aU:\n- /* not support pmu */\n- entry->eax = 0U;\n- entry->ebx = 0U;\n- entry->ec... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vcpuid: disable some features in cpuid
We didn't emualte them well, so just disable them.
Here are PMU CPUID.0A, Intel RDT CPUID.0F and CPUID.10, Intel SGX CPUID.12,
Intel Processor Trace CPUID.14
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,783 | 22.08.2018 11:12:37 | -28,800 | c43d0e4f01cc74501e284891699f9a4eabad1383 | hv:Changed several APIs to void type
Since these APIs always return 0,
change them to void type,
vcpu_set_cr0()
vmx_write_cr0()
vcpu_set_cr4()
vmx_write_cr4()
kick_notification()
tsc_deadline_handler()
dmar_fault_handler()
ptdev_interrupt_handler() | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -111,9 +111,9 @@ inline uint64_t vcpu_get_cr0(struct vcpu *vcpu)\nreturn ctx->cr0;\n}\n-inline int vcpu_set_cr0(struct vcpu *vcpu, uint64_t val)\n+inline void vcpu_s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Changed several APIs to void type
Since these APIs always return 0,
change them to void type,
vcpu_set_cr0()
vmx_write_cr0()
vcpu_set_cr4()
vmx_write_cr4()
kick_notification()
tsc_deadline_handler()
dmar_fault_handler()
ptdev_interrupt_handler()
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: J... |
528,777 | 22.08.2018 14:25:01 | 0 | a0c625b85a805388ad6ae4fab9d29f5fd0d2a37f | hv: apicv: change the apicv related API with vlapic_apicv prefix
The apicv is one hardware acceleration feature of vlapic. All vlapic
APIs should keep vlapic_ as the prefix.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -2056,7 +2056,7 @@ int vlapic_create(struct vcpu *vcpu)\nif (is_vcpu_bsp(vcpu)) {\nept_mr_add(vcpu->vm,\n- apicv_get_apic_access_addr(vcpu->vm),\n+ vlapic_apicv_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: apicv: change the apicv related API with vlapic_apicv prefix
The apicv is one hardware acceleration feature of vlapic. All vlapic
APIs should keep vlapic_ as the prefix.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 22.08.2018 14:25:39 | 0 | a6c2065b2e6cb6c1b1e20e7f2dfc986a4bb872fa | hv: apicv: change the name of vapic to apicv
Remove the vapic name and unify to apicv.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -40,7 +40,7 @@ bool x2apic_enabled = false;\n#define VAPIC_FEATURE_VX2APIC_MODE (1U << 5)\nstruct cpu_capability {\n- uint8_t vapic_features;\n+ uint8_t apicv_features;\nuint8_t e... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: apicv: change the name of vapic to apicv
Remove the vapic name and unify to apicv.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 15.08.2018 13:45:27 | -28,800 | f4eef9710dfbe6ff80ed47112a6f1b17df7866a7 | hv: ptdev: simplify ptdev_intx_pin_remap logic
Since this interrupt pin is passed through to the guest, we could set
it as we like. There's no need a flag to emulate the masked status. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -663,6 +663,7 @@ static void activate_physical_ioapic(struct vm *vm,\n{\nunion ioapic_rte rte;\nuint32_t phys_irq = entry->allocated_pirq;\n+ uint32_t intr_mask;\nbool is_lv... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ptdev: simplify ptdev_intx_pin_remap logic
Since this interrupt pin is passed through to the guest, we could set
it as we like. There's no need a flag to emulate the masked status.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,734 | 01.08.2018 10:54:23 | -28,800 | dcae4383061ceacb6a3565346a7ddc7a96778149 | hv: add a hypercall for the hypervisor NPK log
The hypercall HC_SETUP_HV_NPK_LOG is added to enable/disable/configure
the hypervisor NPK log.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmcall.c",
"new_path": "hypervisor/arch/x86/guest/vmcall.c",
"diff": "@@ -159,6 +159,10 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\ncase HC_SETUP_SBUF:\nret = hcall_setup_sbuf(vm, param1);\nbreak;\n+\n+ case HC_SETUP_HV_NPK_LOG:\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add a hypercall for the hypervisor NPK log
The hypercall HC_SETUP_HV_NPK_LOG is added to enable/disable/configure
the hypervisor NPK log.
Signed-off-by: Zhi Jin <zhi.jin@intel.com>
Signed-off-by: Zhonghua Sun <zhonghua.sun@intel.com>
Reviewed-by: CHEN Gang <gang.c.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@... |
528,734 | 07.08.2018 11:02:46 | -28,800 | 3c6df9b70c6601969860f0677e708abb9fdfba7f | hv: add mmio functions for 64bit values
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/io.h",
"new_path": "hypervisor/include/arch/x86/io.h",
"diff": "@@ -76,6 +76,17 @@ static inline uint32_t pio_read(uint16_t addr, size_t sz)\nreturn pio_read32(addr);\n}\n+/** Writes a 64 bit value to a memory mapped IO device.\n+ *... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add mmio functions for 64bit values
Signed-off-by: Zhi Jin <zhi.jin@intel.com>
Reviewed-by: CHEN Gang <gang.c.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 20.08.2018 10:47:35 | -28,800 | e8c0763de63abc1e1457a737fe8d110099325976 | hv: ptdev: add source_id for ptdev to identify source
Then use the source id to lookup the ptdev remapping entry.
For msi interrupt ptdev: use bdf and vector_index to identify the id;
For intx interrupt ptdev: use pin and pin source to identify the id.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "#include <hypervisor.h>\n-static inline uint32_t\n-entry_id_from_msix(uint16_t bdf, uint32_t index)\n-{\n- uint32_t id = index & 0xffU;\n-\n- id = (uint32_t)bdf | (id << 16U) |... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ptdev: add source_id for ptdev to identify source
Then use the source id to lookup the ptdev remapping entry.
For msi interrupt ptdev: use bdf and vector_index to identify the id;
For intx interrupt ptdev: use pin and pin source to identify the id.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu ... |
528,654 | 21.08.2018 15:27:25 | -28,800 | d8cc29b6ea584376dd7fc5c0afe04dec6bf64e65 | hv: ptdev: check whether phys_pin is valid in add_intx_remapping
Then we don't need to check whether phys_pin is valid in others.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -256,6 +256,13 @@ add_intx_remapping(struct vm *vm, uint8_t virt_pin,\npic_pin ? PTDEV_VPIN_PIC : PTDEV_VPIN_IOAPIC;\nDEFINE_IOAPIC_SID(phys_sid, phys_pin, 0);\nDEFINE_IOAPI... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ptdev: check whether phys_pin is valid in add_intx_remapping
Then we don't need to check whether phys_pin is valid in others.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 21.08.2018 15:40:47 | -28,800 | 2371839cad6675d78c7f29e3457d542cf6549bd5 | hv: ptdev: remove vector index from structure ptdev_msi_info
Since it's stored in source id already.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -160,11 +160,11 @@ ptdev_build_physical_rte(struct vm *vm,\n*/\nstatic struct ptdev_remapping_info *\nadd_msix_remapping(struct vm *vm, uint16_t virt_bdf, uint16_t phys_bdf,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ptdev: remove vector index from structure ptdev_msi_info
Since it's stored in source id already.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 21.08.2018 15:47:39 | -28,800 | da57284ba5bf3634858f46156761f87a6fd83984 | hv: ptdev: simplify struct ptdev_msi_info
The virt_vector/phys_vector are only used for debugging.
Rename msix to is_msix.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -426,7 +426,7 @@ void ptdev_softirq(__unused uint16_t cpu_id)\ndev_dbg(ACRN_DBG_PTIRQ,\n\"dev-assign: irq=0x%x MSI VR: 0x%x-0x%x\",\nentry->allocated_pirq,\n- msi->virt_vect... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ptdev: simplify struct ptdev_msi_info
The virt_vector/phys_vector are only used for debugging.
Rename msix to is_msix.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 26.07.2018 13:28:08 | -28,800 | 4bb8456de83d26df5a7c442fde26361800e1f982 | hv: ept: refine ept_mr_add base on mmu_add
Refine ept_mr_add base on mmu_add. The old map_mem could be removed
once this was done. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -258,20 +258,17 @@ int ept_misconfig_vmexit_handler(__unused struct vcpu *vcpu)\nreturn status;\n}\n-int ept_mr_add(const struct vm *vm, uint64_t hpa_arg,\n- uint64_t gpa_arg, uin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ept: refine ept_mr_add base on mmu_add
Refine ept_mr_add base on mmu_add. The old map_mem could be removed
once this was done.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 26.07.2018 22:20:37 | -28,800 | f3b825de9df5c9fab59727ea2bfe422d83f5ae7f | hv: trusty: use ept_mr_add to add memory region
Use ept_mr_add to add memory region EPT mapping for trusty. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -62,17 +62,13 @@ static void create_secure_world_ept(struct vm *vm, uint64_t gpa_orig,\n{\nuint64_t nworld_pml4e = 0UL;\nuint64_t sworld_pml4e = 0UL;\n- struct mem_map_param... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: trusty: use ept_mr_add to add memory region
Use ept_mr_add to add memory region EPT mapping for trusty.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,654 | 26.07.2018 22:45:52 | -28,800 | 93c1b07c1d07748e3515f7f9c559a97b168ae021 | hv: mmu: remove old map_mem
Now there is no one use it. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/mmu.c",
"new_path": "hypervisor/arch/x86/mmu.c",
"diff": "@@ -199,300 +199,6 @@ bool check_mmu_1gb_support(enum _page_table_type page_table_type)\nreturn status;\n}\n-static inline uint32_t\n-check_page_table_present(enum _page_table_type p... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: mmu: remove old map_mem
Now there is no one use it.
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,768 | 22.08.2018 21:19:37 | -28,800 | 3b6ccf0c9161f72b52b7ef874d7e60ba6ad14f91 | HV: remove callbacks registration for APICv functions
- call these functions directly, no need to register
callbacks.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -84,9 +84,6 @@ apicv_set_intr_ready(struct acrn_vlapic *vlapic, uint32_t vector,\nstatic int\napicv_pending_intr(struct acrn_vlapic *vlapic, __unused uint32_t *v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove callbacks registration for APICv functions
- call these functions directly, no need to register
callbacks.
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 13.08.2018 14:42:50 | -28,800 | 5663dd7d14b99d7f60f2b4f63a9e9ff9f0e253a2 | hv: extend the decode_modrm
If rm show there is no SIB following rm field, we should get
base_register info from rm.
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": "@@ -1636,6 +1636,11 @@ static int vie_init(struct instr_emul_vie *vie, struct vcpu *vcpu)\n(void)memset(vie, 0U, sizeof(struct instr_emul_vie));\n+ /* init ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: extend the decode_modrm
If rm show there is no SIB following rm field, we should get
base_register info from rm.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 14.08.2018 16:37:52 | -28,800 | 8480c98053fe07d7f47709ebbe5054194c9e049d | hv: move check out of vie_calculate_gla
We will do check only during instruction decode phase.
vie_calculate_gla will be called both in instruction emulation
phase, we move the check out of vie_calculate_gla.
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": "@@ -405,50 +405,20 @@ static int vie_canonical_check(enum vm_cpu_mode cpu_mode, uint64_t gla)\n}\n}\n-/*\n- *@pre seg must be segment register index\n- *@pr... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move check out of vie_calculate_gla
We will do check only during instruction decode phase.
vie_calculate_gla will be called both in instruction emulation
phase, we move the check out of vie_calculate_gla.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,768 | 23.08.2018 18:29:31 | -28,800 | 7bc1a3f925c346dabeb165d9caf933f0bd1c7ed5 | HV: Refine APICv capabilities detection
- by default, ACRN will not support platform without
below APICv features:
-- Use TPR shadow
-- APIC-register virtualization
- remove mmio emualtion of local APIC for guest
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -790,26 +790,27 @@ static void apicv_cap_detect(void)\nuint8_t features;\nuint64_t msr_val;\n- features = 0U;\n-\nmsr_val = msr_read(MSR_IA32_VMX_PROCBASED_CTLS);\nif (!is_ctrl_se... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Refine APICv capabilities detection
- by default, ACRN will not support platform without
below APICv features:
-- Use TPR shadow
-- APIC-register virtualization
- remove mmio emualtion of local APIC for guest
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Anthony Xu <anthony.xu@int... |
528,659 | 23.08.2018 21:19:48 | -28,800 | c5dcb34f3957f6086966095b686afe2b3caa0398 | DM USB: xHCI: fix a potential issue of crash
This patch is used to fix a potential issue resulted from typo.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -593,7 +593,7 @@ pci_xhci_native_usb_dev_disconn_cb(void *hci_data, void *dev_data)\nif (xdev->slots[slot] == edev)\nbreak;\n- assert(slot < USB_NATIVE_NUM_BUS);\n+ assert(slot < ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: xHCI: fix a potential issue of crash
This patch is used to fix a potential issue resulted from typo.
Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
Reviewed-by: Liang Yang <liang3.yang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,795 | 21.08.2018 08:11:40 | -28,800 | 8d35f4e0e87b67497d09f501545bcc073c556e2e | HV: wrap and enable hkdf_sha256 key derivation based on mbedtls
Derive multiple seeds to support multiple guest VMs | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -157,7 +157,11 @@ C_SRCS += lib/mdelay.c\nC_SRCS += lib/div.c\nC_SRCS += lib/string.c\nC_SRCS += lib/memory.c\n-C_SRCS += lib/crypto/hkdf.c\n+C_SRCS += lib/crypto/hkdf_wrap.c\n+C_SRCS += lib/... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: wrap and enable hkdf_sha256 key derivation based on mbedtls
Derive multiple seeds to support multiple guest VMs
Signed-off-by: Chen, Gang G <gang.g.chen@intel.com> |
528,680 | 15.08.2018 14:13:36 | 25,200 | de53964c05bc0229eb4f34ea850f44e1fe6aa5f5 | HV: Removed the unused parameters and union from gdt
In the gdt.h, it defines unions and parameters which is not used
in hypervisor. Removed them to keep the gdt definition simple.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/gdt.c",
"new_path": "hypervisor/arch/x86/gdt.c",
"diff": "#include <hypervisor.h>\n-static void set_tss_desc(union tss_64_descriptor *desc,\n+static void set_tss_desc(struct tss_64_descriptor *desc,\nuint64_t tss, size_t tss_limit, uint32_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Removed the unused parameters and union from gdt
In the gdt.h, it defines unions and parameters which is not used
in hypervisor. Removed them to keep the gdt definition simple.
Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,647 | 21.08.2018 16:45:33 | -28,800 | da4c95ba576c718dd97051e915f2ef66d7698995 | tools: acrn-manager: fix several warnings
This commit eliminates several compiler warnings via:
- added 'const' quilifier to the 1st argument of send_msg();
- added 'const' quilifier to vm ops functions. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrn_vm_ops.c",
"new_path": "tools/acrn-manager/acrn_vm_ops.c",
"diff": "@@ -60,7 +60,7 @@ struct vmmngr_struct *vmmngr_find(char *name)\nreturn NULL;\n}\n-static int send_msg(char *vmname, struct mngr_msg *req, struct mngr_msg *ack);\n+stat... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-manager: fix several warnings
This commit eliminates several compiler warnings via:
- added 'const' quilifier to the 1st argument of send_msg();
- added 'const' quilifier to vm ops functions.
Signed-off-by: Yan, Like <like.yan@intel.com> |
528,794 | 27.08.2018 14:03:18 | -28,800 | 947e86db090a7a51eae5d43d506cf067c5732e70 | HV: restore correct gpa for guest normal world
We should specify gpa for uos or sos when restore memory, otherwise
it would cause resume failure issue. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -151,7 +151,8 @@ void destroy_secure_world(struct vm *vm, bool need_clr_mem)\nvoid *pdpt_addr;\nstruct vm *vm0 = get_vm_from_vmid(0U);\nuint64_t hpa = vm->sworld_control.swo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: restore correct gpa for guest normal world
We should specify gpa for uos or sos when restore memory, otherwise
it would cause resume failure issue.
Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
Reviewed-by: Jason Che... |
528,801 | 24.08.2018 16:21:59 | -28,800 | 2a184f353cd7cb85e03b04e8296afb77d582389c | hv: code clean up regarding to guest_msrs
Change guest_msrs in vcpu data structure from pointer to array, which
could avoid the dynamic memory allocation.
v1 -> v2:
* Remove the unnecessary initialization for guest_msrs[] since vcpu is
allocated by calloc.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -385,7 +385,6 @@ void destroy_vcpu(struct vcpu *vcpu)\nvlapic_free(vcpu);\nfree(vcpu->arch_vcpu.vmcs);\n- free(vcpu->guest_msrs);\nper_cpu(ever_run_vcpu, vcpu->pcpu_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: code clean up regarding to guest_msrs
Change guest_msrs in vcpu data structure from pointer to array, which
could avoid the dynamic memory allocation.
v1 -> v2:
* Remove the unnecessary initialization for guest_msrs[] since vcpu is
allocated by calloc.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao... |
528,646 | 25.07.2018 17:01:43 | -28,800 | fa7eb1f6aea9802f6467860f3f8494a4aa2f94db | tools:acrn-crashlog: Document of configuration file
This document explains all fields in acrnprobe.xml.
User could use it to control acrnprobe's behavior and configure their
own events.
Acked-by: Chen Gang
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/acrnprobe/README.rst",
"new_path": "tools/acrn-crashlog/acrnprobe/README.rst",
"diff": "@@ -39,8 +39,8 @@ To see the version of ``acrnprobe``.\nArchitecture\n************\n-Syntax\n-======\n+Terms\n+=====\n- channel :\nChannel represents a ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools:acrn-crashlog: Document of configuration file
This document explains all fields in acrnprobe.xml.
User could use it to control acrnprobe's behavior and configure their
own events.
Tracked-On: #1024
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Reviewed-by: David B. Kinder <david.b.kinder@intel.com>
Acked-by: ... |
528,731 | 29.08.2018 14:32:08 | -28,800 | a8ac452edb5170a80e30bba220fe0ab25aafda8c | dm: cmos: move cmos storage out of vmctx
The whole vmctx will be cleared during cold reset.
cmos data should not be cleared during cold reset.
Move cmos data out of vmctx.
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/cmos_io.c",
"new_path": "devicemodel/hw/platform/cmos_io.c",
"diff": "#define CMOS_VRPMB_START 0x20\n#define CMOS_VRPMB_END 0x9F\n+/* cmos buffer used to store write/read contents,\n+ * and it should not be cleared when reboot\n+ */\n+s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: cmos: move cmos storage out of vmctx
The whole vmctx will be cleared during cold reset.
cmos data should not be cleared during cold reset.
Move cmos data out of vmctx.
Tracked-On: #1118
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com> |
528,709 | 29.08.2018 14:53:01 | -28,800 | 852f613fe319d12c96d7ab0f878193cebffc2e01 | samples: remove extra option for dm
remove extra "-l com1,stdio" option for dm | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -287,7 +287,6 @@ else\nfi\nacrn-dm -A -m $mem_size -c $2$boot_GVT_option\"$GVT_args\" -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \\\n- -l com1,stdi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | samples: remove extra option for dm
remove extra "-l com1,stdio" option for dm
Tracked-On: #1123
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,705 | 22.08.2018 17:03:10 | -28,800 | 25dacc5c19e73f96382bd343c9e13d07f4014bb5 | security: Enable '-fpie, -pie' options
To be sure hypervisor and DM are position independent
and executable.
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/Makefile",
"new_path": "devicemodel/Makefile",
"diff": "@@ -18,6 +18,7 @@ CFLAGS += -Wall -ffunction-sections\nCFLAGS += -Werror\nCFLAGS += -O2 -D_FORTIFY_SOURCE=2\nCFLAGS += -Wformat -Wformat-security -fno-strict-aliasing\n+CFLAGS += -fpie\nCFLAGS... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | security: Enable '-fpie, -pie' options
To be sure hypervisor and DM are position independent
and executable.
Tracked-On: #1122
Signed-off-by: wenshelx <wenshengx.wang@intel.com>
Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,728 | 31.08.2018 18:40:22 | -7,200 | ef1a730230c638ab0d74c4972287ebc622f73b68 | Documentation: correct URL pointing at sample 'acrn.conf' file
Update the Getting Started Guide to correct the URL pointing at
the sample 'acrn.conf' file that is in the source code tree. | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -201,7 +201,7 @@ partition. Follow these steps:\nA starter acrn.conf configuration file is included in the Clear Linux release and is\nalso available in the acrn-hyper... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Documentation: correct URL pointing at sample 'acrn.conf' file
Update the Getting Started Guide to correct the URL pointing at
the sample 'acrn.conf' file that is in the source code tree.
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,654 | 23.08.2018 14:19:44 | -28,800 | 58fffcd3b93f2bd8c26b9a3b1d29fcb26740bf1b | hv: mmu: rename PTT_HOST to PTT_PRIMARY
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/mmu.c",
"new_path": "hypervisor/arch/x86/mmu.c",
"diff": "@@ -244,7 +244,7 @@ void init_paging(void)\n/* Map all memory regions to UC attribute */\nmmu_add((uint64_t *)mmu_pml4_addr, e820_mem.mem_bottom,\ne820_mem.mem_bottom, e820_mem.mem_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: mmu: rename PTT_HOST to PTT_PRIMARY
Tracked-On: #1124
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 23.08.2018 14:28:40 | -28,800 | 06ab2b829f4d692627ad8592af20055715fccc41 | hv: mmu: add 1GB page capability check when CPU boot
Add 1GB large page support limit on our platform.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -227,6 +227,11 @@ static int hardware_detect_support(void)\nreturn -ENODEV;\n}\n+ if (!cpu_has_cap(X86_FEATURE_PAGE1GB)) {\n+ pr_fatal(\"%s, not support 1GB page\\n\", __func__);\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: mmu: add 1GB page capability check when CPU boot
Add 1GB large page support limit on our platform.
Tracked-On: #1124
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 23.08.2018 16:11:17 | -28,800 | 9257ecf4bb0efcb45451b14decfec8f51d92ebfd | hv: mmu: cleanup mmu.h
Remove unused Macro defininion.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu_primary.S",
"new_path": "hypervisor/arch/x86/cpu_primary.S",
"diff": "@@ -225,14 +225,14 @@ cpu_primary32_gdt_ptr:\n.align 0x1000\n.global cpu_boot32_page_tables_start\ncpu_boot32_page_tables_start:\n- /* 0x3 = (IA32E_COMM_P_BIT | IA32E... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: mmu: cleanup mmu.h
Remove unused Macro defininion.
Tracked-On: #1124
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 24.08.2018 10:24:48 | -28,800 | 7f9befb643e34a2a4a39f11728fa6a7b15136161 | hv: ept: remove find_next_table
We don't need find_next_table to walk to the next EPT page table.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "#define ACRN_DBG_EPT 6U\n-static uint64_t find_next_table(uint32_t table_offset, const void *table_base)\n-{\n- uint64_t table_entry;\n- uint64_t table_present;\n- uint64_t sub_table... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: ept: remove find_next_table
We don't need find_next_table to walk to the next EPT page table.
Tracked-On: #1124
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 24.08.2018 10:37:31 | -28,800 | d67eefb012a0beee73163870669ae3f4c865c97b | hv: mmu: use get/set_pgentry to get/set page table entry
And remove mem_read/write_xx API.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -106,21 +106,21 @@ static void create_secure_world_ept(struct vm *vm, uint64_t gpa_orig,\n*/\nsub_table_addr = alloc_paging_struct();\nsworld_pml4e = HVA2HPA(sub_table_addr)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: mmu: use get/set_pgentry to get/set page table entry
And remove mem_read/write_xx API.
Tracked-On: #1124
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,665 | 31.08.2018 00:27:38 | -28,800 | f611012d281e4ef1a0f5c32fb42ac6c5ba0f92a0 | HV: Refine two log info about vcpu and instr_emul
We have two same log message in decode_instruction. It's a little bit confusing.
So, this patch refine the log message to make it more explicit.
BTW, we refine one message in create_vcpu.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -2240,7 +2240,7 @@ int decode_instruction(struct vcpu *vcpu)\nretval = vie_init(&emul_ctxt->vie, vcpu);\nif (retval < 0) {\nif (retval != -EFAULT) {\n- p... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Refine two log info about vcpu and instr_emul
We have two same log message in decode_instruction. It's a little bit confusing.
So, this patch refine the log message to make it more explicit.
BTW, we refine one message in create_vcpu.
Tracked-On: #1136
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Antho... |
528,801 | 27.08.2018 14:41:32 | -28,800 | 54439ecae1771b849b9c8fce1396ccb129cda4b5 | hv: treewide: fix 'Expression is not Boolean'
MISRA-C requires that the controlling expression of an if statement or
an iteration-statement shall be Boolean type. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/pm.c",
"new_path": "hypervisor/arch/x86/guest/pm.c",
"diff": "@@ -161,9 +161,9 @@ static void pm1ab_io_write(__unused struct vm_io_handler *hdlr,\nif ((addr == vm->pm.sx_state_data->pm1a_cnt.address)\n&& (val == vm->pm.sx_state_data->... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: treewide: fix 'Expression is not Boolean'
MISRA-C requires that the controlling expression of an if statement or
an iteration-statement shall be Boolean type.
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com> |
528,799 | 28.08.2018 11:39:32 | 25,200 | c9ea8901e6fe533d2d855a66a9d746317fdeb747 | HV: VPCI coding style fix
Converted MACROS to functions
Defined pci_bar_type enum
Defined pci_bdf as union instead of uint16_t to eliminate macros
Use L or UL postfix after unsigned integers | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/hostbridge.c",
"new_path": "hypervisor/dm/vpci/hostbridge.c",
"diff": "@@ -97,8 +97,8 @@ static int vdev_hostbridge_cfgread(struct pci_vdev *vdev, uint32_t offset,\nuint32_t bytes, uint32_t *val)\n{\n/* Assumption: access needed to be aligne... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: VPCI coding style fix
- Converted MACROS to functions
- Defined pci_bar_type enum
- Defined pci_bdf as union instead of uint16_t to eliminate macros
- Use L or UL postfix after unsigned integers
Tracked-On: #1126
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> |
528,799 | 28.08.2018 16:15:54 | 25,200 | 308910ebf797b444afc62ccdf1c8caa94d1956e0 | HV: Updated vm description table for partition mode
This reference table defines USB/SATA/Ethernet passthru for MRB board. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/partition/vm_description.c",
"new_path": "hypervisor/partition/vm_description.c",
"diff": "@@ -41,33 +41,43 @@ static struct vpci_vdev_array vpci_vdev_array1 = {\n}\n},\n- {/*vdev 1*/\n+ {/*vdev 1: SATA controller*/\n.vbdf.bits = {.b = 0x00U, .d = 0... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Updated vm description table for partition mode
This reference table defines USB/SATA/Ethernet passthru for MRB board.
Tracked-On: #1126
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> |
528,799 | 28.08.2018 16:47:55 | 25,200 | 36c4a27abce088d9488f01d41706bdc955719a8a | HV: Fix VPCI bugs found in integration testing for partition mode | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/dm/vpci/hostbridge.c",
"new_path": "hypervisor/dm/vpci/hostbridge.c",
"diff": "@@ -115,7 +115,9 @@ static int vdev_hostbridge_cfgwrite(struct pci_vdev *vdev, uint32_t offset,\nreturn -EINVAL;\n}\n+ if (!pci_bar_access(offset)) {\npci_vdev_write_cfg(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Fix VPCI bugs found in integration testing for partition mode
Tracked-On: #1126
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> |
528,652 | 28.08.2018 13:21:52 | 25,200 | d8c97c1b2d437aead133e4a83aa8c4c3e4e278ae | hv: fix broken relocation feature
commit ("hv: treewide: fix 'Array has no bounds specified")
misses one '&', which breaks the hypervisor relocation feature. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/boot/reloc.c",
"new_path": "hypervisor/boot/reloc.c",
"diff": "@@ -104,7 +104,7 @@ void _relocate(void)\n* Need to subtract the relocation delta to get the correct\n* absolute addresses\n*/\n- trampoline_end = (uint64_t)_ld_trampoline_end - delta;\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fix broken relocation feature
commit a71dedecd4dc ("hv: treewide: fix 'Array has no bounds specified")
misses one '&', which breaks the hypervisor relocation feature.
Tracked-On: #861
Signed-off-by: Zide Chen <zide.chen@intel.com> |
528,734 | 24.08.2018 13:58:11 | -28,800 | 96809c4a44aacbba2754df1cba1ca253e937e2c1 | DM NPK: enable the NPK virtualization for AaaG
Enable the NPK virtualization for AaaG if the NPK device/driver
is present. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -216,6 +216,14 @@ echo \"8086 5abc\" > /sys/bus/pci/drivers/pci-stub/new_id\necho \"0000:00:18.0\" > /sys/bus/pci/devices/0000:00:18.0/driver/unbin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM NPK: enable the NPK virtualization for AaaG
Enable the NPK virtualization for AaaG if the NPK device/driver
is present.
Tracked-On: #1138
Signed-off-by: Zhi Jin <zhi.jin@intel.com>
Reviewed-by: Chen Gang <gang.c.chen@intel.com> |
528,762 | 30.08.2018 09:35:13 | -28,800 | a4cb3913b30526219c41fe2ed11f9fad1bd3d2f0 | hv: fixup format of log message in vm_load.c | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/vm_load.c",
"new_path": "hypervisor/common/vm_load.c",
"diff": "@@ -151,7 +151,7 @@ int general_sw_loader(struct vm *vm, struct vcpu *vcpu)\nif (is_vcpu_bsp(vcpu)) {\n/* Set VCPU entry point to kernel entry */\nvcpu->entry_addr = sw_kernel->k... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fixup format of log message in vm_load.c
Tracked-On: #1137
Signed-off-by: Cai Yulong <yulongc@hwtc.com.cn> |
528,732 | 04.09.2018 14:32:05 | -28,800 | 56f2c1a71739def1fc4434233d22844ca2a77cb1 | tools: acrn-crashlog: correct usercrash-wrapper path
This patch is to correct the path of usercrash-wrapper.
Acked-by: Zhang Di | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/Makefile",
"new_path": "tools/acrn-crashlog/Makefile",
"diff": "@@ -67,8 +67,8 @@ install:\n@install -p -D -m 0755 $(BUILDDIR)/usercrash/bin/debugger $(DESTDIR)/usr/bin/\n@install -p -D -m 0755 $(BUILDDIR)/usercrash/bin/usercrash_c $(DESTDI... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-crashlog: correct usercrash-wrapper path
This patch is to correct the path of usercrash-wrapper.
Tracked-On: #1024
Signed-off-by: CHEN Gang <gang.c.chen@intel.com>
Reviewed-by: Zhi Jin <zhi.jin@intel.com>
Acked-by: Zhang Di <di.zhang@intel.com> |
528,647 | 29.08.2018 09:54:23 | -28,800 | 5c3e4d1a7e1ed05b150ee1ded58ddab4007287ea | tools: acrntrace: fix a variable uninitialized issue
'err' may be used uninitialized and be dereferenced NULL.
This commit fix the reported issue via initializing 'err' to 0, and return 'err'
at the end of the func. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrntrace/acrntrace.c",
"new_path": "tools/acrntrace/acrntrace.c",
"diff": "@@ -154,7 +154,7 @@ static int get_cpu_num(void)\nstatic int create_trace_file_dir(char *dir)\n{\n- int err;\n+ int err = 0;\nchar cmd[CMD_MAX_LEN];\nchar time_str[TIME_STR_LEN];... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrntrace: fix a variable uninitialized issue
'err' may be used uninitialized and be dereferenced NULL.
This commit fix the reported issue via initializing 'err' to 0, and return 'err'
at the end of the func.
Tracked-On: #1157
Signed-off-by: Yan, Like <like.yan@intel.com> |
528,747 | 05.09.2018 16:01:25 | 25,200 | d32ef9b1eb604b4d616d39e957375e855dbccddb | doc: fix doc misspellings
fix misspellings in .rst files missed during regular reviews | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/GVT-G-porting.rst",
"new_path": "doc/developer-guides/GVT-G-porting.rst",
"diff": "@@ -13,7 +13,7 @@ multiple virtual-GPU (vGPU) instances for virtual machine (VM) system. A\nVM can be assigned one instance of a vGPU. The guest OS graphic ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: fix doc misspellings
fix misspellings in .rst files missed during regular reviews
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,783 | 05.09.2018 19:04:08 | -28,800 | 37181776875742121725fd0831f0c00f12363585 | hv:Replace dynamic allocation with static memory for shell
Pre-allocate 2 pages of static memory for shell log buffer.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "#define MAX_STR_SIZE 256U\n#define SHELL_PROMPT_STR \"ACRN:\\\\>\"\n+char shell_log_buf[CPU_PAGE_SIZE*2];\n+\n/* Input Line Other - Switch to the \"other\" input line (there are only t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Replace dynamic allocation with static memory for shell
Pre-allocate 2 pages of static memory for shell log buffer.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,756 | 31.08.2018 13:51:47 | -28,800 | bad8d81ab6fdb69431ca88abc79316f27ca3fb4d | IOC mediator: add new signal for VBUS control
Support VBUS control for USB OTG.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc.c",
"new_path": "devicemodel/hw/platform/ioc.c",
"diff": "@@ -533,6 +533,7 @@ static struct cbc_signal cbc_rx_signal_table[] = {\n{(uint16_t)CBC_SIG_ID_HTUST, 32, CBC_ACTIVE},\n{(uint16_t)CBC_SIG_ID_HVSST, 32, CBC_ACTIVE},\n{(uint16... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: add new signal for VBUS control
Support VBUS control for USB OTG.
Tracked-On: #1159
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,783 | 05.09.2018 15:22:04 | -28,800 | 1b334ec08ffa4f0b3c803df53752979f09b23194 | hv: replace 'return' with 'panic' in bsp_boot_post
If hardware_detect_support() failed,as it return to
bsp_boot_init with a different stack and thus returning
from bsp_boot_init becomes an undefined behavior.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -461,8 +461,7 @@ static void bsp_boot_post(void)\npr_dbg(\"Core %hu is up\", BOOT_CPU_ID);\nif (hardware_detect_support() != 0) {\n- pr_fatal(\"hardware not support!\\n\");\n- ret... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: replace 'return' with 'panic' in bsp_boot_post
If hardware_detect_support() failed,as it return to
bsp_boot_init with a different stack and thus returning
from bsp_boot_init becomes an undefined behavior.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@i... |
528,763 | 29.08.2018 14:42:35 | -28,800 | 30b77aba5ddc1b50b09ddd662bcc4294d61b6c72 | DM: unmap ptdev BAR when deinit
Unmap ptdev BAR when deinit to comply with native system, who zap out
all pre-allocated BARs.
Acked-by: Yin Fengwei
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/vmmapi.c",
"new_path": "devicemodel/core/vmmapi.c",
"diff": "@@ -549,6 +549,22 @@ vm_map_ptdev_mmio(struct vmctx *ctx, int bus, int slot, int func,\nreturn ioctl(ctx->fd, IC_SET_MEMSEG, &memmap);\n}\n+int\n+vm_unmap_ptdev_mmio(struct vmctx *ct... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: unmap ptdev BAR when deinit
Unmap ptdev BAR when deinit to comply with native system, who zap out
all pre-allocated BARs.
Tracked-On: #1146
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 05.09.2018 13:51:32 | -28,800 | 65930809ee27938f086eb8d87c68920058276a70 | hv: Replace dynamic allocation with static memory for vmxon_region
Remove vmxon_region_pa from structure per_cpu_region,
and define vmxon_region inside per_cpu_region.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx.c",
"new_path": "hypervisor/arch/x86/vmx.c",
"diff": "@@ -84,22 +84,12 @@ int exec_vmxon_instr(uint16_t pcpu_id)\n{\nuint64_t tmp64, vmcs_pa;\nuint32_t tmp32;\n- int ret = -ENOMEM;\n- void *vmxon_region_va;\n+ int ret = 0;\n+ void *vmxo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Replace dynamic allocation with static memory for vmxon_region
Remove vmxon_region_pa from structure per_cpu_region,
and define vmxon_region inside per_cpu_region.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.don... |
528,783 | 05.09.2018 13:57:15 | -28,800 | e4e38e1bfbee34c6b2cc183e242dffb870aa91d9 | hv:Check if VMX capability is locked with incorrect value
Check if the VMX capability is locked with incorrect value,
at the time when HV do the hardware capability detect.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -252,6 +252,11 @@ static int hardware_detect_support(void)\nreturn -ENODEV;\n}\n+ if (is_vmx_disabled()) {\n+ pr_fatal(\"%s, VMX can not be enabled\\n\", __func__);\n+ return -ENO... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Check if VMX capability is locked with incorrect value
Check if the VMX capability is locked with incorrect value,
at the time when HV do the hardware capability detect.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddi... |
528,783 | 05.09.2018 15:13:30 | -28,800 | 5c5aed618862ce2c7a82ff2e89bbdd37e0c32e37 | hv:Change several VMX APIs to void type
Change vmx_off/exec_vmxon/exec_vmclear/exec_vmptrld/
exec_vmxon_instr/init_vmcs to void type
for vmxon/vmclear/vmptrld, add pre-conditions to
guarantee sucessful execution.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx.c",
"new_path": "hypervisor/arch/x86/vmx.c",
"diff": "@@ -41,21 +41,19 @@ bool is_vmx_disabled(void)\nreturn false;\n}\n-static inline int exec_vmxon(void *addr)\n+/**\n+ * @pre addr != NULL && addr is 4KB-aligned\n+ * rev[31:0] 32 bits... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Change several VMX APIs to void type
-- Change vmx_off/exec_vmxon/exec_vmclear/exec_vmptrld/
exec_vmxon_instr/init_vmcs to void type
-- for vmxon/vmclear/vmptrld, add pre-conditions to
guarantee sucessful execution.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Junjie Ma... |
528,705 | 06.09.2018 10:14:48 | -28,800 | 6ee9321bd8c1b1faeac45086508b8357ec60dcf1 | security: Enable '-fpie -pie' options
To be sure acrn debug tools are position independent
and executable.
Acked-by: CHEN Gang
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/Makefile",
"new_path": "tools/acrn-crashlog/Makefile",
"diff": "@@ -14,6 +14,8 @@ CFLAGS += -m64 -D_GNU_SOURCE\nifeq ($(RELEASE),0)\nCFLAGS += -DDEBUG_ACRN_CRASHLOG\nendif\n+CFLAGS += -fpie\n+LDFLAGS += -pie\nINCLUDE := -I $(BASEDIR)/common... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | security: Enable '-fpie -pie' options
To be sure acrn debug tools are position independent
and executable.
Tracked-On: #1122
Signed-off-by: wenshelx <wenshengx.wang@intel.com>
Acked-by: CHEN Gang <gang.c.chen@intel.com>
Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,777 | 06.09.2018 03:08:34 | 0 | b4e03f2d687f3847775357d5497a7cca22fd422b | hv: virq: make irq_window_enabled useful
The arch_vcpu->irq_window_enabled is almost useless in original code.
This patch use it to avoid unnecessary "interrupt-window exiting"
conditions check if "interrupt-window exiting" is aleady enabled.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -503,6 +503,10 @@ INTR_WIN:\n* an ExtInt or there is lapic interrupt and virtual interrupt\n* deliver is disabled.\n*/\n+ if (arch_vcpu->irq_window_enabled == 1U) {\n+ return re... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: virq: make irq_window_enabled useful
The arch_vcpu->irq_window_enabled is almost useless in original code.
This patch use it to avoid unnecessary "interrupt-window exiting"
conditions check if "interrupt-window exiting" is aleady enabled.
Tracked-On: #1190
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Ant... |
528,757 | 06.09.2018 13:17:32 | -28,800 | a7de5a1940bfc9d624cbd4b143b135df2317e1f8 | samples: Add tap name as launch function parameter
launch two clearlinux will use the same 'LaaG' as tap interface name. Add tap
name as parameter that will meet two UOS using different tap interface.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -15,7 +15,7 @@ vm_name=vm$1\nvm_name=${vm_name}-${mac:9:8}\n# create a unique tap device for each VM\n-tap=tap_LaaG\n+tap=tap_$6\ntap_exist=$(ip a ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | samples: Add tap name as launch function parameter
launch two clearlinux will use the same 'LaaG' as tap interface name. Add tap
name as parameter that will meet two UOS using different tap interface.
Tracked-On: projectacrn/acrn-hypervisor#1194
Signed-off-by: Jiangbo Wu <jiangbo.wu@intel.com>
Reviewed-by: Binbin Wu ... |
528,757 | 06.09.2018 13:29:38 | -28,800 | c6b7940bf92a0e7b96e34f9ad3b9e5535c3bd9ea | samples: Add AliOS as guest launch option
Add sample script launch option to launch AliOS as a guest. And it reuse launch
android function due to the same configurations.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/acrn_guest.service",
"new_path": "devicemodel/samples/apl-mrb/acrn_guest.service",
"diff": "@@ -10,7 +10,7 @@ ConditionPathExists=/dev/acrn_vhm\n[Service]\nType=simple\nRemainAfterExit=false\n-ExecStart=/bin/sh /usr/share/acrn/sampl... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | samples: Add AliOS as guest launch option
Add sample script launch option to launch AliOS as a guest. And it reuse launch
android function due to the same configurations.
Tracked-On: projectacrn/acrn-hypervisor#1173
Signed-off-by: Jiangbo Wu <jiangbo.wu@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@intel.com>
Acked-by... |
528,647 | 07.09.2018 15:17:42 | -28,800 | 26b8b3b28ba699fc307bb30194406760136e76e6 | tool: acrn-manager: do not wakeup SOS in advance
There is no need to wakeup SOS in advance since UOS wakeup time is
not required to be that exact.
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnd.c",
"new_path": "tools/acrn-manager/acrnd.c",
"diff": "@@ -263,7 +263,6 @@ static int active_all_vms(void)\n#define SOS_LCS_SOCK \"sos-lcs\"\n#define DEFAULT_TIMEOUT 2U\n-#define SOS_ADVANCE_WKUP 10U /* WKUP SOS 10 sec in advance */\n#... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tool: acrn-manager: do not wakeup SOS in advance
There is no need to wakeup SOS in advance since UOS wakeup time is
not required to be that exact.
Tracked-On: #927
Signed-off-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Liu Yuan <yuan1.liu@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com> |
528,647 | 07.09.2018 15:38:35 | -28,800 | 0ca90ba6be7d6f1b4b520383bd0036d6810ffe76 | tools: acrn-manager: rework acrnd resume flow
This commit reworked the resume flow:
- generate RSN_RTC wakeup reason to resume_vm();
- clear timer_list in memory once it's saved to fs;
- wakeup the suspended VMs only if wakeup by ignition button.
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnd.c",
"new_path": "tools/acrn-manager/acrnd.c",
"diff": "@@ -40,7 +40,7 @@ static pthread_mutex_t work_mutex = PTHREAD_MUTEX_INITIALIZER;\nstatic pthread_mutex_t acrnd_stop_mutex = PTHREAD_MUTEX_INITIALIZER;\nstatic unsigned int acrnd_st... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-manager: rework acrnd resume flow
This commit reworked the resume flow:
- generate RSN_RTC wakeup reason to resume_vm();
- clear timer_list in memory once it's saved to fs;
- wakeup the suspended VMs only if wakeup by ignition button.
Tracked-On: #927
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked... |
528,647 | 07.09.2018 15:48:43 | -28,800 | f42209c567c91bbe598c0e322a7e20c608b27faf | tools: acrn-manager: remove unnecessary "current" field
Remove the unnecessary "current" field when store/load timer list.
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnd.c",
"new_path": "tools/acrn-manager/acrnd.c",
"diff": "@@ -146,11 +146,9 @@ static int load_timer_list(void)\n{\nFILE *fp;\nstruct work_arg arg = {};\n- time_t expire;\n- time_t record;\n- time_t current;\n+ time_t expire, current;\nch... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-manager: remove unnecessary "current" field
Remove the unnecessary "current" field when store/load timer list.
Tracked-On: #927
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com> |
528,647 | 07.09.2018 17:34:30 | -28,800 | 4ae88bb676fd8ea46a84f6f8e02f49195c71d01b | tools: acrn-manager: fix acrnctl reset issue
Wait for targeting VM stopping before starting it again
Acked-by: Yin Fengwei | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrn_vm_ops.c",
"new_path": "tools/acrn-manager/acrn_vm_ops.c",
"diff": "@@ -50,7 +50,7 @@ static pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;\nstruct vmmngr_list_struct vmmngr_head;\nstatic unsigned long update_count = 0;\n-str... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrn-manager: fix acrnctl reset issue
Wait for targeting VM stopping before starting it again
Tracked-On: projectacrn/acrn-hypervisor#926
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com> |
528,794 | 06.09.2018 10:10:51 | -28,800 | d8c4619ee9edeb9b66b7c068a30a6480e82cb2d9 | HV: change wake vector info to accommodate abl
MRB bootloader is switched to ABL, so change platform acpi info accordingly
to support system S3.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/sbl/platform_acpi_info.c",
"new_path": "hypervisor/bsp/sbl/platform_acpi_info.c",
"diff": "@@ -48,7 +48,12 @@ const struct acpi_info host_acpi_info = {\n.val_pm1b = 0U,\n.reserved = 0U\n},\n+#if 0 /* set to 0 if run with ABL, set to 1 if switch ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: change wake vector info to accommodate abl
MRB bootloader is switched to ABL, so change platform acpi info accordingly
to support system S3.
Tracked-On: #1196
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 04.09.2018 12:09:43 | -28,800 | bfcf5461800496c888d854e19c809fe0d60ac23b | Doc: add interrupt storm mitigation explanation.
Acked-by: Geoffroy Van Cutsem | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/interrupt-hld.rst",
"new_path": "doc/developer-guides/interrupt-hld.rst",
"diff": "@@ -451,6 +451,16 @@ a guest's vMSI. The handler then injects the corresponding virtual\ninterrupt into the guest, based on vPIC/vIOAPIC/vLAPIC APIs describ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | Doc: add interrupt storm mitigation explanation.
Tracked-On: #866
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Acked-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> |
528,675 | 07.09.2018 22:33:29 | -28,800 | 2978c01f455b192c027da8d1e740dc444f1c3b6b | io: tiny fix for error message
error message for "read" or "write" was incorrect.
for developers, we just need print out direction & type value. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/io.c",
"new_path": "hypervisor/arch/x86/io.c",
"diff": "@@ -312,9 +312,13 @@ emulate_io(struct vcpu *vcpu, struct io_request *io_req)\nstatus = acrn_insert_request_wait(vcpu, io_req);\nif (status != 0) {\n+ /* here for both IO & MMIO, the d... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | io: tiny fix for error message
error message for "read" or "write" was incorrect.
for developers, we just need print out direction & type value.
Tracked-On: #875
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 07.09.2018 22:36:12 | -28,800 | 457ac7408d59740f62ed8dcd7311cc29a5b597b9 | vcpu: replace start_vcpu with run_vcpu
run_vcpu should be a more suitable name | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -273,7 +273,7 @@ static void set_vcpu_mode(struct vcpu *vcpu, uint32_t cs_attr)\n}\n}\n-int start_vcpu(struct vcpu *vcpu)\n+int run_vcpu(struct vcpu *vcpu)\n{\nuint3... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | vcpu: replace start_vcpu with run_vcpu
run_vcpu should be a more suitable name
Tracked-On: #1199
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 08.09.2018 03:33:09 | -28,800 | 8773dfb1f6c2882b4b843fbbd297595077b0289d | vlapic: unmap vlapic base only for SOS
as SOS mapped all memory at the beginning, so trap vlapic need unmap its
memory; for UOS, there is no need as UOS never mapped it. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1970,6 +1970,8 @@ int vlapic_create(struct vcpu *vcpu)\nif (is_vcpu_bsp(vcpu)) {\nuint64_t *pml4_page =\n(uint64_t *)vcpu->vm->arch_vm.nworld_eptp;\n+ /* only n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | vlapic: unmap vlapic base only for SOS
as SOS mapped all memory at the beginning, so trap vlapic need unmap its
memory; for UOS, there is no need as UOS never mapped it.
Tracked-On: #1124
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 08.09.2018 15:29:32 | -28,800 | d72e65c91a14103be69b4afb48ef4abf49a09ef0 | trusty: do not destroy secure world if it's not created
check sworld_eptp before real destroy_secure_world | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -158,6 +158,12 @@ void destroy_secure_world(struct vm *vm, bool need_clr_mem)\npr_err(\"Parse vm0 context failed.\");\nreturn;\n}\n+\n+ if (vm->arch_vm.sworld_eptp == NULL) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | trusty: do not destroy secure world if it's not created
check sworld_eptp before real destroy_secure_world
Tracked-On: #1200
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,702 | 10.09.2018 23:16:30 | 0 | 9e76cf480032906d32618fc97650b357520faf69 | doc: Add fixed issues in v0.2 release note
Filter v0.2 fixed issues from github closed issue list. | [
{
"change_type": "MODIFY",
"old_path": "doc/release_notes_0.2.rst",
"new_path": "doc/release_notes_0.2.rst",
"diff": "@@ -17,6 +17,34 @@ ACRN device model, and documentation.\nVersion 0.2 new features\n************************\n+Fixed Issues\n+============\n+:acrn-issue:`663` - Black screen displaye... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: Add fixed issues in v0.2 release note
Filter v0.2 fixed issues from github closed issue list.
Signed-off-by: Nanlin Xie <nanlin.xie@intel.com> |
528,794 | 11.09.2018 15:13:59 | -28,800 | dbcbe7d1ff738851eb2ca00fe39b6edbb40b4a8c | HV: change wake vector to accommodate abl 1820HF1release
MRB bootloader is switched to ABL ver 1820HF1_release, so change platform
acpi info accordingly to support system S3.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/sbl/platform_acpi_info.c",
"new_path": "hypervisor/bsp/sbl/platform_acpi_info.c",
"diff": "@@ -52,8 +52,8 @@ const struct acpi_info host_acpi_info = {\n.wake_vector_32 = (uint32_t *)0x7A86BBDCUL,\n.wake_vector_64 = (uint64_t *)0x7A86BBE8UL\n#els... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: change wake vector to accommodate abl 1820HF1release
MRB bootloader is switched to ABL ver 1820HF1_release, so change platform
acpi info accordingly to support system S3.
Tracked-On: #1196
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,756 | 16.08.2018 16:37:09 | -28,800 | ca75d506b7956c51152ad24c660a326c96f094e7 | IOC mediator: add RTC feature
This patch implements RTC feature that UOS can set RTC wakeup timer
to IOC firmware with a specific time before enter S3/S5. IOC mediator
also needs to indicate RTC wakeup reason to UOS after exit S3/S5.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc_cbc.c",
"new_path": "devicemodel/hw/platform/ioc_cbc.c",
"diff": "#include <stdbool.h>\n#include \"ioc.h\"\n+#include \"monitor.h\"\n/*\n* Debug printf\n@@ -645,11 +646,22 @@ cbc_process_wakeup_reason(struct cbc_pkt *pkt)\n*/\npkt->... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: add RTC feature
This patch implements RTC feature that UOS can set RTC wakeup timer
to IOC firmware with a specific time before enter S3/S5. IOC mediator
also needs to indicate RTC wakeup reason to UOS after exit S3/S5.
Tracked-On: #1213
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <y... |
528,783 | 07.09.2018 10:12:51 | -28,800 | eada04b8000e2d10c5054e0960e1d3373ae1eac9 | hv:Replace dynamic memory allocation for vmcs region
Replace vmcs pointer with static memory for vmcs region
inside structure vcpu_arch.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -224,13 +224,6 @@ int create_vcpu(uint16_t pcpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)\nvcpu->arch_vcpu.vpid = allocate_vpid();\n- /* Allocate VMCS region... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Replace dynamic memory allocation for vmcs region
Replace vmcs pointer with static memory for vmcs region
inside structure vcpu_arch.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 07.09.2018 14:11:08 | -28,800 | 02e7edc0637d36d84dbbaf6f8a64a6ece18fdc55 | hv: Replace dynamic memory allocation for I/O bitmaps
Replace pointer with static memory for io_bitmap
inside structure vm_arch.
Refine allow_guest_pio_access/deny_guest_pio_access
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/pm.c",
"new_path": "hypervisor/arch/x86/guest/pm.c",
"diff": "@@ -94,7 +94,7 @@ static inline void init_cx_port(struct vm *vm)\nif (cx_data->cx_reg.space_id == SPACE_SYSTEM_IO) {\nuint16_t port = (uint16_t)cx_data->cx_reg.address;\n- ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Replace dynamic memory allocation for I/O bitmaps
-- Replace pointer with static memory for io_bitmap
inside structure vm_arch.
-- Refine allow_guest_pio_access/deny_guest_pio_access
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: ... |
528,783 | 07.09.2018 14:18:25 | -28,800 | 887ebf0b08afc8fc13dc5e584225ecb8ff7b86ea | hv: Replace dynamic memory allocation for MSR bitmap
Replace pointer with static memory for msr_bitmap
inside structure vm_arch.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -292,9 +292,6 @@ int shutdown_vm(struct vm *vm)\n/* Free EPT allocated resources assigned to VM */\ndestroy_ept(vm);\n- /* Free MSR bitmap */\n- free(vm->arch_vm.msr_bit... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Replace dynamic memory allocation for MSR bitmap
Replace pointer with static memory for msr_bitmap
inside structure vm_arch.
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 07.09.2018 14:26:17 | -28,800 | fdb64095c417be991e9af671daa8741f75c6e3a5 | hv:Replace dynamic memory allocation for apic access address
Replace pointer with static memory for apicv_apic_access_addr
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -82,7 +82,7 @@ vlapic_dump_isr(__unused struct acrn_vlapic *vlapic, __unused char *msg) {}\n#endif\n/*APIC-v APIC-access address */\n-static void *apicv_apic_acc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Replace dynamic memory allocation for apic access address
Replace pointer with static memory for apicv_apic_access_addr
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.09.2018 19:02:42 | -28,800 | aae5018bec5bdb4fdd365afb1a2ee2e7e7b1f10d | hv:Move vlapic structure to vlapic.h
move structure vlapic_pir_desc/vlapic_timer/
acrn_vlapic from vlapic_priv.h to vlapic.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic_priv.h",
"new_path": "hypervisor/arch/x86/guest/vlapic_priv.h",
"diff": "#define APIC_OFFSET_TIMER_CCR 0x390U /* Timer's Current Count */\n#define APIC_OFFSET_TIMER_DCR 0x3E0U /* Timer's Divide Configuration */\n-/*\n- * 16 pri... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Move vlapic structure to vlapic.h
move structure vlapic_pir_desc/vlapic_timer/
acrn_vlapic from vlapic_priv.h to vlapic.h
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 11.09.2018 14:07:32 | -28,800 | f744762ad382b1477e1620395bfe5f9c0aacbedf | hv:Remove redundancy 'vlapic' in 'struct vcpu'
It has been defined in 'struct vcpu_arch'
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/guest/vcpu.h",
"new_path": "hypervisor/include/arch/x86/guest/vcpu.h",
"diff": "@@ -222,7 +222,6 @@ struct vcpu {\n/* State of debug request for this VCPU */\nvolatile enum vcpu_state dbg_req_state;\nuint64_t sync; /*hold the bit ev... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Remove redundancy 'vlapic' in 'struct vcpu'
It has been defined in 'struct vcpu_arch'
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 10.09.2018 19:26:30 | -28,800 | 60c05ace1a7381849dc0fcd1bdd094ab426103f3 | hv:Replace vlapic pointer with instance in vcpu_arch
update 'vlapic' in 'struct vcpu_arch' from pointer
to instance
add inline function(vcpu_vlapic) in vcpu.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpuid.c",
"new_path": "hypervisor/arch/x86/cpuid.c",
"diff": "@@ -297,7 +297,7 @@ int set_vcpuid_entries(struct vm *vm)\nreturn 0;\n}\n-void guest_cpuid(const struct vcpu *vcpu,\n+void guest_cpuid(struct vcpu *vcpu,\nuint32_t *eax, uint32_t... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Replace vlapic pointer with instance in vcpu_arch
-- update 'vlapic' in 'struct vcpu_arch' from pointer
to instance
-- add inline function(vcpu_vlapic) in vcpu.h
Tracked-On: #861
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 12.09.2018 13:31:42 | -28,800 | 7cab77daced162a0ade8d7413a06db5701d0ad91 | hv: clean up div related code
replace udiv64 with direct integer divide
remove lib/div.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -154,7 +154,6 @@ C_SRCS += arch/x86/guest/pm.c\nC_SRCS += lib/spinlock.c\nC_SRCS += lib/udelay.c\nC_SRCS += lib/mdelay.c\n-C_SRCS += lib/div.c\nC_SRCS += lib/string.c\nC_SRCS += lib/memory.c\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean up div related code
- replace udiv64 with direct integer divide
- remove lib/div.c
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 12.09.2018 14:14:56 | -28,800 | d84f7a4fd5c5a2095432253339f83b65f044059d | hv: clean up udelay/mdelay related code
replace the usage of mdelay with udelay
remove lib/mdelay.c
rename udelay.c to misc.c
future other small APIs could put in misc.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -152,8 +152,7 @@ C_SRCS += arch/x86/guest/instr_emul.c\nC_SRCS += arch/x86/guest/ucode.c\nC_SRCS += arch/x86/guest/pm.c\nC_SRCS += lib/spinlock.c\n-C_SRCS += lib/udelay.c\n-C_SRCS += lib/mdel... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean up udelay/mdelay related code
- replace the usage of mdelay with udelay
- remove lib/mdelay.c
- rename udelay.c to misc.c
future other small APIs could put in misc.c
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 12.09.2018 15:18:15 | -28,800 | b1ba12ae1b488e538bdc87bd1918819d407b4318 | hv: clean up spinlock wrappers
remove the following unnecessary spinlock wrappers
#define IOMMU_LOCK(u) spinlock_obtain(&((u)->lock))
#define IOMMU_UNLOCK(u) spinlock_release(&((u)->lock))
remove the unnecessary comments in vpic.c
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vtd.c",
"new_path": "hypervisor/arch/x86/vtd.c",
"diff": "@@ -80,9 +80,6 @@ dmar_set_bitslice(uint64_t var, uint64_t mask,\n#define DMAR_MSI_REDIRECTION_CPU (0 << DMAR_MSI_REDIRECTION_SHIFT)\n#define DMAR_MSI_REDIRECTION_LOWPRI (1 << DMAR_M... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean up spinlock wrappers
- remove the following unnecessary spinlock wrappers
#define IOMMU_LOCK(u) spinlock_obtain(&((u)->lock))
#define IOMMU_UNLOCK(u) spinlock_release(&((u)->lock))
- remove the unnecessary comments in vpic.c
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: E... |
528,647 | 12.09.2018 09:49:11 | -28,800 | 5a996ce6a983462f50c6ad3e664ea80240398f3b | hv:irq: correct the size of irq_alloc_bitmap
This commit corrected the size of irq_alloc_bitmap[]. | [
{
"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, };\nstatic spinlock_t irq_alloc_spinlock = { .head = 0U, .tail = 0U, };\n-#define IRQ_ALLOC_BITMAP_SIZE INT_DIV_ROUND... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:irq: correct the size of irq_alloc_bitmap
This commit corrected the size of irq_alloc_bitmap[].
Tracked-On: #1229
Signed-off-by: Yan, Like <like.yan@intel.com> |
528,801 | 13.09.2018 09:25:27 | -28,800 | 83e7995d5d16c653f299b2211f9527afa76fc5f4 | hv: clean up some header files
move the contents in macros.h and stdarg.h to util.h
remove macros.h and stdarg.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/hv_lib.h",
"new_path": "hypervisor/include/hv_lib.h",
"diff": "#include <types.h>\n#include <errno.h>\n-#include <macros.h>\n#include <rtl.h>\n#include <spinlock.h>\n#include <mem_mgt.h>\n-#include <stdarg.h>\n#include <util.h>\n#include <li... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean up some header files
- move the contents in macros.h and stdarg.h to util.h
- remove macros.h and stdarg.h
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 13.09.2018 13:20:23 | -28,800 | 5023937041698ab378b5a7584608f0af0f4c9188 | hv: merge pgtable_types.h and pgtable.h
move the contents in pgtable_types.h to pgtable.h
remove pgtable_types.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/arch/x86/hv_arch.h",
"new_path": "hypervisor/include/arch/x86/hv_arch.h",
"diff": "#include <vm.h>\n#include <cpuid.h>\n#include <mmu.h>\n-#include <pgtable_types.h>\n#include <pgtable.h>\n#include <irq.h>\n#include <vmx.h>\n"
},
{
"... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: merge pgtable_types.h and pgtable.h
- move the contents in pgtable_types.h to pgtable.h
- remove pgtable_types.h
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,786 | 13.09.2018 15:15:57 | -28,800 | 8858634493a6eba3f05f223ea8a3f1ba86297ac7 | HV: update opcode when decode_two_byte_opcode()
The vie->opcode should be updated when decode_two_byte_opcode(),
otherwise for two bytes opcode emulate(movzx/movsx) will fail. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -1778,6 +1778,7 @@ static int decode_two_byte_opcode(struct instr_emul_vie *vie)\nreturn -1;\n}\n+ vie->opcode = x;\nvie->op = two_byte_opcodes[x];\nif (... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: update opcode when decode_two_byte_opcode()
The vie->opcode should be updated when decode_two_byte_opcode(),
otherwise for two bytes opcode emulate(movzx/movsx) will fail.
Signed-off-by: Qi Yadong <yadong.qi@intel.com> |
528,801 | 13.09.2018 10:50:46 | -28,800 | d886375ee4e457bd30759130e8af3775532ee516 | hv: clean up spinlock
move spinlock_init and spinlock_obtain to spinlock.h as inline APIs
remove spinlock.c
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -151,7 +151,6 @@ C_SRCS += arch/x86/guest/vmsr.c\nC_SRCS += arch/x86/guest/instr_emul.c\nC_SRCS += arch/x86/guest/ucode.c\nC_SRCS += arch/x86/guest/pm.c\n-C_SRCS += lib/spinlock.c\nC_SRCS += ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: clean up spinlock
- move spinlock_init and spinlock_obtain to spinlock.h as inline APIs
- remove spinlock.c
Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,747 | 16.09.2018 14:22:09 | 25,200 | a47f5d41295b9b17f171c35c5bb4b908572eeeff | doc: fix Makefile to address multiple publishers
Need to make sure the local projectacrn.github.io is in sync with the
master before starting up the publishing process. | [
{
"change_type": "MODIFY",
"old_path": "doc/Makefile",
"new_path": "doc/Makefile",
"diff": "@@ -69,6 +69,7 @@ clean:\npublish:\nmkdir -p $(PUBLISHDIR)\n+ cd $(PUBLISHDIR)/..; git pull origin master\nrm -fr $(PUBLISHDIR)/*\ncp -r $(BUILDDIR)/html/* $(PUBLISHDIR)\ncp scripts/publish-README.md $(PUBLIS... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: fix Makefile to address multiple publishers
Need to make sure the local projectacrn.github.io is in sync with the
master before starting up the publishing process.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,731 | 14.09.2018 14:59:32 | -28,800 | 5329ced1ea67d0b9da78d84e8dd644e3c1c251cc | hv: vtd: fix potential buffer overflow in suspend/resume
In current code of suspend_iommu/resume_iommu, there is potential buffer overflow
according to the code.
This patch put the buffer to struct dmar_drhd_rt, so that no need to access the buffer
via index.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vtd.c",
"new_path": "hypervisor/arch/x86/vtd.c",
"diff": "#define ROOT_ENTRY_LOWER_CTP_POS (12U)\n#define ROOT_ENTRY_LOWER_CTP_MASK (0xFFFFFFFFFFFFFUL)\n+/* 4 iommu fault register state */\n+#define IOMMU_FAULT_REGISTER_STATE_NUM 4U\n+#defi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vtd: fix potential buffer overflow in suspend/resume
In current code of suspend_iommu/resume_iommu, there is potential buffer overflow
according to the code.
This patch put the buffer to struct dmar_drhd_rt, so that no need to access the buffer
via index.
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Tracked-On:... |
528,768 | 18.09.2018 02:02:43 | -28,800 | 2af08d961989b83b75590daa447a5d061cb3ebf3 | HV: refine 'struct lapic_regs' definition.
- remove 'PAD3' & 'PAD4'
- define local APIC registers by 'struct lapic_reg' type.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -60,7 +60,7 @@ static inline void vlapic_dump_irr(struct acrn_vlapic *vlapic, char *msg)\nfor (i = 0U; i < 8U; i++)\ndev_dbg(ACRN_DBG_LAPIC, \"%s irr%u 0x%08x\",... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: refine 'struct lapic_regs' definition.
- remove 'PAD3' & 'PAD4'
- define local APIC registers by 'struct lapic_reg' type.
Tracked-On: #861
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,786 | 17.09.2018 15:32:08 | -28,800 | 8f0cb5630d9501c54da40c1ee02eab80ffecca36 | HV: trusty: refine version checking when initializing trusty
Replace if--else logic with switch--case when checking interface
version.
Acked-by: Zhu Bing | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -417,28 +417,30 @@ bool initialize_trusty(struct vcpu *vcpu, uint64_t param)\nreturn false;\n}\n- if (boot_param.version > TRUSTY_VERSION_2) {\n- dev_dbg(ACRN_DBG_TRUSTY, \"... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: trusty: refine version checking when initializing trusty
Replace if--else logic with switch--case when checking interface
version.
Tracked-On: #1265
Signed-off-by: Qi Yadong <yadong.qi@intel.com>
Acked-by: Zhu Bing <bing.zhu@intel.com> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.