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,733 | 27.07.2018 13:28:53 | -28,800 | d18642a8a64ac2a706543cb7f2949b5c146024d9 | hv: Add function to check whether cr0 written operation is valid
Move the check to delicated function and do the check as early
as possible.
Add more check and inject GP to guest if check fails according to
SDM. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx.c",
"new_path": "hypervisor/arch/x86/vmx.c",
"diff": "@@ -345,6 +345,40 @@ int vmx_wrmsr_pat(struct vcpu *vcpu, uint64_t value)\nreturn 0;\n}\n+static bool is_cr0_write_valid(struct vcpu *vcpu, uint64_t cr0)\n+{\n+ struct run_context *c... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: Add function to check whether cr0 written operation is valid
Move the check to delicated function and do the check as early
as possible.
Add more check and inject GP to guest if check fails according to
SDM.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 27.07.2018 16:49:12 | -28,800 | dec24a9f9f0d71d73f07e6ac6dcc1bbe54627863 | hv: add check to invalid CR8 writting from guest
According to SDM, inject #GP(0) if guest tries to write reserved
bit of CR8.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmexit.c",
"new_path": "hypervisor/arch/x86/vmexit.c",
"diff": "@@ -281,6 +281,15 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)\nbreak;\ncase 0x08U:\n/* mov to cr8 */\n+ /* According to SDM 6.15 \"Exception and interrupt Reference\":\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add check to invalid CR8 writting from guest
According to SDM, inject #GP(0) if guest tries to write reserved
bit of CR8.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,654 | 30.07.2018 15:56:59 | -28,800 | 073583cc41c4dd46463f8ee90be803d59190c327 | hv: softirq: move softirq.c to common directory
Softirq is not x86 architectural related.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -115,7 +115,6 @@ C_SRCS += arch/x86/ioapic.c\nC_SRCS += arch/x86/lapic.c\nS_SRCS += arch/x86/trampoline.S\nC_SRCS += arch/x86/cpu.c\n-C_SRCS += arch/x86/softirq.c\nC_SRCS += arch/x86/cpuid.c\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: softirq: move softirq.c to common directory
Softirq is not x86 architectural related.
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,756 | 24.07.2018 20:50:37 | -28,800 | 5e31e7c66f69caf49c250a99f902c5cf00968711 | IOC mediator: Add parking brake and Hvac signals
This patch adds new signals about parking brake and Hvac in the signal
definition and signal whitelist.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/platform/ioc.c",
"new_path": "devicemodel/hw/platform/ioc.c",
"diff": "@@ -464,6 +464,44 @@ static struct cbc_signal cbc_tx_signal_table[] = {\n{(uint16_t)CBC_SIG_ID_GYROZ, 16, CBC_ACTIVE},\n{(uint16_t)CBC_SIG_ID_IAVMN, 8, CBC_ACTIVE},\n{(uint16... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | IOC mediator: Add parking brake and Hvac signals
This patch adds new signals about parking brake and Hvac in the signal
definition and signal whitelist.
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com> |
528,794 | 31.07.2018 13:25:51 | -28,800 | 00bfde3cde4ded225ab27836eb647ead16017846 | HV: rename resume_vm to start_vm in hypercall api
Currently we don't support resume VM in HC API, the real meaning
of the code is to start VM.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmcall.c",
"new_path": "hypervisor/arch/x86/guest/vmcall.c",
"diff": "@@ -62,7 +62,7 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\ncase HC_START_VM:\n/* param1: vmid */\n- ret = hcall_resume_vm((uint16_t)param1);\n+ ret = hcall_sta... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: rename resume_vm to start_vm in hypercall api
Currently we don't support resume VM in HC API, the real meaning
of the code is to start VM.
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,675 | 30.07.2018 23:45:21 | -28,800 | a8e9d83e596a45fbdf7115f9ea54c8f0e8840d0e | samples: change WIFI BDF to 3:0:0
SBL used to use 4:0:0 for WIFI device BDF, now it change back to 3:0:0 | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -199,10 +199,10 @@ echo \"8086 5aca\" > /sys/bus/pci/drivers/pci-stub/new_id\necho \"0000:00:1b.0\" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | samples: change WIFI BDF to 3:0:0
SBL used to use 4:0:0 for WIFI device BDF, now it change back to 3:0:0
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,801 | 01.08.2018 10:22:37 | -28,800 | 51c75e9e3cafe16e601f97a25376fddc9851d01c | hv: treewide: fix 'Function prototype/defn param type mismatch'
Fix the parameter type mismatch between API declaration and definition.
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 @@ static int\napicv_set_intr_ready(struct acrn_vlapic *vlapic, uint32_t vector, bool level);\nstatic int\n-apicv_pending_intr(struct acrn_vlapic *vl... | 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.
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,747 | 01.08.2018 11:08:14 | 25,200 | 56904bc235c021642c9666feec8eb83758919996 | doc: CSS tweak for table caption location
Default behavior is for figure captions below the figure, but table
captions above the table. Tweak the CSS for tables to put the caption
below instead. | [
{
"change_type": "MODIFY",
"old_path": "doc/static/acrn-custom.css",
"new_path": "doc/static/acrn-custom.css",
"diff": "@@ -91,6 +91,11 @@ table.align-center {\ndisplay: table !important;\n}\n+/* put the table caption at the bottom, as done for figures */\n+table {\n+ caption-side: bottom;\n+}\n+\n.... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: CSS tweak for table caption location
Default behavior is for figure captions below the figure, but table
captions above the table. Tweak the CSS for tables to put the caption
below instead.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,676 | 01.08.2018 12:08:04 | -28,800 | 1664e0c8422968a37fa73e2d9227d5543b7667f2 | HV:fix rest integer violations
Fix integer related violations.
V1->V2:
clean all memset/calloc integer violations excpet bsp/boot directory
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -760,7 +760,7 @@ uint64_t create_guest_initial_paging(struct vm *vm)\n* number for it(without trusty) is GUEST_INIT_PT_PAGE_NUM-1.\n* here make sure they are init ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV:fix rest integer violations
Fix integer related violations.
V1->V2:
clean all memset/calloc integer violations excpet bsp/boot directory
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 30.07.2018 11:29:34 | -28,800 | 93ed0371a0a0441d88d3d0a72f5b9653ae2203fb | hv:cleanup console/uart code
Check uart enabled flag, it will return if the flag is false.
Add function declaration (uart16550_set_property) in console.h
Remove unnecessary function declaration(get_serial_handle)
Change uart_enabled and port_mapped to bool
Fix MISRA-C integer violations
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/bsp/uefi/cmdline.c",
"new_path": "hypervisor/bsp/uefi/cmdline.c",
"diff": "@@ -44,7 +44,7 @@ static void handle_cmd(const char *cmd, int len)\nif (i == IDX_DISABLE_UART) {\n/* set uart disabled*/\n- uart16550_set_property(0, 0, 0);\n+ uart16550_set_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:cleanup console/uart code
-- Check uart enabled flag, it will return if the flag is false.
-- Add function declaration (uart16550_set_property) in console.h
-- Remove unnecessary function declaration(get_serial_handle)
-- Change uart_enabled and port_mapped to bool
-- Fix MISRA-C integer violations
Signed-off-by: ... |
528,733 | 11.05.2018 19:19:27 | -28,800 | f576f97ea849345dec06a9c9b57f30db54f864f3 | hv: add vm restart API
And export the API to DM. DM will do system reboot/S3 resume based
on this API.
Also add the pre-assumption description for some vm APIs.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vm.c",
"new_path": "hypervisor/arch/x86/guest/vm.c",
"diff": "@@ -289,6 +289,9 @@ int shutdown_vm(struct vm *vm)\nreturn status;\n}\n+/**\n+ * * @pre vm != NULL\n+ */\nint start_vm(struct vm *vm)\n{\nstruct vcpu *vcpu = NULL;\n@@ -303... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add vm restart API
And export the API to DM. DM will do system reboot/S3 resume based
on this API.
Also add the pre-assumption description for some vm APIs.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 24.07.2018 18:07:37 | -28,800 | 8ee4c0b1ddca3f057733f5660747bf72bd17ad12 | DM: add vm_stop/reset_watchdog
When guest enter/exit S3, we need to do
1. stop watchdog timer when guest enter S3 to avoid watchdog
timer reset guest when guest is in S3 state.
2. reset watchdog timer when guest exit from S3.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/wdt_i6300esb.c",
"new_path": "devicemodel/hw/pci/wdt_i6300esb.c",
"diff": "#define WDT_TIMER_SIG 0x55AA\n#define DEFAULT_MAX_TIMER_VAL 0x000FFFFF\n+#define DEFAULT_RESET_TIMER_VAL 60\n/* for debug */\n/* #define WDT_DEBUG */\n@@ -365,6 +366,... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: add vm_stop/reset_watchdog
When guest enter/exit S3, we need to do
1. stop watchdog timer when guest enter S3 to avoid watchdog
timer reset guest when guest is in S3 state.
2. reset watchdog timer when guest exit from S3.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel... |
528,733 | 21.05.2018 16:49:57 | -28,800 | a8a27d82d0caf928eff6a57da22ce5df32e40d8c | dm: add S3 support for UOS
We do:
- pause target vm
- suspend all virtual devices
- wait for resume notification
- resume all virtual devices
- reset target vm
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/arch/x86/pm.c",
"new_path": "devicemodel/arch/x86/pm.c",
"diff": "@@ -256,6 +256,11 @@ pm1_control_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,\nerror = vm_suspend(ctx, VM_SUSPEND_POWEROFF);\nassert(error == 0 || errno == EALRE... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: add S3 support for UOS
We do:
- pause target vm
- suspend all virtual devices
- wait for resume notification
- resume all virtual devices
- reset target vm
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,733 | 24.05.2018 11:16:32 | -28,800 | 7db4c0aac95d2cf89bbe39c89469933914bc147f | DM: Add funciton to update PM_WAK_STS
According to ACPI spec, when system back to working mode from
S3, WAK_STS bit (15) should be set.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/arch/x86/pm.c",
"new_path": "devicemodel/arch/x86/pm.c",
"diff": "@@ -175,6 +175,15 @@ pm1_status_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,\nreturn 0;\n}\n+void\n+pm_backto_wakeup(struct vmctx *ctx)\n+{\n+ /* According to AC... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: Add funciton to update PM_WAK_STS
According to ACPI spec, when system back to working mode from
S3, WAK_STS bit (15) should be set.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 02.08.2018 00:01:23 | -28,800 | cd3a62f89ba307fe2466bbca06dc94aabf11c77e | HV: Refine invalid parameter handling in hypervisor shell
- print error message for command parameter error
when callback/handler is called.
Acked-by: Eddie Dong | [
{
"change_type": "UNKNOWN",
"old_path": "hypervisor/arch/x86/mtrr.c",
"new_path": "hypervisor/arch/x86/mtrr.c",
"diff": ""
},
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "@@ -359,7 +359,7 @@ void shell_kick(vo... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Refine invalid parameter handling in hypervisor shell
- print error message for command parameter error
when callback/handler is called.
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,783 | 31.07.2018 17:03:18 | -28,800 | ae8836d9605e709ae95ae0d2fa86fea5212b68a6 | hv:fix return value violation for vioapic_get_rte
Change this API to void type
Add pre-condition, state the input parameters are not NULL.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -629,17 +629,16 @@ int vioapic_mmio_access_handler(struct vcpu *vcpu, struct io_request *io_req,\nreturn ret;\n}\n-bool vioapic_get_rte(struct vm *vm, uint8_t ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:fix return value violation for vioapic_get_rte
Change this API to void type
Add pre-condition, state the input parameters are not NULL.
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,763 | 01.08.2018 11:20:44 | -28,800 | a98113bfceedcc5c601f3dc8a12a0d01547ca49c | HV: fully check VMCS control settings
Reshuffle VMX init code, and check both allowed 0-settings and
1-settings of related MSR to make the final VMCS control value.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx.c",
"new_path": "hypervisor/arch/x86/vmx.c",
"diff": "@@ -1245,6 +1245,34 @@ static void init_host_state(__unused struct vcpu *vcpu)\npr_dbg(\"VMX_HOST_IA32_SYSENTER_EIP: 0x%016llx \", value);\n}\n+static uint32_t check_vmx_ctrl(uint32_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: fully check VMCS control settings
Reshuffle VMX init code, and check both allowed 0-settings and
1-settings of related MSR to make the final VMCS control value.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,654 | 30.07.2018 10:08:58 | -28,800 | 8f39a229619c59e4e342da47c2064b4885b5d11d | hv: cpu: remove unnecessary cpu_id valid check
Remove unnecessary cpu_id valid check if the cpu_id comes from
get_cpu_id(). | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/timer.c",
"new_path": "hypervisor/arch/x86/timer.c",
"diff": "@@ -114,10 +114,6 @@ static int request_timer_irq(uint16_t pcpu_id,\n{\nstruct dev_handler_node *node = NULL;\n- if (pcpu_id >= phys_cpu_num) {\n- return -EINVAL;\n- }\n-\nif (pe... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: cpu: remove unnecessary cpu_id valid check
Remove unnecessary cpu_id valid check if the cpu_id comes from
get_cpu_id().
Signed-off-by: Li, Fei1 <fei1.li@intel.com> |
528,783 | 02.08.2018 15:17:41 | -28,800 | a3b44a2fa81ea7c3a73b9ea9bb7784ab5d2ffbef | hv:Replace 0(cpu_id) with BOOT_CPU_ID
Replace 0(pcpu_id/vcpu_id) with BOOT_CPU_ID
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1606,7 +1606,7 @@ vlapic_init(struct acrn_vlapic *vlapic)\n*/\nvlapic->msr_apicbase = DEFAULT_APIC_BASE | APICBASE_ENABLED;\n- if (vlapic->vcpu->vcpu_id == 0U) ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:Replace 0(cpu_id) with BOOT_CPU_ID
Replace 0(pcpu_id/vcpu_id) with BOOT_CPU_ID
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,693 | 01.08.2018 13:42:40 | 25,200 | 37026590c933203c5ccc32afdbca840c587ff5bd | HV: Rename functions, variables starting with "_"
In order to comply with MISRA C rules, renamed vairables
and function names starting with "_".
The major changes invloves mostly static function
names, as they are being called inside the same file
by a wrapper function. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -56,7 +56,7 @@ is_entry_active(struct ptdev_remapping_info *entry)\n/* require ptdev_lock protect */\nstatic inline struct ptdev_remapping_info *\n-_lookup_entry_by_id(uint3... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Rename functions, variables starting with "_"
In order to comply with MISRA C rules, renamed vairables
and function names starting with "_".
The major changes invloves mostly static function
names, as they are being called inside the same file
by a wrapper function.
Signed-off-by: Arindam Roy <arindam.roy@intel.c... |
528,665 | 31.07.2018 14:10:55 | -28,800 | b6a0a36cd19da9d156e500bf4a319523d3f064b4 | HV: instr_emul: Remove vie_read_register
We have vm_set/get_register here. There is no need to wrap the function with
vie_read_register.
This patch remove it.
Acked-by: Anthony Xu
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -221,18 +221,6 @@ static uint64_t size2mask[9] = {\n[8] = 0xffffffffffffffffUL,\n};\n-static int\n-vie_read_register(struct vcpu *vcpu, enum cpu_reg_name... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: instr_emul: Remove vie_read_register
We have vm_set/get_register here. There is no need to wrap the function with
vie_read_register.
This patch remove it.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Yin Fengwei ... |
528,665 | 31.07.2018 14:38:39 | -28,800 | c27e25052b0fd7a10efe9ac691c3727f9c8bd38e | HV: instr_emul: Move op_byte from vie_op to instr_emul_vie
one/two_byte_opcodes is indexed by op_byte. So vie_op->op_byte is unnecessary.
This patch remove it and add a new variable opcode to instr_emul_vie.
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": "static const struct instr_emul_vie_op two_byte_opcodes[256] = {\n[0xB6] = {\n- .op_byte = 0xB6,\n.op_type = VIE_OP_TYPE_MOVZX,\n},\n[0xB7] = {\n- .op_byte =... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: instr_emul: Move op_byte from vie_op to instr_emul_vie
one/two_byte_opcodes is indexed by op_byte. So vie_op->op_byte is unnecessary.
This patch remove it and add a new variable opcode to instr_emul_vie.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,801 | 02.08.2018 09:29:35 | -28,800 | fd0c9187ef7eb48029dfe313ce451bb4f1bc11c5 | hv: treewide: fix 'Procedure parameter has a type but no identifier'
Add the parameter identifier for typedef function pointer.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell_internal.h",
"new_path": "hypervisor/debug/shell_internal.h",
"diff": "@@ -30,7 +30,7 @@ struct shell {\n};\n/* Shell Command Function */\n-typedef int (*shell_cmd_fn_t)(int, char **);\n+typedef int (*shell_cmd_fn_t)(int argc, char **arg... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: treewide: fix 'Procedure parameter has a type but no identifier'
Add the parameter identifier for typedef function pointer.
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,752 | 02.08.2018 10:53:34 | -28,800 | f9bf917a6a7df4247718649124ec1166309088fc | HV: Refine hypervisor shell commands
removed shell commands:
vcpu_pause
vcpu_resume
lsreq
(warm) reboot
vcpu_dumpmem
updated shell commands:
vm_console -> sos_console
trigger crash -> reboot
merge 'set_loglevel' & 'get_loglevel' to 'loglevel'
new adding shell commands:
dumpmem --> dump host physical memory | [
{
"change_type": "MODIFY",
"old_path": "doc/user-guides/acrn-shell.rst",
"new_path": "doc/user-guides/acrn-shell.rst",
"diff": "@@ -17,25 +17,19 @@ The ACRN hypervisor shell supports the following commands:\n- Lists all VMs, displaying VM Name, VM ID, and VM State (ON=running)\n* - vcpu_list\n- List... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Refine hypervisor shell commands
removed shell commands:
--vcpu_pause
--vcpu_resume
--lsreq
--(warm) reboot
--vcpu_dumpmem
updated shell commands:
--vm_console -> sos_console
--trigger crash -> reboot
--merge 'set_loglevel' & 'get_loglevel' to 'loglevel'
new adding shell commands:
--dumpmem --> dump... |
528,768 | 03.08.2018 21:58:02 | -28,800 | 2299926a88376f9d588b759ede6781b39ffd95eb | HV: Refine 'hv_main()' function usage
'hv_main()' wraps several logic which has no dependencies
each other(enable VMX, prepare to create service os VM..),
in this case, split this function to make code logic clear.
remove 'is_vm0_bsp()' & 'hv_main()'
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -546,10 +546,11 @@ static void bsp_boot_post(void)\nconsole_setup_timer();\n- /* Start initializing the VM for this CPU */\n- if (hv_main(BOOT_CPU_ID) != 0) {\n- panic(\"failed to... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Refine 'hv_main()' function usage
'hv_main()' wraps several logic which has no dependencies
each other(enable VMX, prepare to create service os VM..),
in this case, split this function to make code logic clear.
remove 'is_vm0_bsp()' & 'hv_main()'
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
A... |
528,756 | 31.07.2018 08:48:44 | 0 | 331300d8b90274cf4176e9a1ddf8242edb798fcf | tools: fix an invalid parameter of send_msg in query_state
The issue is "acrnctl list" command always returns error with "no vmname
provided" information.
The rootcause is that vmname is an invalid parameter, which does not contain
any vm information. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrn_vm_ops.c",
"new_path": "tools/acrn-manager/acrn_vm_ops.c",
"diff": "@@ -72,7 +72,7 @@ static int query_state(const char *name)\nreq.msgid = DM_QUERY;\nreq.timestamp = time(NULL);\n- ret = send_msg(vmname, &req, &ack);\n+ ret = send_msg(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: fix an invalid parameter of send_msg in query_state
The issue is "acrnctl list" command always returns error with "no vmname
provided" information.
The rootcause is that vmname is an invalid parameter, which does not contain
any vm information.
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Yuhong... |
528,756 | 25.07.2018 20:47:49 | -28,800 | 6cd6e3d3ccfed056239707fdf3fc17fc4ff07c9a | tools: fix an issue acrnd does not notify the vm stop state to cbc lifecycle service
This patch resolves acrnd does not notify vm stop state(suspend/shutdown) to
cbc_lifecycle after SOS enters suspend/shutdown, that causes cbc_lifecycle
cannot trigger SOS suspend/shutdown flow. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnd.c",
"new_path": "tools/acrn-manager/acrnd.c",
"diff": "@@ -37,6 +37,8 @@ struct acrnd_work {\nstatic LIST_HEAD(acrnd_work_list, acrnd_work) work_head;\nstatic pthread_mutex_t work_mutex = PTHREAD_MUTEX_INITIALIZER;\n+static pthread_mut... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: fix an issue acrnd does not notify the vm stop state to cbc lifecycle service
This patch resolves acrnd does not notify vm stop state(suspend/shutdown) to
cbc_lifecycle after SOS enters suspend/shutdown, that causes cbc_lifecycle
cannot trigger SOS suspend/shutdown flow.
Signed-off-by: Yuan Liu <yuan1.liu@inte... |
528,756 | 31.07.2018 17:57:33 | -28,800 | 7b34ae84fa2c922a50a8ca40df70404583f7174b | tools: fix resuming vm issue in acrnd
This patch resolves vm state mismatch between vm and acrnd
which causes vm resuming failure | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrn_vm_ops.c",
"new_path": "tools/acrn-manager/acrn_vm_ops.c",
"diff": "@@ -141,7 +141,7 @@ static void _scan_alive_vm(void)\ncase VM_SUSPEND_NONE:\nvm->state = VM_STARTED;\nbreak;\n- case VM_SUSPEND_HALT:\n+ case VM_SUSPEND_SUSPEND:\nvm->s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: fix resuming vm issue in acrnd
This patch resolves vm state mismatch between vm and acrnd
which causes vm resuming failure
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Yuhong Tao <yuhong.tao@intel.com>
Reviewed-by: Like Yan <like.yan@intel.com> |
528,756 | 31.07.2018 09:25:19 | 0 | 66814d8449d9c4e54d45bd1f7c08246098e812d9 | tools: fix resuming vm issue in acrnctl
This patch changes vm resuming condition from VM_STARTED to VM_PAUSED | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnctl.c",
"new_path": "tools/acrn-manager/acrnctl.c",
"diff": "@@ -475,12 +475,8 @@ static int acrnctl_do_resume(int argc, char *argv[])\ncontinue;\n}\n- /* Per current implemention, we can't know if vm is in suspended\n- state. Send reume... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: fix resuming vm issue in acrnctl
This patch changes vm resuming condition from VM_STARTED to VM_PAUSED
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Reviewed-by: Yuhong Tao <yuhong.tao@intel.com>
Reviewed-by: Like Yan <like.yan@intel.com> |
528,777 | 01.08.2018 08:21:15 | 0 | fc4162918a9d2d82aa2c7147389b07387a40e70c | hv: vioapic: refine vioapic mmio access related code
1, Remove vioapic_mmio_read/vioapic_mmio_write, and combine them to
vioapic_mmio_rw.
2, The vioapic_read/write are used for emulate the ioapic indirect
access logic. So change their name with vioapic_indirect as the prefix.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -230,7 +230,7 @@ vioapic_update_tmr(struct vcpu *vcpu)\n}\nstatic uint32_t\n-vioapic_read(struct vioapic *vioapic, uint32_t addr)\n+vioapic_indirect_read(struc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: refine vioapic mmio access related code
1, Remove vioapic_mmio_read/vioapic_mmio_write, and combine them to
vioapic_mmio_rw.
2, The vioapic_read/write are used for emulate the ioapic indirect
access logic. So change their name with vioapic_indirect as the prefix.
Signed-off-by: Yu Wang <yu1.wang@intel.c... |
528,777 | 01.08.2018 08:31:23 | 0 | f0d2291fe2acc87918d8e2c65042602163c8132c | hv: vioapic: check vector prior to irr in EOI write emulation
Check the vector first to avoid unnecessary irr check.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -284,10 +284,8 @@ vioapic_write_eoi(struct vioapic *vioapic, uint32_t vector)\nfor (pin = 0U; pin < pincount; pin++) {\nrte = vioapic->rtbl[pin];\n- if ((rte.f... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: check vector prior to irr in EOI write emulation
Check the vector first to avoid unnecessary irr check.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 01.08.2018 08:57:48 | 0 | 771c6db3213638c0adafdd9027297af626038e07 | hv: vioapic: refine vioapic_mmio_rw function
Merge multiple if to switch-case. And set 0xFFFFFFFFU as the default
value of undefined address.
And the IOREGSEL register only bits 7:0 are defined, so mask the other
bits for read operation.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -431,45 +431,46 @@ vioapic_indirect_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)\nstatic void\nvioapic_mmio_rw(struct vioapic *vioapic, uint64_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: refine vioapic_mmio_rw function
Merge multiple if to switch-case. And set 0xFFFFFFFFU as the default
value of undefined address.
And the IOREGSEL register only bits 7:0 are defined, so mask the other
bits for read operation.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@in... |
528,777 | 01.08.2018 13:08:47 | 0 | 68cbdb39defa509d4a283c8bfd56d82b4ff95d7d | hv: vioapic: avoid deliver unnecessary interrupt for level trigger
For level sensitive trigger mode, the vioapic should not deliver extra
interrupt to vlapic if the previous one hasn't received EOI.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -87,13 +87,20 @@ vioapic_send_intr(struct vioapic *vioapic, uint8_t pin)\nphys = ((rte.full & IOAPIC_RTE_DESTMOD) == IOAPIC_RTE_DESTPHY);\ndelmode = (uint32_t)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: avoid deliver unnecessary interrupt for level trigger
For level sensitive trigger mode, the vioapic should not deliver extra
interrupt to vlapic if the previous one hasn't received EOI.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 01.08.2018 13:29:55 | 0 | 86de47b1425712d1067e2f5f694cda1c93f7c1db | hv: vioapic: correct the ioapic id mask
The APIC ID field should be bit 24:27 in IOAPIC Identification register.
The bits 28:31 are reserved bits which need to be avoid touched.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -51,6 +51,7 @@ struct vioapic {\n#define VIOAPIC_LOCK(vioapic) spinlock_obtain(&((vioapic)->mtx))\n#define VIOAPIC_UNLOCK(vioapic) spinlock_release(&((vioapic)... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: correct the ioapic id mask
The APIC ID field should be bit 24:27 in IOAPIC Identification register.
The bits 28:31 are reserved bits which need to be avoid touched.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 02.08.2018 00:39:06 | 0 | f96f048f712705f11b7795c6df3d07ffe8c80324 | hv: vioapic: change the variable type of pin to uint32_t
To make vioapic simpler, avoid lots of code to convert variable type
between uint8_t and uint32_t.
This patch changes all variable type of pin related variables to
uint32_t instead of original uint_8.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vioapic.c",
"new_path": "hypervisor/arch/x86/guest/vioapic.c",
"diff": "@@ -67,12 +67,12 @@ vm_ioapic(struct vm *vm)\n}\nstatic void\n-vioapic_send_intr(struct vioapic *vioapic, uint8_t pin)\n+vioapic_send_intr(struct vioapic *vioapic... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vioapic: change the variable type of pin to uint32_t
To make vioapic simpler, avoid lots of code to convert variable type
between uint8_t and uint32_t.
This patch changes all variable type of pin related variables to
uint32_t instead of original uint_8.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Antho... |
528,647 | 31.07.2018 14:09:41 | -28,800 | c663267b0328137cc8becfd778d3df692ce36732 | hv: timer: request timer irq once only
Since global vector table is being used on all pcpus, it's not necessary to request timer irq
at each cpu init. With this change, per_cpu timer nodes are removed, and only BSP registers
and unregisters timer irq.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/timer.c",
"new_path": "hypervisor/arch/x86/timer.c",
"diff": "#define MIN_TIMER_PERIOD_US 500U\nuint32_t tsc_khz = 0U;\n-\n+static struct dev_handler_node *timer_node;\nstatic void run_timer(struct hv_timer *timer)\n{\n/* deadline = 0 means... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: timer: request timer irq once only
Since global vector table is being used on all pcpus, it's not necessary to request timer irq
at each cpu init. With this change, per_cpu timer nodes are removed, and only BSP registers
and unregisters timer irq.
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Eddie Dong... |
528,675 | 02.08.2018 00:45:42 | -28,800 | 72f9c9a26ed107d07d50637b9f0c036281b29ee7 | pm: use cpu_context for s3 save/restore
use structure cpu_context and update offsets in wakeup.S | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/pm.c",
"new_path": "hypervisor/arch/x86/pm.c",
"diff": "#include <hypervisor.h>\n#include <reloc.h>\n-struct run_context cpu_ctx;\n+struct cpu_context cpu_ctx;\n/* whether the host enter s3 success */\nuint8_t host_enter_s3_success = 1U;\n"... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | pm: use cpu_context for s3 save/restore
use structure cpu_context and update offsets in wakeup.S
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 29.07.2018 18:17:01 | -28,800 | 63ef1236decada0ad05b5c3bef1cee9454b221bf | move global x2apic_enabled into arch dir
the x2apic_enabled should be x86 specific field.
Acked-by: Xu, Anthony | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -27,6 +27,9 @@ volatile uint16_t up_count = 0U;\n/* physical cpu active bitmap, support up to 64 cpus */\nuint64_t pcpu_active_bitmap = 0UL;\n+/* X2APIC mode is disabled by defaul... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | move global x2apic_enabled into arch dir
the x2apic_enabled should be x86 specific field.
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com> |
528,783 | 06.08.2018 16:58:38 | -28,800 | 7109ab45a66390396a170b0d1973a0c855a028e8 | hv:removed assert in free_ept_mem
Removed assert since the caller has checked the parameter. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ept.c",
"new_path": "hypervisor/arch/x86/ept.c",
"diff": "@@ -43,6 +43,9 @@ static uint64_t find_next_table(uint32_t table_offset, void *table_base)\nreturn sub_table_addr;\n}\n+/**\n+ * @pre pml4_addr != NULL\n+ */\nstatic void free_ept_me... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv:removed assert in free_ept_mem
Removed assert since the caller has checked the parameter.
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> |
528,679 | 25.07.2018 13:37:47 | -28,800 | cebc8d9a01b007984805dce1a6c2d6482339e2a1 | DM USB: xHCI: Refine drd code to fix a potential NULL pointer issue.
Refine DM DRD code and modify some logical judgement to avoid
potential NULL pointer issue.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -3504,6 +3504,16 @@ pci_xhci_parse_extcap(struct pci_xhci_vdev *xdev, char *opts)\n} else\nrc = -2;\n+ if (((struct pci_xhci_excap *)(xdev->excap_ptr))->start\n+ == EXCAP_GROUP_EN... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: xHCI: Refine drd code to fix a potential NULL pointer issue.
Refine DM DRD code and modify some logical judgement to avoid
potential NULL pointer issue.
Signed-off-by: Liang Yang <liang3.yang@intel.com>
Reviewed-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Acked-by: Y... |
528,665 | 02.08.2018 14:42:43 | -28,800 | 820b5e4965732e91a161a001a80990cb4682253e | HV: instr_emul: Remove dead code
This patch just removes some dead codes related to Instruction Emulation.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -181,8 +181,6 @@ static const struct instr_emul_vie_op one_byte_opcodes[256] = {\n#define VIE_RM_SIB 4U\n#define VIE_RM_DISP32 5U\n-#define GB (1024 * 10... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: instr_emul: Remove dead code
This patch just removes some dead codes related to Instruction Emulation.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,763 | 07.08.2018 09:36:20 | -28,800 | e625bd79ce79af7fa709b49a5dd34146df246c7b | HV: vmx code clean up
Remove uncessary variables and function parameter
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx.c",
"new_path": "hypervisor/arch/x86/vmx.c",
"diff": "@@ -486,7 +486,7 @@ int vmx_write_cr0(struct vcpu *vcpu, uint64_t cr0)\nreturn 0;\n}\n-static bool is_cr4_write_valid(struct vcpu *vcpu, uint64_t cr4)\n+static bool is_cr4_write_vali... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: vmx code clean up
Remove uncessary variables and function parameter
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,665 | 06.08.2018 12:00:04 | -28,800 | 12726dbfc9b61dc69ede2a3e48584179f2882278 | HV: instr_emul: Make vie_read/write_bytereg as non-failed function
vie_read/write_bytereg call vm_get/set_register to get/set byteregs.
We have make vm_get/set_register as non-failed function in previous patch.
So, this patch make the vie_read/write_bytereg as non-failed function too.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -597,11 +597,11 @@ static void vie_calc_bytereg(struct instr_emul_vie *vie,\n}\n}\n-static int vie_read_bytereg(struct vcpu *vcpu, struct instr_emul_vie ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: instr_emul: Make vie_read/write_bytereg as non-failed function
vie_read/write_bytereg call vm_get/set_register to get/set byteregs.
We have make vm_get/set_register as non-failed function in previous patch.
So, this patch make the vie_read/write_bytereg as non-failed function too.
Signed-off-by: Kaige Fu <kaige.... |
528,665 | 06.08.2018 12:15:45 | -28,800 | b78aa347e039446244570a4dcb77207bcc240252 | HV: instr_emul: Make vm_update_register/rflags as void
vm_update_register calls vm_get/set_register to update register and vm_update_rflags
calls vm_update_register to update RFLAGS.
We have make vm_get/set_register as non-failed function in previous patch.
So, this patch make the vm_update_register/rflags as void.
Ack... | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -644,10 +644,15 @@ static void vie_write_bytereg(struct vcpu *vcpu, struct instr_emul_vie *vie,\nvm_set_register(vcpu, reg, val);\n}\n-static int vie_upd... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: instr_emul: Make vm_update_register/rflags as void
vm_update_register calls vm_get/set_register to update register and vm_update_rflags
calls vm_update_register to update RFLAGS.
We have make vm_get/set_register as non-failed function in previous patch.
So, this patch make the vm_update_register/rflags as void.
... |
528,675 | 04.08.2018 19:11:49 | -28,800 | b1612e30720ad738175ac91b18b1d99b4aac5260 | add cpu_do_idle to handle idle
add wrap function cpu_do_idle in default_idle to handle arch cpu specific
idle operation.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -748,6 +748,11 @@ void stop_cpus()\n}\n}\n+void cpu_do_idle(__unused uint16_t pcpu_id)\n+{\n+ __asm __volatile(\"pause\" ::: \"memory\");\n+}\n+\nvoid cpu_dead(uint16_t pcpu_id)\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | add cpu_do_idle to handle idle
add wrap function cpu_do_idle in default_idle to handle arch cpu specific
idle operation.
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,801 | 08.08.2018 10:32:09 | -28,800 | 4106fadeb36b047db761f875c78e3b864c1bedef | hv: treewide: fix 'Switch empty default has no comment'
This patch add some comments after the default and before the break
in the switch statement based on MISRA-C requirement. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/assign.c",
"new_path": "hypervisor/arch/x86/assign.c",
"diff": "@@ -525,6 +525,11 @@ static void ptdev_intr_handle_irq(struct vm *vm,\nbreak;\n}\ndefault:\n+ /*\n+ * In this switch statement, intx->vpin_src shall either be\n+ * PTDEV_VPIN_I... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: treewide: fix 'Switch empty default has no comment'
This patch add some comments after the default and before the break
in the switch statement based on MISRA-C requirement.
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com> |
528,689 | 07.08.2018 15:34:11 | -28,800 | 8af90e0154024852e366e6d7927051f463a9ba83 | misc: Remove unnecessary ExecStop in systemd services
From systemd documentation:
> If this option is not specified, the process is terminated by sending the signal specified in KillSignal= when service stop is requested.
> Defaults to SIGTERM. | [
{
"change_type": "MODIFY",
"old_path": "misc/cbc_lifecycle/cbc_lifecycle.service",
"new_path": "misc/cbc_lifecycle/cbc_lifecycle.service",
"diff": "@@ -5,7 +5,6 @@ Description=CBC lifecycle service\nType=simple\nExecStart=/usr/bin/cbc_lifecycle\nRestart=no\n-ExecStop=/usr/bin/killall -s TERM cbc_lif... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | misc: Remove unnecessary ExecStop in systemd services
From systemd documentation: https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=
> If this option is not specified, the process is terminated by sending the signal specified in KillSignal= when service stop is requested.
https://www.free... |
528,747 | 01.08.2018 10:56:12 | 25,200 | 4753da4374d3426a4a3c4ea3317d767d6df965b5 | doc: add interrupt high-level design doc
Transcode, review, and publish interrupt high-level design document. | [
{
"change_type": "ADD",
"old_path": "doc/developer-guides/images/interrupt-image2.png",
"new_path": "doc/developer-guides/images/interrupt-image2.png",
"diff": "Binary files /dev/null and b/doc/developer-guides/images/interrupt-image2.png differ\n"
},
{
"change_type": "ADD",
"old_path": ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: add interrupt high-level design doc
Transcode, review, and publish interrupt high-level design document.
Signed-off-by: David B. Kinder <david.b.kinder@intel.com> |
528,733 | 07.08.2018 11:36:06 | -28,800 | 63fe48c27f747a946f953b02ac38bec79c5c3ffe | hv: get correct fault address for copy_to/from_gva
When doing copy_to/from_gva, it's possible the guest no page
happens on none-first page. In this case, we need get correct
fault address from gva2gpa.
Acked-by: Anthony Xu
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -375,7 +375,8 @@ static inline int copy_gpa(struct vm *vm, void *h_ptr_arg, uint64_t gpa_arg,\n}\nstatic inline int copy_gva(struct vcpu *vcpu, void *h_ptr_arg, ui... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: get correct fault address for copy_to/from_gva
When doing copy_to/from_gva, it's possible the guest no page
happens on none-first page. In this case, we need get correct
fault address from gva2gpa.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: An... |
528,733 | 07.08.2018 16:25:13 | -28,800 | 96e99e3a720d7a527dc365b90d8a2087c41390ce | hv: use more reliable method to get guest DPL.
The DPL from SS access right field is always correct according
to SDM. We use it instead of using CS selector.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -284,7 +284,16 @@ int gva2gpa(struct vcpu *vcpu, uint64_t gva, uint64_t *gpa,\npw_info.level = pm;\npw_info.is_write_access = ((*err_code & PAGE_FAULT_WR_FLAG) != ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: use more reliable method to get guest DPL.
The DPL from SS access right field is always correct according
to SDM. We use it instead of using CS selector.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 07.08.2018 17:30:21 | -28,800 | 1a00d6c9430022d51fe0756551d1c158e4e80d7e | hv: add more exception injection API
TO inject the
- Invalid Opcode exception
- Stack Fault exception
- Alignment Check exception
to guest.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -282,22 +282,26 @@ static int vcpu_inject_lo_exception(struct vcpu *vcpu)\nreturn 0;\n}\n+/* Inject external interrupt to guest */\nvoid vcpu_inject_extint(struct vcpu *vcpu)\n{... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: add more exception injection API
TO inject the
- Invalid Opcode exception
- Stack Fault exception
- Alignment Check exception
to guest.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,733 | 07.08.2018 20:43:10 | -28,800 | 10f0bb012a4c6f002a774196bf976889050a3564 | hv: remove push/pop instruction emulation.
It's not reasonable to use push/pop against mmio. So we remove
the push/pop emulation.
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": "@@ -161,14 +161,6 @@ static const struct instr_emul_vie_op one_byte_opcodes[256] = {\n[0x09] = {\n.op_type = VIE_OP_TYPE_OR,\n},\n- [0x8F] = {\n- /* XXX Gro... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: remove push/pop instruction emulation.
It's not reasonable to use push/pop against mmio. So we remove
the push/pop emulation.
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,646 | 01.08.2018 15:29:51 | -28,800 | 5e32c0227f47fdc78f067a292ac7cfb815daff75 | tools:acrn-crashlog: Enhance some functions
The changes include:
1. modify the outparam only in successful cases.
2. return -1 instead of a errno-style value if error happens.
3. check return value of strrchr.
Acked-by: Chen Gang | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-crashlog/acrnprobe/sender.c",
"new_path": "tools/acrn-crashlog/acrnprobe/sender.c",
"diff": "@@ -224,8 +224,7 @@ static void telemd_get_log(struct log_t *log, void *data)\ncount = ac_scandir(d->srcdir, &filelist, filter_filename_substr,\nlog->name, ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools:acrn-crashlog: Enhance some functions
The changes include:
1. modify the outparam only in successful cases.
2. return -1 instead of a errno-style value if error happens.
3. check return value of strrchr.
Tracked-On: #971
Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.co... |
528,786 | 30.07.2018 10:09:48 | -28,800 | 9ba14dac31a29b2c4ccd77bb5611ae865a802838 | HV: trusty: remove unused HC ID
The security information will not pass to HV through Hypercall,
so remove the unused HC_GET_SEC_INFO.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/include/public/acrn_hv_defs.h",
"new_path": "hypervisor/include/public/acrn_hv_defs.h",
"diff": "#define HC_ID_TRUSTY_BASE 0x70UL\n#define HC_INITIALIZE_TRUSTY BASE_HC_ID(HC_ID, HC_ID_TRUSTY_BASE + 0x00UL)\n#define HC_WORLD_SWITCH BASE_HC_ID(HC_ID, ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: trusty: remove unused HC ID
The security information will not pass to HV through Hypercall,
so remove the unused HC_GET_SEC_INFO.
Signed-off-by: Qi Yadong <yadong.qi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,786 | 03.08.2018 09:54:58 | -28,800 | 3225b16e5fe548feca588fc87922623cd1723783 | HV: trusty: log printing cleanup
Replace some pr_err() with dev_dbg().
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "#include <hypervisor.h>\n#include <hkdf.h>\n+#define ACRN_DBG_TRUSTY 6U\n+\n#define TRUSTY_VERSION 1U\n#define TRUSTY_VERSION_2 2U\n@@ -430,7 +432,7 @@ bool initialize_trusty(s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: trusty: log printing cleanup
Replace some pr_err() with dev_dbg().
Signed-off-by: Qi Yadong <yadong.qi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,763 | 07.08.2018 09:41:57 | -28,800 | ac39b905152032a9bed3ebb6eaa3b53bbdc2cbb0 | DM: update GSI sharing info
With latest FW, ethernet/wifi BDF changes from 3:0.0/4:0.0 to
2:0.0/3:0.0.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/platform_gsi_info.c",
"new_path": "devicemodel/hw/pci/platform_gsi_info.c",
"diff": "@@ -27,9 +27,9 @@ struct gsi_dev gsi_dev_mapping_tables[] = {\n{\"00:12.0\", 19},\n{\"00:0f.0\", 20},\n{\"00:1f.1\", 20},\n- {\"03:00.0\", 20},\n+ {\"02:00.... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: update GSI sharing info
With latest FW, ethernet/wifi BDF changes from 3:0.0/4:0.0 to
2:0.0/3:0.0.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,731 | 28.07.2018 22:22:35 | -28,800 | 43db87cfedcc0b34a49a07852558fb14378ac691 | hv: rename acrn_efi.h to vm0_boot.h
The structures defined in acrn_efi.h is x86 related, move it
to acrh/x86/guest/.
Also, the headfile will be used on both SBL & UEFI platforms,
rename it to vm0_boot.h
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "#include <schedule.h>\n#ifdef CONFIG_EFI_STUB\n-#include <acrn_efi.h>\n+#include <vm0_boot.h>\nextern struct efi_ctx* efi_ctx;\n#endif\n"
},
{
"change_type": "M... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: rename acrn_efi.h to vm0_boot.h
The structures defined in acrn_efi.h is x86 related, move it
to acrh/x86/guest/.
Also, the headfile will be used on both SBL & UEFI platforms,
rename it to vm0_boot.h
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,731 | 07.08.2018 18:56:07 | -28,800 | 4acce9338a2e9d6d59111b13b481444dded55800 | hv: move save_segment/load_segment to a header file
save_segment/load_segment is common code and can be used outside of trusty,
move to a header file.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/trusty.c",
"new_path": "hypervisor/arch/x86/trusty.c",
"diff": "@@ -35,21 +35,6 @@ static struct trusty_key_info g_key_info = {\n.platform = 3U,\n.num_seeds = 1U\n};\n-#define save_segment(seg, SEG_NAME) \\\n-{ \\\n- seg.selector = exec_vmr... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move save_segment/load_segment to a header file
save_segment/load_segment is common code and can be used outside of trusty,
move to a header file.
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,731 | 03.08.2018 11:44:20 | -28,800 | 2b22e88b5135b7446c8b7d9ce8701eaf34fdedcb | hv: init: rm the code of creating guest init page table
If SOS start from 64bit mode, it will use the page table
created by bootloader or BIOS. HV doesn't need to create
page table for it.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -707,136 +707,6 @@ uint64_t e820_alloc_low_memory(uint32_t size_arg)\nreturn ACRN_INVALID_HPA;\n}\n-#ifdef CONFIG_START_VM0_BSP_64BIT\n-/**************************... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: init: rm the code of creating guest init page table
If SOS start from 64bit mode, it will use the page table
created by bootloader or BIOS. HV doesn't need to create
page table for it.
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.d... |
528,799 | 07.08.2018 18:07:03 | 25,200 | 65bd03865010c4fc6a1903ee13ec8a5504e6dcf7 | HV: Compiling in VCPI code for partition hypervisor
V3:
Compiling in VCPI code for partition hypervisor
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -95,7 +95,9 @@ INCLUDE_PATH += include/arch/x86\nINCLUDE_PATH += include/arch/x86/guest\nINCLUDE_PATH += include/debug\nINCLUDE_PATH += include/public\n-INCLUDE_PATH += include/common\n+ifeq ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Compiling in VCPI code for partition hypervisor
V3:
- Compiling in VCPI code for partition hypervisor
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> |
528,799 | 07.08.2018 18:58:31 | 25,200 | 183ca5d1756bc14d970fb46c6c1d127ad59bdfba | HV: Adding hostbridge vdev device support for partition hypervisor
V4:
- Moved error checking to vdev_hostbridge_cfgwrite/vdev_hostbridge_cfgread
V3:
- Unified ops calling and implemented deinit/cfgwrite/cfgread ops,
previously only init op is implemented
Acked-by: Anthony Xu | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "hypervisor/dm/vpci/hostbridge.c",
"diff": "+/*-\n+* Copyright (c) 2011 NetApp, Inc.\n+* Copyright (c) 2018 Intel Corporation\n+* All rights reserved.\n+*\n+* Redistribution and use in source and binary forms, with or without\n+* modification, ar... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Adding hostbridge vdev device support for partition hypervisor
V4:
- Moved error checking to vdev_hostbridge_cfgwrite/vdev_hostbridge_cfgread
V3:
- Unified ops calling and implemented deinit/cfgwrite/cfgread ops,
previously only init op is implemented
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
Acked-... |
528,706 | 09.08.2018 05:25:56 | 0 | a2b299179dca87c66e11238b53500b6e8c55729e | doc: update virtio-blk usage in HLD
Add parameters introduction for virtio-blk | [
{
"change_type": "MODIFY",
"old_path": "doc/developer-guides/virtio-hld.rst",
"new_path": "doc/developer-guides/virtio-hld.rst",
"diff": "@@ -530,7 +530,25 @@ VTBLK_F_TOPOLOGY(bit 10)\nTo use the virtio-blk device, use the following virtio command::\n- -s <slot>,virtio-blk,<filepath>\n+ -s <slot>,vi... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | doc: update virtio-blk usage in HLD
Add parameters introduction for virtio-blk
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
Reviewed-by: David B. Kinder <david.b.kinder@intel.com> |
528,801 | 10.08.2018 10:32:13 | -28,800 | 98aa74bd6bdef8cb7f35cf82a505c25ce2132fb0 | hv: treewide: fix 'No default case in switch statement'
MISRAC requires that a switch statement shall contain a default clause.
This patch add the default clause and some comments for the ones
violated the rule.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/instr_emul.c",
"new_path": "hypervisor/arch/x86/guest/instr_emul.c",
"diff": "@@ -1893,6 +1893,19 @@ static int decode_sib(struct instr_emul_vie *vie)\ncase VIE_MOD_INDIRECT_DISP32:\nvie->disp_bytes = 4U;\nbreak;\n+ default:\n+ /*\n+ ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: treewide: fix 'No default case in switch statement'
MISRAC requires that a switch statement shall contain a default clause.
This patch add the default clause and some comments for the ones
violated the rule.
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 11.08.2018 01:18:21 | -28,800 | fc2701db45de17929bfd3c0180c5837825befa96 | HV: move vioapic.c & vpic.c to 'dm' folder
- 'hypervisor/dm' holds devices emulation source in hypervisor | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -145,9 +145,7 @@ C_SRCS += arch/x86/guest/vm.c\nC_SRCS += arch/x86/guest/vlapic.c\nC_SRCS += arch/x86/guest/guest.c\nC_SRCS += arch/x86/guest/vmcall.c\n-C_SRCS += arch/x86/guest/vpic.c\nC_SRC... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: move vioapic.c & vpic.c to 'dm' folder
- 'hypervisor/dm' holds devices emulation source in hypervisor
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> |
528,763 | 07.08.2018 18:06:21 | -28,800 | ab2961473fad6fdba90e70c78b9437eb467f3b4b | HV: VMX reshuffle: put EPT check before enabling
Current EPT check runs after EPT enabling in init_exec_ctrl. This
patch fixes wrong order.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -41,6 +41,7 @@ bool x2apic_enabled = false;\nstruct cpu_capability {\nuint8_t vapic_features;\n+ uint8_t ept_features;\n};\nstatic struct cpu_capability cpu_caps;\n@@ -48,7 +49,7 ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: VMX reshuffle: put EPT check before enabling
Current EPT check runs after EPT enabling in init_exec_ctrl. This
patch fixes wrong order.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,804 | 10.08.2018 14:12:16 | -28,800 | 462284fa7d3ab22e9ed0dacc4133352df7fa6262 | HV: add pcpu id check before send IPI
to avoid send IPI to self, also improve the related code:
1. get_cpu_id is uint16_t now
2. MISRA-C requirement. like add {}
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -104,9 +104,10 @@ void vcpu_make_request(struct vcpu *vcpu, uint16_t eventid)\n* scheduling, we need change here to determine it target vcpu is\n* VMX non-root or root mode\n*/\... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: add pcpu id check before send IPI
to avoid send IPI to self, also improve the related code:
1. get_cpu_id is uint16_t now
2. MISRA-C requirement. like add {}
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,661 | 12.08.2018 13:59:24 | -28,800 | f11b2635c5cb080d1bad59c0abc350210abe9a42 | remove 2M hugepages
remove 2M hugepages setting here because it will not use any more.
# make sure there is enough 2M hugepages in the pool
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"new_path": "devicemodel/samples/apl-mrb/launch_uos.sh",
"diff": "@@ -346,9 +346,6 @@ if [ $launch_type == 5 ]; then\nfi\nfi\n-# make sure there is enough 2M hugepages in the pool\n-echo 1024 > /sys/kernel/mm/hugepag... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | remove 2M hugepages
remove 2M hugepages setting here because it will not use any more.
# make sure there is enough 2M hugepages in the pool
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages |
528,731 | 10.08.2018 13:24:33 | -28,800 | a568c9e3f7ce3f1ceb374d309d201dd8fc5ef241 | dm: bios: update vsbl to v0.8.1
Support trusty S3 resume.
New watchdog reset report value.
Increase the limitation of bzImage size. | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/bios/MD5SUM",
"new_path": "devicemodel/bios/MD5SUM",
"diff": "-71b784a06f75243e3367ff8aa2ecc0af VSBL.bin\n-e4a3367268bf89d8a1aa209dd2c6ecb9 VSBL_debug.bin\n+009c557d20afb62c3fc533fbc588da96 VSBL.bin\n+c0c125066e14ecc98d0ac1533155bc15 VSBL_debug.bin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: bios: update vsbl to v0.8.1
Support trusty S3 resume.
New watchdog reset report value.
Increase the limitation of bzImage size.
Signed-off-by: Binbin Wu <binbin.wu@intel.com> |
528,760 | 16.07.2018 13:47:51 | 25,200 | 7a739ccef0db1a860b59dc10d0b9a781e668ae83 | DM: Add dm for IPU mediation
This device model is to configure the virtual IPU PCI device.
In order to execute this DM the lauch script needs to add
virtio-ipu as parameter to acrn-dm
For e.g. -s 21,virtio-ipu | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/Makefile",
"new_path": "devicemodel/Makefile",
"diff": "@@ -89,6 +89,7 @@ SRCS += hw/pci/passthrough.c\nSRCS += hw/pci/virtio/virtio_audio.c\nSRCS += hw/pci/virtio/virtio_net.c\nSRCS += hw/pci/virtio/virtio_rnd.c\n+SRCS += hw/pci/virtio/virtio_ipu.... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: Add dm for IPU mediation
This device model is to configure the virtual IPU PCI device.
In order to execute this DM the lauch script needs to add
virtio-ipu as parameter to acrn-dm
For e.g. -s 21,virtio-ipu
Signed-off-by: Bandi,Kushal <kushal.bandi@intel.com> |
528,680 | 25.07.2018 14:53:43 | 25,200 | 6f1c5fa007de20ac94963a5e6c69499dd719f740 | HV: Logical conjunction needs brackets under /arch/x86/guest
The bracket is required when the level of precedence of
the operators is less than 13. Add the bracket to logical
conjunctions. The commit applys the rule to the files under
hypervisor/arch/x86/guest/*
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/guest.c",
"new_path": "hypervisor/arch/x86/guest/guest.c",
"diff": "@@ -134,7 +134,7 @@ static int local_gva2gpa_common(struct vcpu *vcpu, struct page_walk_info *pw_inf\nif (pw_info->is_write_access && ((entry & MMU_32BIT_PDE_RW) == 0... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Logical conjunction needs brackets under /arch/x86/guest
The bracket is required when the level of precedence of
the operators is less than 13. Add the bracket to logical
conjunctions. The commit applys the rule to the files under
hypervisor/arch/x86/guest/*
Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
Rev... |
528,768 | 13.08.2018 18:56:00 | -28,800 | 28c89230847b6a256b5a3e92362de8a7806bfaee | HV: rename 'shell_internal.h' to 'shell_priv.h'
to align the coding style in hypervisor
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "*/\n#include <hypervisor.h>\n-#include \"shell_internal.h\"\n+#include \"shell_priv.h\"\n#define TEMP_STR_SIZE 60U\n#define MAX_STR_SIZE 256U\n"
},
{
"change_type": "RENAME",
... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: rename 'shell_internal.h' to 'shell_priv.h'
- to align the coding style in hypervisor
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 13.08.2018 19:52:54 | -28,800 | a6bc36f8ed16dedcc89a05627fd9c5c63c071cc0 | HV: refine shell.c & shell_priv.h
move local functions declarations to shell.c
remove 'name' field in 'struct shell' as i/o
session s/w layer is deprecated.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/debug/shell.c",
"new_path": "hypervisor/debug/shell.c",
"diff": "*/\n#define SHELL_INPUT_LINE_OTHER(v) (((v) + 1U) % 2U)\n+static int shell_cmd_help(__unused int argc, __unused char **argv);\n+static int shell_list_vm(__unused int argc, __unused cha... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: refine shell.c & shell_priv.h
- move local functions declarations to shell.c
- remove 'name' field in 'struct shell' as i/o
session s/w layer is deprecated.
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 13.08.2018 21:23:50 | -28,800 | 77011ce60efb802517e833d5011f0de0d0c87995 | HV: Merge hypervisor debug header files
-- merge 'assert.h' & 'printf.h' into 'logmsg.h'
-- merge 'shell.h' into 'console.h'
Acked-by: Eddie Dong | [
{
"change_type": "DELETE",
"old_path": "hypervisor/include/debug/assert.h",
"new_path": null,
"diff": "-/*\n- * Copyright (C) 2018 Intel Corporation. All rights reserved.\n- *\n- * SPDX-License-Identifier: BSD-3-Clause\n- */\n-\n-#ifndef ASSERT_H\n-#define ASSERT_H\n-\n-#ifdef HV_DEBUG\n-void asm_as... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Merge hypervisor debug header files
-- merge 'assert.h' & 'printf.h' into 'logmsg.h'
-- merge 'shell.h' into 'console.h'
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,768 | 14.08.2018 00:46:00 | -28,800 | c55b696a92eb209899778f6a753b43ce9d091dc1 | HV: remove 'warm_reboot()'function and other minor cleanup
- 'reboot.c' defines 'warm_reboot()' only, and this
function is deprecated.
- remove the eXecution attribute of 'mttr.h'
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/Makefile",
"new_path": "hypervisor/Makefile",
"diff": "@@ -149,7 +149,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 += arch/x86/debug/reboot.c\nC... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove 'warm_reboot()'function and other minor cleanup
- 'reboot.c' defines 'warm_reboot()' only, and this
function is deprecated.
- remove the eXecution attribute of 'mttr.h'
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,794 | 13.08.2018 15:44:46 | -28,800 | 76e43ac7cec62bc7fb6bb702fdbee5166eafb55b | HV: handle trusty on vm reset
clear run context when reset vcpu;
destroy trusty without erase trusty memory when reset vm;
changelog:
v1 -> v2: fix misra violation on calling memset();
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vcpu.c",
"new_path": "hypervisor/arch/x86/guest/vcpu.c",
"diff": "@@ -396,6 +396,7 @@ void destroy_vcpu(struct vcpu *vcpu)\n*/\nvoid reset_vcpu(struct vcpu *vcpu)\n{\n+ int i;\nstruct acrn_vlapic *vlapic;\npr_dbg(\"vcpu%hu reset\", vc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: handle trusty on vm reset
- clear run context when reset vcpu;
- destroy trusty without erase trusty memory when reset vm;
changelog:
v1 -> v2: fix misra violation on calling memset();
Signed-off-by: Sun Victor <victor.sun@intel.com>
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Chi Mingqiang... |
528,665 | 09.08.2018 15:37:43 | -28,800 | d5d3d2d2a846b34d496e9537c8c54fa861c53b66 | tools: acrnlog: Add [-t interval] [-h] to usage
This patch add "[-t interval] [-h]" which support by acrnlog now to usage. | [
{
"change_type": "MODIFY",
"old_path": "tools/acrnlog/acrnlog.c",
"new_path": "tools/acrnlog/acrnlog.c",
"diff": "@@ -409,7 +409,7 @@ static const char optString[] = \"s:n:t:h\";\nstatic void display_usage(void)\n{\nprintf(\"acrnlog - tool to collect ACRN hypervisor log\\n\"\n- \"[Usage] acrnlog [-s... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrnlog: Add [-t interval] [-h] to usage
This patch add "[-t interval] [-h]" which support by acrnlog now to usage.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Like Yan <like.yan@intel.com> |
528,780 | 14.08.2018 10:41:25 | -28,800 | 197706ff16b86806689ea1580383e73efdf83cb2 | HV: Use the CPUID(0x16) to obtain tsc_hz when zero tsc_hz is returned by 0x15 cpuid
Sometimes the CPUID(0x15) still returns the zero tsc frequency. In such case
the base frequency of cpuid(0x16) is used as tsc frequency.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/timer.c",
"new_path": "hypervisor/arch/x86/timer.c",
"diff": "@@ -278,10 +278,12 @@ static uint64_t pit_calibrate_tsc(uint32_t cal_ms_arg)\n}\n/*\n- * Determine TSC frequency via CPUID 0x15\n+ * Determine TSC frequency via CPUID 0x15 and 0x... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Use the CPUID(0x16) to obtain tsc_hz when zero tsc_hz is returned by 0x15 cpuid
Sometimes the CPUID(0x15) still returns the zero tsc frequency. In such case
the base frequency of cpuid(0x16) is used as tsc frequency.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,731 | 13.08.2018 00:21:51 | -28,800 | 69522dc86164d73825f1e3b8847450e1ce5fc2dd | hv: move boot_ctx offset definitions
Move the definitions of offset of fields in boot_ctx to the same header
file that the struct boot_ctx is in, to reduce the possibility that some
modification would make the offset inconsistant with the fields within
the structure.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu_save_boot_ctx.S",
"new_path": "hypervisor/arch/x86/cpu_save_boot_ctx.S",
"diff": "* SPDX-License-Identifier: BSD-3-Clause\n*/\n-#define BOOT_CTX_CR0_OFFSET 0\n-#define BOOT_CTX_CR3_OFFSET 8\n-#define BOOT_CTX_CR4_OFFSET 16\n-#define BOO... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: move boot_ctx offset definitions
Move the definitions of offset of fields in boot_ctx to the same header
file that the struct boot_ctx is in, to reduce the possibility that some
modification would make the offset inconsistant with the fields within
the structure.
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Ack... |
528,772 | 10.08.2018 18:31:55 | -28,800 | 2d802d0afefd32fc6f1862cb5b2e33949a182c11 | tools: vm_resume() requires wakeup reason
DM need to know wakeup reason when resume the VM, so
vm_resume(char *name) is updated to vm_resume(char *name, unsigned reason),
in acrn_vm_ops.c
Acked-by: Yan Like | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrn_mngr.h",
"new_path": "tools/acrn-manager/acrn_mngr.h",
"diff": "@@ -27,7 +27,7 @@ struct mngr_msg {\nint err;\n/* ack of WAKEUP_REASON */\n- int reason;\n+ unsigned reason;\n/* ack of DM_QUERY */\nint state;\n"
},
{
"change_type... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: vm_resume() requires wakeup reason
DM need to know wakeup reason when resume the VM, so
vm_resume(char *name) is updated to vm_resume(char *name, unsigned reason),
in acrn_vm_ops.c
Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,772 | 13.08.2018 19:00:31 | -28,800 | a86a25f36985eb771fcff7cff0e43d2b18f75494 | tools: acrnd: Fixed get_sos_wakeup_reason()
get_sos_wakeup_reason() runs into error branch without any error, so
no wakeup reason will be returend.
Acked-by: Yan Like | [
{
"change_type": "MODIFY",
"old_path": "tools/acrn-manager/acrnd.c",
"new_path": "tools/acrn-manager/acrnd.c",
"diff": "@@ -284,7 +284,7 @@ unsigned get_sos_wakeup_reason(void)\nreq.msgid = WAKEUP_REASON;\nreq.timestamp = time(NULL);\n- if (mngr_send_msg(client_fd, &req, &ack, DEFAULT_TIMEOUT))\n+ i... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | tools: acrnd: Fixed get_sos_wakeup_reason()
get_sos_wakeup_reason() runs into error branch without any error, so
no wakeup reason will be returend.
Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,772 | 13.08.2018 19:12:47 | -28,800 | b0861621d94249785f0d1218415e02a916628386 | dm: monotor: bugfix: update wakeup reason before call recume() callback
In handle_resume(), wakeup_reason is updated before call
ops->ops->resume(). Because ops->ops->resume() needs to know the
latest wakeup reason.
Acked-by: Yan Like | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/core/monitor.c",
"new_path": "devicemodel/core/monitor.c",
"diff": "@@ -168,6 +168,8 @@ static void handle_resume(struct mngr_msg *msg, int client_fd, void *param)\nack.msgid = msg->msgid;\nack.timestamp = msg->timestamp;\n+ wakeup_reason = msg->da... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | dm: monotor: bugfix: update wakeup reason before call recume() callback
In handle_resume(), wakeup_reason is updated before call
ops->ops->resume(). Because ops->ops->resume() needs to know the
latest wakeup reason.
Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> |
528,665 | 13.08.2018 13:20:24 | -28,800 | b5a233da9fa0c9c8170bf287ef2758108d15ad40 | HV: Enclose debug specific code with #ifdef HV_DEBUG
Thare some debug specific code which don't run on release version, such as vmexit_time,
vmexit_cnt, sbuf related codes, etc...
This patch encloses the codes with #ifdef HV_DEBUG.
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vmcall.c",
"new_path": "hypervisor/arch/x86/guest/vmcall.c",
"diff": "@@ -155,9 +155,11 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)\nret = hcall_reset_ptdev_intr_info(vm, (uint16_t)param1, param2);\nbreak;\n+#ifdef HV_DEBUG\ncase ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: Enclose debug specific code with #ifdef HV_DEBUG
Thare some debug specific code which don't run on release version, such as vmexit_time,
vmexit_cnt, sbuf related codes, etc...
This patch encloses the codes with #ifdef HV_DEBUG.
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.c... |
528,659 | 08.08.2018 23:58:57 | -28,800 | 363b4da4dfcd2661ae3341b1340607e8ccabfc5b | DM USB: xHCI: refine xHCI PORTSC Register related functions
PORTSC (Port Status and Control Register) register play a very
important role in USB sub-system. This patch is used to refine
related manipulation functions.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -440,10 +440,13 @@ static void pci_xhci_update_ep_ring(struct pci_xhci_vdev *xdev,\nuint32_t streamid, uint64_t ringaddr,\nint ccs);\nstatic void pci_xhci_init_port(struct pci_xhc... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: xHCI: refine xHCI PORTSC Register related functions
PORTSC (Port Status and Control Register) register play a very
important role in USB sub-system. This patch is used to refine
related manipulation functions.
Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
Reviewed-by: Liang Yang <liang3.yang@intel.com>... |
528,659 | 13.08.2018 08:10:27 | -28,800 | 2abec44e159b4336dc847ab04e3a49267228a12a | DM USB: introduce struct usb_native_devinfo
Current design cannot get physical USB device information without
the creation of pci_xhci_dev_emu. This brings some difficulties in
certain situations, hence struct usb_native_devinfo is introduced
to describe neccessary information to solve this trouble.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -469,22 +469,21 @@ pci_xhci_native_usb_dev_conn_cb(void *hci_data, void *dev_data)\nstruct pci_xhci_dev_emu *de;\nstruct pci_xhci_vdev *xdev;\nstruct usb_devemu *ue;\n+ struct usb... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: introduce struct usb_native_devinfo
Current design cannot get physical USB device information without
the creation of pci_xhci_dev_emu. This brings some difficulties in
certain situations, hence struct usb_native_devinfo is introduced
to describe neccessary information to solve this trouble.
Signed-off-by: Xi... |
528,659 | 14.08.2018 17:02:09 | -28,800 | b359dc361a27f36d878514afe3763d700c1ce76d | DM USB: xHCI: code cleanup: change variable name
Replace 'native_assign_ports' with 'port_map_tbl' to be more accurate
for the role of this variable plays.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "@@ -373,7 +373,7 @@ struct pci_xhci_vdev {\nint (*excap_write)(struct pci_xhci_vdev *, uint64_t, uint64_t);\nint usb2_port_start;\nint usb3_port_start;\n- uint8_t native_assign_ports... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: xHCI: code cleanup: change variable name
Replace 'native_assign_ports' with 'port_map_tbl' to be more accurate
for the role of this variable plays.
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,659 | 13.08.2018 10:33:18 | -28,800 | 0292e14ff90d7ed0ef80bd25f94420433246fdb0 | DM USB: xHCI: enable xHCI SOS S3 support
This patch enable the support for SOS S3 from the perspective
of USB xHCI.
Acked-by: Yu Wang | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/xhci.c",
"new_path": "devicemodel/hw/pci/xhci.c",
"diff": "#include \"pci_core.h\"\n#include \"xhci.h\"\n#include \"usb_pmapper.h\"\n+#include \"vmmapi.h\"\n#undef LOG_TAG\n#define LOG_TAG \"xHCI: \"\n@@ -485,6 +486,7 @@ pci_xhci_native_usb_... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM USB: xHCI: enable xHCI SOS S3 support
This patch enable the support for SOS S3 from the perspective
of USB xHCI.
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,675 | 12.08.2018 20:40:31 | -28,800 | 49d34468612ed872d302f065937ae055f23db6e5 | lapic: add send_dest_ipi function
send_dest_ipi is trying to send ipi to dest with a group. | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/lapic.c",
"new_path": "hypervisor/arch/x86/lapic.c",
"diff": "@@ -416,18 +416,18 @@ send_startup_ipi(enum intr_cpu_startup_shorthand cpu_startup_shorthand,\nreturn status;\n}\n-void send_single_ipi(uint16_t pcpu_id, uint32_t vector)\n+/* de... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | lapic: add send_dest_ipi function
send_dest_ipi is trying to send ipi to dest with a group.
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,675 | 12.08.2018 20:56:30 | -28,800 | 8ef072165fa64ced0c233dcbcc5059c0bb293e31 | idle: enable IRQ in default idle
we should let cpu handle IRQ during idle | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/common/schedule.c",
"new_path": "hypervisor/common/schedule.c",
"diff": "@@ -176,8 +176,11 @@ void default_idle(void)\nschedule();\n} else if (need_offline(pcpu_id) != 0) {\ncpu_dead(pcpu_id);\n- } else\n+ } else {\n+ CPU_IRQ_ENABLE();\ncpu_do_idle(... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | idle: enable IRQ in default idle
we should let cpu handle IRQ during idle
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,794 | 14.08.2018 16:33:20 | -28,800 | bb5377b3543ddeca8f29c2e2fd8715f006fe36c6 | HV: change wake vector info to accommodate ww32 sbl
The wake vector address in SBL ACPI table was changed since ww30,
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,7 @@ const struct acpi_info host_acpi_info = {\n.val_pm1b = 0U,\n.reserved = 0U\n},\n- .wake_vector_32 = (uint32_t *)0x7A86BC9CUL,\n- .wake_v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: change wake vector info to accommodate ww32 sbl
The wake vector address in SBL ACPI table was changed since ww30,
so change platform acpi info accordingly to support system S3.
Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,661 | 15.08.2018 14:12:42 | -28,800 | cad8492a12b052e393730fec86bba9619da6c081 | enable weston to fix:
add user and enable weston service to fix issue: | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -231,6 +231,21 @@ partition. Follow these steps:\n# clr-boot-manager set-timeout 20\n# clr-boot-manager update\n+#. Add new user\n+\n+ .. code-block:: console\n+\n+ # ... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | enable weston to fix: #663
add user and enable weston service to fix issue: #663 |
528,754 | 15.08.2018 01:04:21 | 14,400 | 932bc32dccc91fcc1f27601c28b63a36c20aa39d | DM: virtio rpmb backend driver updates
RPMB frontend driver in UOS kernel has fixed unstable issue,
which requires BE for update as well. E.g. structure adjustment,
definition modification and so on.
Acked-by: Zhu Bing | [
{
"change_type": "MODIFY",
"old_path": "devicemodel/hw/pci/virtio/virtio_rpmb.c",
"new_path": "devicemodel/hw/pci/virtio/virtio_rpmb.c",
"diff": "#include \"rpmb_backend.h\"\n#define VIRTIO_RPMB_RINGSZ 64\n+#define VIRTIO_RPMB_MAXSEGS 5\n#define ADDR_NOT_PRESENT -2\nstatic int virtio_rpmb_debug = 1;... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | DM: virtio rpmb backend driver updates
RPMB frontend driver in UOS kernel has fixed unstable issue,
which requires BE for update as well. E.g. structure adjustment,
definition modification and so on.
Signed-off-by: Deng Wei <wei.a.deng@intel.com>
Signed-off-by: Huang Yang <yang.huang@intel.com>
Acked-by: Zhu Bing <bi... |
528,768 | 15.08.2018 21:01:21 | -28,800 | d030595194d3e4994abc967f54c4291c7f713721 | HV: remove 'spinlock_rfags' declaration
- remove the global declaration of 'cpu_int_value'
Acked-by: Eddie Dong | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/ioapic.c",
"new_path": "hypervisor/arch/x86/ioapic.c",
"diff": "@@ -93,17 +93,16 @@ static inline uint32_t\nioapic_read_reg32(const void *ioapic_base, const uint32_t offset)\n{\nuint32_t v;\n+ uint64_t rflags;\n- spinlock_rflags;\n-\n- spin... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | HV: remove 'spinlock_rfags' declaration
- remove the global declaration of 'cpu_int_value'
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com> |
528,675 | 16.08.2018 14:56:25 | -28,800 | c234acb3387640afa3a2ad10be20279a42555b34 | fix spec_ctrl msr save/restore
the CPU_CONTEXT_OFFSET_IA32_SPEC_CTRL is 168U which should be 0xa8
instead of 0xa0 | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/vmx_asm.S",
"new_path": "hypervisor/arch/x86/vmx_asm.S",
"diff": "@@ -59,8 +59,8 @@ vmx_vmrun:\n/* 0x00000048 = MSR_IA32_SPEC_CTRL */\nmovl $0x00000048,%ecx\n- /*0xa0=168U=CPU_CONTEXT_OFFSET_IA32_SPEC_CTRL*/\n- mov 0xa0(%rdi),%rax\n+ /*0xa8... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | fix spec_ctrl msr save/restore
the CPU_CONTEXT_OFFSET_IA32_SPEC_CTRL is 168U which should be 0xa8
instead of 0xa0
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> |
528,661 | 16.08.2018 18:40:30 | -28,800 | 8ff0efc5da5aaef9b9bc2321664e359ec2865b04 | update user name cl_sos
verified again, with user name cl-sos. it doesn't work to fix
but cl_sos is working, so update the user name to cl_sos. that means
clear has naming rules for user name | [
{
"change_type": "MODIFY",
"old_path": "doc/getting-started/apl-nuc.rst",
"new_path": "doc/getting-started/apl-nuc.rst",
"diff": "@@ -235,16 +235,16 @@ partition. Follow these steps:\n.. code-block:: console\n- # useradd cl-sos\n- # passwd cl-sos\n- # usermod -G wheel -a cl-sos\n+ # useradd cl_sos\n... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | update user name cl_sos
verified again, with user name cl-sos. it doesn't work to fix #663
but cl_sos is working, so update the user name to cl_sos. that means
clear has naming rules for user name |
528,777 | 14.08.2018 14:34:32 | 0 | 8d383185ec491b6188eb749a03fc9c6da9357392 | hv: virq: disable interrupt-window exiting in vmexit handler
In interrupt-window exiting handler, disable it directly even there has
pending interrupts. The later acrn_handle_pending_request will
re-evaluation and re-enable it if needed.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/virq.c",
"new_path": "hypervisor/arch/x86/virq.c",
"diff": "@@ -337,22 +337,13 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu)\nTRACE_2L(TRACE_VMEXIT_INTERRUPT_WINDOW, 0UL, 0UL);\n- if (vcpu == NULL)\n- return -1;\n-\n- if (vcpu_p... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: virq: disable interrupt-window exiting in vmexit handler
In interrupt-window exiting handler, disable it directly even there has
pending interrupts. The later acrn_handle_pending_request will
re-evaluation and re-enable it if needed.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@int... |
528,777 | 15.08.2018 00:58:18 | 0 | 93f91268c95a33dce4f7eae2de941f98a4f387b8 | hv: apicv: remove x2apic related code
Currently, ACRN hasn't expose x2apic capability through cpuid.
And x2apic related code in vlapic.c has no real functionality. This
patch clear related code.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1319,24 +1319,13 @@ vlapic_svr_write_handler(struct acrn_vlapic *vlapic)\n}\nstatic int\n-vlapic_read(struct acrn_vlapic *vlapic, int mmio_access, uint32_t offs... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: apicv: remove x2apic related code
Currently, ACRN hasn't expose x2apic capability through cpuid.
And x2apic related code in vlapic.c has no real functionality. This
patch clear related code.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 15.08.2018 01:13:21 | 0 | 604b5a454b13e29c68bce829805763e4ce5ad97d | hv: apicv: remove APIC_OFFSET_SELF_IPI(0x3F0) register
From SDM Vol3 Table 10-1 Local APIC Register Address Map. The 0x3F0 is
reserved.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1431,12 +1431,6 @@ vlapic_read(struct acrn_vlapic *vlapic, uint32_t offset_arg,\ncase APIC_OFFSET_TIMER_DCR:\n*data = lapic->dcr_timer;\nbreak;\n- case APIC_OFF... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: apicv: remove APIC_OFFSET_SELF_IPI(0x3F0) register
From SDM Vol3 Table 10-1 Local APIC Register Address Map. The 0x3F0 is
reserved.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 15.08.2018 01:17:02 | 0 | 39b4fecab9f102db4de4c3e9823be913576bc11a | hv: apicv: explicit log for SMI IPI unsupported
ACRN currently do not support SMM and SMI. Print one explicit warning
for it.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -1194,6 +1194,8 @@ vlapic_icrlo_write_handler(struct acrn_vlapic *vlapic)\ntarget_vcpu->vcpu_id,\ntarget_vcpu->vm->vm_id);\nschedule_vcpu(target_vcpu);\n+ } else... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: apicv: explicit log for SMI IPI unsupported
ACRN currently do not support SMM and SMI. Print one explicit warning
for it.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,777 | 15.08.2018 14:02:38 | 0 | e280d9569afd0015a87885c4d2ee812d5df2727c | hv: vmx_vapic: fix two build warnings
vlapic_vmx_vapic_set_tmr is nobody use now, remove it first to avoid
build warning.
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/guest/vlapic.c",
"new_path": "hypervisor/arch/x86/guest/vlapic.c",
"diff": "@@ -425,8 +425,6 @@ static void vlapic_set_tsc_deadline_msr(struct acrn_vlapic *vlapic,\ndel_timer(timer);\nif (val != 0UL) {\n- struct vcpu_arch *arch = &vlapic->v... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: vmx_vapic: fix two build warnings
vlapic_vmx_vapic_set_tmr is nobody use now, remove it first to avoid
build warning.
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
528,783 | 16.08.2018 10:31:56 | -28,800 | bdcc3aef227ef767ec7508a58e306fc42995d69a | hv: fixed compiling warning
removed some unnecessary variables and functions.
v1-->v2:
Replace div-by-zero with an inline ASM code
Acked-by: Anthony Xu | [
{
"change_type": "MODIFY",
"old_path": "hypervisor/arch/x86/cpu.c",
"new_path": "hypervisor/arch/x86/cpu.c",
"diff": "@@ -54,7 +54,6 @@ static void cpu_xsave_init(void);\nstatic void set_current_cpu_id(uint16_t pcpu_id);\nstatic void print_hv_banner(void);\nstatic uint16_t get_cpu_id_from_lapic_id(u... | C | BSD 3-Clause New or Revised License | projectacrn/acrn-hypervisor | hv: fixed compiling warning
removed some unnecessary variables and functions.
v1-->v2:
Replace div-by-zero with an inline ASM code
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.