author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
528,713
29.03.2018 10:22:04
-28,800
e0128b1173354a5a15c8053c9ac3ac77ae8431ce
UEFI: add FIXME comments to function emalloc() & __emalloc() Add a FIXME comment that the emalloc() & __emalloc cannot guarantee to return address under 4G, and the hypervisor cannot handle params, which address is above 4G, delivered from efi stub.
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/efi/malloc.c", "new_path": "hypervisor/bsp/uefi/efi/malloc.c", "diff": "@@ -100,6 +100,10 @@ failed:\n* @addr: a pointer to the allocated address on success\n*\n* If we cannot satisfy @align we return 0.\n+ *\n+ * FIXME: This function canno...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
UEFI: add FIXME comments to function emalloc() & __emalloc() Add a FIXME comment that the emalloc() & __emalloc cannot guarantee to return address under 4G, and the hypervisor cannot handle params, which address is above 4G, delivered from efi stub. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,713
30.03.2018 11:44:38
-28,800
7a1842578082b92bc75537f2ce96932c3ee4d572
UEFI: update documentation Add a new document named ACRN_UEFI.txt to direct user how to use the acrn.efi.
[ { "change_type": "ADD", "old_path": null, "new_path": "hypervisor/Documentation/ACRN_UEFI.txt", "diff": "+*******************\n+Usage of acrn.efi\n+*******************\n+\n+Suggest to follow the following step:\n+a. Build out the acrn.efi image with command \"make PLATFORM=uefi\".\n+b. Rename the or...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
UEFI: update documentation Add a new document named ACRN_UEFI.txt to direct user how to use the acrn.efi. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,736
29.03.2018 14:02:45
25,200
80a7dda419e7afccef01c9c82e5bd9560069ce91
Fix compile error caused by missing memcpy function On some toolchain configurations direct struct assignments will default to a memcpy operation which is not present in this environment, so explicitly use the internal memcpy_s function. Signed-of-by: Rusty Lynch
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "#include <acrn_hv_defs.h>\n#include <hv_debug.h>\n#include <hkdf.h>\n+#include \"rtl.h\"\n_Static_assert(NR_WORLD == 2, \"Only 2 Worlds supported!\");\n@@ -294,7 +295,8 @@ stat...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Fix compile error caused by missing memcpy function On some toolchain configurations direct struct assignments will default to a memcpy operation which is not present in this environment, so explicitly use the internal memcpy_s function. Signed-of-by: Rusty Lynch <rusty.lynch@intel.com>
528,783
27.03.2018 11:56:56
-28,800
de5277fb3e0a5818de98804297ad2dd331d913dc
hv: Save secure world memory info into vm instead of vm0 A bugfix for saving secure world memory info. Maybe there are multiple UOS, each VM has its own secure world and normal world, should save memory info into individual VM. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "@@ -152,9 +152,9 @@ void create_secure_world_ept(struct vm *vm, uint64_t gpa,\n/* Backup secure world info, will be used when\n* destroy secure world */\n- vm0->sworld_control....
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Save secure world memory info into vm instead of vm0 A bugfix for saving secure world memory info. Maybe there are multiple UOS, each VM has its own secure world and normal world, should save memory info into individual VM. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@in...
528,722
02.04.2018 10:41:48
-28,800
c730806a3647f3eacd6a8ada4e106647e6b0a0fe
version: v0.1-rc3
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "#\nMAJOR_VERSION=0\nMINOR_VERSION=1\n-RC_VERSION=2\n+RC_VERSION=3\nBASEDIR := $(shell pwd)\nDM_OBJDIR ?= $(CURDIR)/build\n" }, { "change_type": "MODIFY", "old_path": "hypervisor/Ma...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
version: v0.1-rc3 Signed-off-by: Jack Ren <jack.ren@intel.com>
528,647
29.03.2018 14:11:04
-28,800
466eb13054168c90e0d16971a68079f7cbc50baa
DM:tools: add README.rst for acrntrace Acked-by: Eddie Dong
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/tools/acrntrace/README.rst", "diff": "+acrntrace\n+#########\n+\n+DESCRIPTION\n+###########\n+acrntrace: is a tool running on SOS, to capture trace data.\n+scripts directory includes scripts to analyze the trace data.\n+\n+USAGE\n+##...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM:tools: add README.rst for acrntrace Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,647
29.03.2018 16:14:54
-28,800
a1c07bb9b0e436fb009a8c7797c67acb520ed585
DM:tools: add service file for acrnlog acrnlog should run automatically at boot. Acked-by: Eddie Dong
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/tools/acrnlog/acrnlog.service", "diff": "+[Unit]\n+Description=ACRN hypervisor log\n+\n+[Service]\n+Type=simple\n+ExecStart=/usr/bin/acrnlog\n+ExecStop=/usr/bin/killall -s TERM acrnlog\n+\n+[Install]\n+WantedBy=multi-user.target\n+\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM:tools: add service file for acrnlog acrnlog should run automatically at boot. Signed-off-by: Yan, Like <like.yan@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,647
29.03.2018 16:17:45
-28,800
731c0d41f9ceaf8899ede79654ddd0089146956d
DM:tools: add README.rst for acrnlog tool Acked-by: Eddie Dong
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/tools/acrnlog/README.rst", "diff": "+ACRNLOG\n+#######\n+\n+DESCRIPTION\n+###########\n+acrnlog is a userland tool to capture ACRN hypervisor log, it runs as an\n+SOS service at boot. It captures two kinds of logs:\n+ - log of curren...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM:tools: add README.rst for acrnlog tool Signed-off-by: Yan, Like <like.yan@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
02.04.2018 22:22:01
-28,800
f1e801dfeb1a1fca28067f432ee2245c33ef58ba
DM: Add long option to enable trusty The trusty enabled or not will be passed to HV with create vm hypercall. It's passed to vSBL within config page also. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -74,6 +74,7 @@ char *vmname;\nint guest_ncpus;\nchar *guest_uuid_str;\nchar *vsbl_file_name;\n+uint8_t trusty_enabled;\nbool stdio_in_use;\nstatic int guest_vmexit_on_hlt, guest_vmexi...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: Add long option to enable trusty The trusty enabled or not will be passed to HV with create vm hypercall. It's passed to vSBL within config page also. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,802
29.03.2018 13:14:05
-28,800
70625f04d3b2b422e0a1d25fefd742751ff9f42d
dm: export pci_emul_add_capability pci_emul_add_capability is needed by virtio 1.0 framework to add pci vendor capability from outside of pci core. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/core.c", "new_path": "devicemodel/hw/pci/core.c", "diff": "@@ -666,7 +666,7 @@ pci_emul_alloc_pbar(struct pci_vdev *pdi, int idx, uint64_t hostbase,\n}\n#define CAP_START_OFFSET 0x40\n-static int\n+int\npci_emul_add_capability(struct pci_vde...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: export pci_emul_add_capability pci_emul_add_capability is needed by virtio 1.0 framework to add pci vendor capability from outside of pci core. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
04.04.2018 17:27:45
-28,800
de4d793389cffcd8e724912a586565b9edcf08b0
Remove 'noxsave' bootarg in dm sample script xsave feature is enabled in hv and exposed to uos
[ { "change_type": "MODIFY", "old_path": "devicemodel/samples/launch_uos.sh", "new_path": "devicemodel/samples/launch_uos.sh", "diff": "@@ -22,7 +22,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \\\n-s 3,virtio-blk,/root/clear-21260-kvm.img \\\n-s 4,virtio-net,tap0 \\\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Remove 'noxsave' bootarg in dm sample script xsave feature is enabled in hv and exposed to uos Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,725
03.04.2018 16:40:23
-28,800
4542d3775d3886c4bc5460dc24c8398f32602e67
hypercall: Fix compile error caused by missing memcpy function Assignment of structures are implemented using memcpy which is not available in the hypervisor. This patch convert such assignment to an explicit memcpy_s() call. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -727,7 +727,8 @@ int acrn_insert_request_wait(struct vcpu *vcpu, struct vhm_request *req)\n/* ACRN insert request to VHM and inject upcall */\ncur = vcpu->vcpu_id;\n- req_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hypercall: Fix compile error caused by missing memcpy function Assignment of structures are implemented using memcpy which is not available in the hypervisor. This patch convert such assignment to an explicit memcpy_s() call. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
03.04.2018 09:30:15
-28,800
5e3dca4c0ce387cae924d337908f2086cdbf2206
hv: free ept memory enhancement add free_paging_struct api, used for free page tables it will clear memory before free. add HPA2HVA translation when free ept memory Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -57,12 +57,11 @@ void *create_guest_paging(struct vm *vm)\nreturn (void *)CPU_Boot_Page_Tables_Start_VM;\n}\n-static void *find_next_table(uint32_t table_offset,\n- void *table_ba...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: free ept memory enhancement --add free_paging_struct api, used for free page tables it will clear memory before free. --add HPA2HVA translation when free ept memory Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Anthony Xu <anthony.xu@int...
528,802
29.03.2018 09:07:54
-28,800
5e613efd9542f0588e95ce923c481fe219641131
dm/VBS-U: add virtio 1.0 data structures This patch adds virtio 1.0 data structures and macros according to virtio spec v1.0 cs4. Part of them are referenced from Linux's BSD-licensed include/uapi/linux/virtio_pci.h Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/include/virtio.h", "new_path": "devicemodel/include/virtio.h", "diff": "@@ -284,6 +284,12 @@ struct vring_used {\n/* guest OS driver is loaded */\n#define VIRTIO_CR_STATUS_DRIVER_OK 0x04\n/* guest OS driver ready */\n+#define VIRTIO_CR_STATUS_FEATU...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: add virtio 1.0 data structures This patch adds virtio 1.0 data structures and macros according to virtio spec v1.0 cs4. Part of them are referenced from Linux's BSD-licensed include/uapi/linux/virtio_pci.h Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Review...
528,802
29.03.2018 09:23:46
-28,800
9c2378f19e0aaa07a7e803437ff3cffd2cd9d6d7
dm/VBS-U: expand data structures to support virtio 1.0 Struct virtio_base and struct virtio_vq_info are expanded to support virtio 1.0 framework. The BAR layouts of virtio legacy/transitional/ modern are introduced as well. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -96,6 +96,13 @@ virtio_reset_dev(struct virtio_base *base)\nvq->save_used = 0;\nvq->pfn = 0;\nvq->msix_idx = VIRTIO_MSI_NO_VECTOR;\n+ vq->gpa_desc[0] = 0;\n+ vq-...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: expand data structures to support virtio 1.0 Struct virtio_base and struct virtio_vq_info are expanded to support virtio 1.0 framework. The BAR layouts of virtio legacy/transitional/ modern are introduced as well. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com...
528,802
29.03.2018 11:24:39
-28,800
a098c11869efb9342c090b93d7f10c407fcd2001
dm/VBS-U: implement read/write callbacks of modern common cfg This patch implements the read/write callbacks for the registers in the common configuration region. This region is implemented in the modern MMIO bar. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -182,8 +182,9 @@ virtio_interrupt_init(struct virtio_base *base, int use_msix)\n* Initialize the currently-selected virtio queue (base->curq).\n* The guest just ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: implement read/write callbacks of modern common cfg This patch implements the read/write callbacks for the registers in the common configuration region. This region is implemented in the modern MMIO bar. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed...
528,802
29.03.2018 12:09:09
-28,800
1fa2f27dd30465de9cc70114fc556d764af7dc13
dm/VBS-U: implement read/write callbacks of device-specific cfg This patch implements the read/write callbacks for the registers in the device-specific region. This region is implemented in the modern MMIO bar. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -1267,15 +1267,62 @@ virtio_isr_cfg_read(struct pci_vdev *dev, uint64_t offset, int size)\nstatic uint32_t\nvirtio_device_cfg_read(struct pci_vdev *dev, uint64_t...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: implement read/write callbacks of device-specific cfg This patch implements the read/write callbacks for the registers in the device-specific region. This region is implemented in the modern MMIO bar. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by...
528,802
29.03.2018 12:14:16
-28,800
cfa591aedf1a9449b1a5e6b9294ea858d4f0e8eb
dm/VBS-U: implement read callback of isr cfg Registers in the isr configuration region are read-only. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -1260,8 +1260,15 @@ bad_qindex:\nstatic uint32_t\nvirtio_isr_cfg_read(struct pci_vdev *dev, uint64_t offset, int size)\n{\n- /* TODO: to be implemented */\n- ret...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: implement read callback of isr cfg Registers in the isr configuration region are read-only. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,802
29.03.2018 12:18:25
-28,800
76422fd5f1108afac2221c6aee46ce8bceaee985
dm/VBS-U: implement write callback of notify cfg virtio_notify_cfg_write is called when guest driver performs virtqueue kick by writing the notificaiton register of the virtqueue. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -1340,7 +1340,31 @@ static void\nvirtio_notify_cfg_write(struct pci_vdev *dev, uint64_t offset, int size,\nuint64_t value)\n{\n- /* TODO: to be implemented */\n+...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: implement write callback of notify cfg virtio_notify_cfg_write is called when guest driver performs virtqueue kick by writing the notificaiton register of the virtqueue. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel....
528,802
29.03.2018 12:29:00
-28,800
0398498846ec7f90f105ede4850536d4351cd8dc
dm/VBS-U: implement virtio_dev_error When the device has experienced an error from which it cannot re-cover, DEVICE_NEEDS_RESET is set to the device status register and a config change intr is sent to the guest driver. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio.c", "new_path": "devicemodel/hw/pci/virtio/virtio.c", "diff": "@@ -1008,6 +1008,19 @@ virtio_set_modern_bar(struct virtio_base *base, bool use_notify_pio)\nreturn rc;\n}\n+void\n+virtio_dev_error(struct virtio_base *base)\n+{\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: implement virtio_dev_error When the device has experienced an error from which it cannot re-cover, DEVICE_NEEDS_RESET is set to the device status register and a config change intr is sent to the guest driver. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Rev...
528,802
29.03.2018 12:44:52
-28,800
86f394851b9bd4e0b0b3188b4792d8780b7c52e0
dm/VBS-U: increase generation when configuration changed Virtio 1.0 introdues a generation number for the device-specific configuration. It should be increased every time the configuration noticeably changes. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/include/virtio.h", "new_path": "devicemodel/include/virtio.h", "diff": "@@ -674,6 +674,10 @@ vq_interrupt(struct virtio_base *vb, struct virtio_vq_info *vq)\nstatic inline void\nvirtio_config_changed(struct virtio_base *vb)\n{\n+ if (!(vb->status &...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm/VBS-U: increase generation when configuration changed Virtio 1.0 introdues a generation number for the device-specific configuration. It should be increased every time the configuration noticeably changes. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Hao Li <hao.l.li@intel.com> Reviewed-by: ...
528,804
06.03.2018 10:17:08
-28,800
2db13248373e7381937dfa912353fad2eb98d3ba
add vmx msr ops protection from guest OS 1.it doesn't support VMX for guest OS 2.for MSR out of control, inject GP to guest OS. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vmsr.c", "new_path": "hypervisor/arch/x86/guest/vmsr.c", "diff": "@@ -152,6 +152,11 @@ void init_msr_emulation(struct vcpu *vcpu)\ni <= MSR_IA32_MTRR_FIX4K_F8000; i++) {\nenable_msr_interception(msr_bitmap, i);\n}\n+\n+ for (i = MSR_I...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
add vmx msr ops protection from guest OS 1.it doesn't support VMX for guest OS 2.for MSR out of control, inject GP to guest OS. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,728
04.04.2018 23:50:38
-7,200
46bb2dbd51da5845cba33c1047e8fae38f4938cb
Add initial .travis.yml and Dockerfile (Clearlinux)
[ { "change_type": "MODIFY", "old_path": "hypervisor/.travis.yml", "new_path": "hypervisor/.travis.yml", "diff": "+sudo: required\n+\nlanguage: c\n-compiler:\n- - gcc\n-script: make clean && make all\n+\n+services:\n+ - docker\n+\n+before_install:\n+ - docker ps -a\n+\n+script:\n+ - docker build -t sh...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Add initial .travis.yml and Dockerfile (Clearlinux) Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Signed-off-by: T <shrmrf@users.noreply.github.com>
528,786
30.03.2018 12:50:40
-28,800
c83bcded99e49d4571edc8a00b147bf18b6dcc73
trusty: fix typo of comments Remove TODO comments since it has been done below the comments. Typo fix: startup_info --> startup_param. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/trusty.c", "new_path": "hypervisor/arch/x86/trusty.c", "diff": "@@ -304,8 +304,6 @@ static bool setup_trusty_info(struct vcpu *vcpu,\nmem = (struct trusty_mem *)(HPA2HVA(mem_base_hpa));\n- /* TODO: prepare vkey_info */\n-\n/* copy key_info ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
trusty: fix typo of comments Remove TODO comments since it has been done below the comments. Typo fix: startup_info --> startup_param. Signed-off-by: Qi Yadong <yadong.qi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
04.04.2018 15:28:49
-28,800
ace23b5088b8e394a851f32168add45a8b01194c
hv: shell: add cpuid command Add cpuid shell command for test
[ { "change_type": "MODIFY", "old_path": "hypervisor/debug/shell_internal.c", "new_path": "hypervisor/debug/shell_internal.c", "diff": "@@ -1040,6 +1040,34 @@ int shell_set_loglevel(struct shell *p_shell, int argc, char **argv)\nreturn status;\n}\n+int shell_cpuid(struct shell *p_shell, int argc, char...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: shell: add cpuid command Add cpuid shell command for test Signed-off-by: Li, Fei1 <fei1.li@intel.com>
528,783
04.04.2018 14:29:08
-28,800
92d86383bed8e962d3817413bd36414ae7103a95
hv:check continuous hpa when create secure world Add check_continuous_hpa API: when create secure world,if the physical address is not continuous, will assert. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -520,6 +520,25 @@ void free_paging_struct(void *ptr)\n}\n}\n+bool check_continuous_hpa(struct vm *vm, uint64_t gpa, uint64_t size)\n+{\n+ uint64_t curr_hpa = 0;\n+ uint64_t next_h...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:check continuous hpa when create secure world Add check_continuous_hpa API: when create secure world,if the physical address is not continuous, will assert. Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,695
05.04.2018 18:42:35
-28,800
b11460f7f6d15f77ce83b4d3bdde98275c8bebe6
replace malloc and memset with calloc malloc: allocate a block of memory, the contents of the block are undefined. calloc: allocate a block of memory for an array of num elements and initializes all its bits to zero.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vtd.c", "new_path": "hypervisor/arch/x86/vtd.c", "diff": "@@ -208,9 +208,8 @@ static int register_hrhd_units(void)\n}\nfor (i = 0; i < info->drhd_count; i++) {\n- drhd_rt = malloc(sizeof(struct dmar_drhd_rt));\n+ drhd_rt = calloc(1, sizeof(...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
replace malloc and memset with calloc malloc: allocate a block of memory, the contents of the block are undefined. calloc: allocate a block of memory for an array of num elements and initializes all its bits to zero. Signed-off-by: yechunliang <yechunliangcn@163.com>
528,747
05.04.2018 16:18:55
25,200
3726a0f7a5a82d6ae8cd54a1d3336f12bcd238b4
doc: fix hypercall API doxygen errors Documentation for parameters must match exactly in spelling and case. Parameter named "vcpu" was incorrectly documented as "VCPU", and parameter named "param" was documented as "param's".
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/common/hypercall.h", "new_path": "hypervisor/include/common/hypercall.h", "diff": "@@ -329,7 +329,7 @@ int64_t hcall_setup_sbuf(struct vm *vm, uint64_t param);\n/**\n* @brief Switch VCPU state between Normal/Secure World.\n*\n- * @param VCPU...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: fix hypercall API doxygen errors Documentation for parameters must match exactly in spelling and case. Parameter named "vcpu" was incorrectly documented as "VCPU", and parameter named "param" was documented as "param's". Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,733
30.03.2018 14:46:35
-28,800
eadc921bf0d5cbe51eea4b4e66020d207669eb91
DM: refine cleanup functionality of virtual RTC The patch includes: 1. vrtc_cleanup -> vrtc_deinit to align with other devices 2. delete timer created in vrtc_init 3. make call to vrtc_deinit in cleanup path Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/main.c", "new_path": "devicemodel/core/main.c", "diff": "@@ -543,6 +543,7 @@ do_close_post(struct vmctx *ctx)\npci_irq_deinit(ctx);\ndeinit_pci(ctx);\natkbdc_deinit(ctx);\n+ vrtc_deinit(ctx);\nvm_destroy(ctx);\nvm_close(ctx);\n}\n" }, { ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: refine cleanup functionality of virtual RTC The patch includes: 1. vrtc_cleanup -> vrtc_deinit to align with other devices 2. delete timer created in vrtc_init 3. make call to vrtc_deinit in cleanup path Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
528,728
04.04.2018 15:45:34
-7,200
1ac5a2aebd8821585a790faca6f329e31a60fe98
Enable Travis CI for all combinations Enable the Travis CI testing for all combinations of variables that can be set at compile-time. I.e. RELEASE={0|1} and PLATFORM={0|1}
[ { "change_type": "ADD", "old_path": null, "new_path": "hypervisor/.travis-dockerfiles/Dockerfile.centos7", "diff": "+# Build container based on CentOS 7\n+FROM centos:centos7\n+\n+RUN yum -y update; yum clean all\n+RUN yum -y install gcc \\\n+ git \\\n+ make \\\n+ vim \\\n+ libuuid-devel \\\n+ opens...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Enable Travis CI for all combinations Enable the Travis CI testing for all combinations of variables that can be set at compile-time. I.e. RELEASE={0|1} and PLATFORM={0|1} Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,728
04.04.2018 22:43:37
-7,200
c5c4b63150b60c45713dc8a4a48151e19b7387ef
Travis CI: enable Ubuntu 16.04 and Fedora 26 testing Enable compilation test for Fedora 26 and Ubuntu 16.04. The tests will run for all combinations of RELEASE={0|1} and PLATFORM={sbl|uefi}
[ { "change_type": "DELETE", "old_path": "hypervisor/.travis-dockerfiles/LICENSE", "new_path": null, "diff": "-BSD 3-Clause License\n-\n-Copyright (c) 2018, Geoffroy Van Cutsem\n-All rights reserved.\n-\n-Redistribution and use in source and binary forms, with or without\n-modification, are permitted ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Travis CI: enable Ubuntu 16.04 and Fedora 26 testing Enable compilation test for Fedora 26 and Ubuntu 16.04. The tests will run for all combinations of RELEASE={0|1} and PLATFORM={sbl|uefi} Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,728
04.04.2018 23:21:09
-7,200
1ef6bba51e7e81440d64cfe878cea8f9f85b1cfe
Enable Travis CI testing Enable Travis CI testing for the following development host OSs: * Clearlinux * Ubuntu 16.04 * Fedora 26
[ { "change_type": "ADD", "old_path": null, "new_path": "devicemodel/.travis-dockerfiles/Dockerfile.centos7", "diff": "+# Build container based on CentOS 7\n+FROM centos:centos7\n+\n+RUN yum -y update; yum clean all\n+RUN yum -y install gcc \\\n+ git \\\n+ make \\\n+ vim \\\n+ libuuid-devel \\\n+ open...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Enable Travis CI testing Enable Travis CI testing for the following development host OSs: * Clearlinux * Ubuntu 16.04 * Fedora 26 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
528,722
06.04.2018 17:27:16
-28,800
ec1cbbb660782d8025a984031a0d49db8e7e1615
UEFI: get the guest entry address explicitly Previously with the help from gcc, __builtin_return_address(0) is used as the guest entry address, but it can't work well with gcc 7.3 and leads to the guest unable to return to UEFI correctly. Let's get it explicitly. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/efi/boot.c", "new_path": "hypervisor/bsp/uefi/efi/boot.c", "diff": "EFI_SYSTEM_TABLE *sys_table;\nEFI_BOOT_SERVICES *boot;\nEFI_RUNTIME_SERVICES *runtime;\n+extern const uint64_t guest_entry;\nstatic inline void hv_jump(EFI_PHYSICAL_ADDRESS...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
UEFI: get the guest entry address explicitly Previously with the help from gcc, __builtin_return_address(0) is used as the guest entry address, but it can't work well with gcc 7.3 and leads to the guest unable to return to UEFI correctly. Let's get it explicitly. Signed-off-by: Jack Ren <jack.ren@intel.com> Acked-by:...
528,794
05.04.2018 04:35:04
-28,800
263bdf6cf26bdfc33d9617e7322af66d51959d05
DM: add vmm interface to get px data The interface will be used to interact with VHM service via IOCTL. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/vmmapi.c", "new_path": "devicemodel/core/vmmapi.c", "diff": "@@ -720,3 +720,9 @@ vm_get_device_fd(struct vmctx *ctx)\n{\nreturn ctx->fd;\n}\n+\n+int\n+vm_get_cpu_state(struct vmctx *ctx, void *state_buf)\n+{\n+ return ioctl(ctx->fd, IC_PM_GET_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: add vmm interface to get px data The interface will be used to interact with VHM service via IOCTL. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
05.04.2018 04:49:56
-28,800
ea662e6d49fd4edb0a3a76a5512fa0bc820e0a43
DM: add function of get px count and data The px count and data is per-cpu so we should query them for specific vm and specific vcpu, for px data we need to specify px num also. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -78,6 +78,7 @@ SRCS += hw/pci/virtio/virtio_hyper_dmabuf.c\nSRCS += hw/pci/irq.c\nSRCS += hw/pci/uart.c\nSRCS += hw/acpi/acpi.c\n+SRCS += hw/acpi/acpi_pm.c\n# core\n#SRCS += core/bootrom.c\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: add function of get px count and data The px count and data is per-cpu so we should query them for specific vm and specific vcpu, for px data we need to specify px num also. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
07.04.2018 10:45:32
-28,800
e96fe060bc780b41fd74c01e06714afe0bd4e284
DM: add vmctx as write dsdt func ptr parameter Some ACPI objects is per-vm and per-cpu specific so we need to pass vmctx as function parameter when we write objects into DSDT table. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi.c", "new_path": "devicemodel/hw/acpi/acpi.c", "diff": "@@ -118,7 +118,7 @@ struct basl_fio {\n#define EFFLUSH(x) fflush(x)\nstatic int\n-basl_fwrite_rsdp(FILE *fp)\n+basl_fwrite_rsdp(FILE *fp, struct vmctx *ctx)\n{\nEFPRINTF(fp, \"/*\\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: add vmctx as write dsdt func ptr parameter Some ACPI objects is per-vm and per-cpu specific so we need to pass vmctx as function parameter when we write objects into DSDT table. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
05.04.2018 03:35:23
-28,800
a91118e3e80b18f84fbf7f8ad3a99336b22be013
DM: build UOS DSDT with vcpu px state data With the DSDT which include virtual _PSS/_PCT/_PPC objects, UOS should have ACPI Px control capability if acpi cpufreq driver is enalbed in kernel. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi.c", "new_path": "devicemodel/hw/acpi/acpi.c", "diff": "@@ -764,6 +764,9 @@ basl_fwrite_dsdt(FILE *fp, struct vmctx *ctx)\ndsdt_line(\" })\");\ndsdt_line(\" }\");\ndsdt_line(\" }\");\n+\n+ pm_write_dsdt(ctx, basl_ncpu);\n+\ndsdt_line(\"...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: build UOS DSDT with vcpu px state data With the DSDT which include virtual _PSS/_PCT/_PPC objects, UOS should have ACPI Px control capability if acpi cpufreq driver is enalbed in kernel. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,675
05.04.2018 07:58:49
-28,800
fa3e424fcf0c5a9bad401c7b256dac662e83d41f
mmu: refine functions modify_paging & map/unmap/modify mem add error return for all, which is valid under release version, as at that time, ASSERT in modify_paging is empty. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -838,14 +838,13 @@ static uint64_t break_page_table(struct map_params *map_params, void *paddr,\nreturn next_page_size;\n}\n-static void modify_paging(struct map_params *map_param...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine functions modify_paging & map/unmap/modify mem add error return for all, which is valid under release version, as at that time, ASSERT in modify_paging is empty. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
05.04.2018 06:56:49
-28,800
6454c7be6bf27931439b1e649c0c38f2aed75262
mmu: refine function map_mem_region function map_mem_region should return mapped_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in map_mem_region is empty. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -173,6 +173,7 @@ static uint32_t map_mem_region(void *vaddr, void *paddr,\n|| request_type >= PAGING_REQUEST_TYPE_UNKNOWN) {\n/* Shouldn't go here */\nASSERT(false, \"Incorrect Ar...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine function map_mem_region function map_mem_region should return mapped_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in map_mem_region is empty. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
05.04.2018 08:16:38
-28,800
cbcc7c0db334df171e270d197e1e34b5b7427eb6
mmu: refine function break_page_table function break_page_table should return next_level_page_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in break_page_table is empty. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -787,12 +787,12 @@ static uint64_t break_page_table(struct map_params *map_params, void *paddr,\n/* New entry present - need to allocate a new table */\nsub_tab_addr = alloc_pagin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine function break_page_table function break_page_table should return next_level_page_size, if something wrong, it return 0. the change is valid for release version, as at that time ASSERT() in break_page_table is empty. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@...
528,675
05.04.2018 07:19:29
-28,800
bb82504f0566724e56514edd7a95888dc1a4166f
mmu: refine functions get_table_entry & obtain_last_page_table_entry remove unused map_params in get_table_entry add error return for both, which is valid under release version, as at that time, ASSERT in get_table_entry is empty. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -346,27 +346,22 @@ static inline uint32_t check_page_table_present(struct map_params *map_params,\nreturn (table_entry) ? PT_PRESENT : PT_NOT_PRESENT;\n}\n-static uint64_t get_tab...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine functions get_table_entry & obtain_last_page_table_entry - remove unused map_params in get_table_entry - add error return for both, which is valid under release version, as at that time, ASSERT in get_table_entry is empty. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddi...
528,675
05.04.2018 08:25:12
-28,800
c2f86f23c3d134703abc6e99d5216115ad0edc53
mmu: refine functions walk_paging_struct & update_page_table_entry walk_paging_struct should return sub_table_addr, if something wrong, it return NULL update_page_table_entry should return adjusted_size, if something wrong it return 0 the change is valid under release version, as at that time, ASSERT in walk_paging_str...
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -373,14 +373,13 @@ static void *walk_paging_struct(void *addr, void *table_base,\n/* if table_level == IA32E_PT Just return the same address\n* can't walk down any further\n*/\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine functions walk_paging_struct & update_page_table_entry - walk_paging_struct should return sub_table_addr, if something wrong, it return NULL - update_page_table_entry should return adjusted_size, if something wrong it return 0 the change is valid under release version, as at that time, ASSERT in walk_...
528,675
05.04.2018 08:43:19
-28,800
a68850e00f05a33dc03f89650136968660b1ed13
mmu: replace ASSERT with panic in fetch_page_table_offset all callers for fetch_page_table_offset should already make sure it will not come to an unknown table_leve, so just panic here.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -325,8 +325,10 @@ static uint32_t fetch_page_table_offset(void *addr, uint32_t table_level)\nbreak;\ndefault:\n- pr_err(\"Wrong page table level = 0x%lx\", table_level);\n- ASSERT...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: replace ASSERT with panic in fetch_page_table_offset all callers for fetch_page_table_offset should already make sure it will not come to an unknown table_leve, so just panic here. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,675
08.04.2018 11:50:47
-28,800
878b5a046640a06d2a36d5e6d873fa01b32d5be3
mmu: refine functions for invept rename mmu_invept to invept panic if HW doesn't support invept
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/interrupt.c", "new_path": "hypervisor/arch/x86/interrupt.c", "diff": "@@ -289,7 +289,7 @@ int acrn_do_intr_process(struct vcpu *vcpu)\nuint64_t *pending_intr_bits = &vcpu->arch_vcpu.pending_intr;\nif (bitmap_test_and_clear(ACRN_REQUEST_TLB_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine functions for invept - rename mmu_invept to invept - panic if HW doesn't support invept Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
528,794
04.04.2018 13:30:19
-28,800
4cd2717038c2afd12faf2900194fcee6ecfe1bd4
HV: add cpu model name The cpu model name would be used to distinguish which hard coded data need to be loaded to boot_cpu_data; Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -308,6 +308,27 @@ static void set_fs_base(void)\n}\n#endif\n+static void get_cpu_name(void)\n+{\n+ cpuid(CPUID_EXTEND_FUNCTION_2,\n+ (uint32_t *)(boot_cpu_data.model_name),\n+ (ui...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: add cpu model name The cpu model name would be used to distinguish which hard coded data need to be loaded to boot_cpu_data; Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
04.04.2018 14:29:46
-28,800
a28fbd15b526e480d1a7c060dc9480102ac7f418
HV: load cpu px data in boot The patch takes Intel ATOM A3960 as example that hard code all Px info which is needed for Px control into Acrn HV and load it in boot process. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/Makefile", "new_path": "hypervisor/Makefile", "diff": "@@ -104,6 +104,7 @@ C_SRCS += arch/x86/vmexit.c\nC_SRCS += arch/x86/vmx.c\nC_SRCS += arch/x86/assign.c\nC_SRCS += arch/x86/trusty.c\n+C_SRCS += arch/x86/cpu_state_tbl.c\nC_SRCS += arch/x86/guest...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: load cpu px data in boot The patch takes Intel ATOM A3960 as example that hard code all Px info which is needed for Px control into Acrn HV and load it in boot process. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
05.04.2018 19:58:40
-28,800
0e2b9fc7fa3258461d58f0bfecbc5fed77495688
HV: setup px info when create vm The vm px info would be used for guest Pstate control. Currently it is copied from host boot cpu. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_state_tbl.c", "new_path": "hypervisor/arch/x86/cpu_state_tbl.c", "diff": "#include <hv_lib.h>\n#include <cpu.h>\n#include <acrn_common.h>\n+#include <hv_arch.h>\n#include <cpu_state_tbl.h>\n/* The table includes cpu px info of Intel A39...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: setup px info when create vm The vm px info would be used for guest Pstate control. Currently it is copied from host boot cpu. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
07.04.2018 17:14:58
-28,800
24ea869e257166a05008b0c68c0ad61e60feb444
HV: add px data of bxt j3455 SOC The cpu model name of "Intel(R) Celeron(R) CPU J3455 @ 1.50GHz" is used for APL NUC which is in Acrn official suport list. Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu_state_tbl.c", "new_path": "hypervisor/arch/x86/cpu_state_tbl.c", "diff": "@@ -55,8 +55,22 @@ struct cpu_px_data px_a3960[] = {\n{0x320, 0, 0xA, 0xA, 0x0800, 0x0800} /* P16 */\n};\n+/* The table includes cpu px info of Intel J3455 SoC */...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
HV: add px data of bxt j3455 SOC The cpu model name of "Intel(R) Celeron(R) CPU J3455 @ 1.50GHz" is used for APL NUC which is in Acrn official suport list. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,794
08.04.2018 14:35:50
-28,800
e078ce7aae947c242dec8e172cefdbbef4fb5b40
DM: hotfix for loop initial declaration in acpi_pm for (int i = 0; i < ...; i++) is only allowed in C99 mode, so fix this coding style to: int i; for (i = 0; i < ...; i++) Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/acpi/acpi_pm.c", "new_path": "devicemodel/hw/acpi/acpi_pm.c", "diff": "@@ -127,6 +127,7 @@ static void dsdt_write_pct(void)\nstatic void dsdt_write_pss(struct vmctx *ctx, int vcpu_id)\n{\nuint8_t vcpu_px_cnt;\n+ int i;\nstruct cpu_px_data *vcpu_...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: hotfix for loop initial declaration in acpi_pm for (int i = 0; i < ...; i++) is only allowed in C99 mode, so fix this coding style to: int i; for (i = 0; i < ...; i++) Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
03.04.2018 21:58:32
-28,800
8682552273b7b15c180a00d7072d95d644f46581
mmu: identify VA and PA in mmu.c read/write page table entries should use VA which defined as "void *" the address data in page table entries should us PA which defined as "uint64_t" Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -424,10 +424,10 @@ static void *walk_paging_struct(void *addr, void *table_base,\n* sub-table\n*/\nMEM_WRITE64(table_base + table_offset,\n- (uint64_t) sub_table_addr | table_pres...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: identify VA and PA in mmu.c - read/write page table entries should use VA which defined as "void *" - the address data in page table entries should us PA which defined as "uint64_t" Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
03.04.2018 22:25:40
-28,800
bf36022ce9a1387bff5fd81c6253a98e00c5b0c1
ept: change eptp to PA eptp should be record as PA. this patch changed nworld_eptp, sworld_eptp and m2p eptp to PA type, necessary HPA2HVA/HVA2HPA transition is used for them after the change. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -138,11 +138,11 @@ void free_ept_mem(void *pml4_addr)\nvoid destroy_ept(struct vm *vm)\n{\n- free_ept_mem(vm->arch_vm.nworld_eptp);\n- free_ept_mem(vm->arch_vm.m2p);\n+ free_ept_m...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
ept: change eptp to PA eptp should be record as PA. this patch changed nworld_eptp, sworld_eptp and m2p eptp to PA type, necessary HPA2HVA/HVA2HPA transition is used for them after the change. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,695
05.04.2018 19:57:13
-28,800
2e2f02edeb6bc4aa4aa1c9f7a34c6ad65360cdb7
replace malloc with calloc malloc: allocate a block of memory, the contents of the block are undefined. calloc: allocate a block of memory for an array of num elements and initializes all its bits to zero.
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/vmmapi.c", "new_path": "devicemodel/core/vmmapi.c", "diff": "@@ -118,7 +118,7 @@ vm_open(const char *name)\nint error, retry = 10;\nuuid_t vm_uuid;\n- ctx = malloc(sizeof(struct vmctx) + strlen(name) + 1);\n+ ctx = calloc(1, sizeof(struct vmct...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
replace malloc with calloc malloc: allocate a block of memory, the contents of the block are undefined. calloc: allocate a block of memory for an array of num elements and initializes all its bits to zero. Signed-off-by: yechunliang <yechunliangcn@163.com>
528,783
09.04.2018 15:39:09
-28,800
4f6c451278d7f9f31aa7b60878dbd8b3ae769845
dm: sync common header file to DM sync acrn_common.h to device model set secure world enabled flag Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/vmmapi.c", "new_path": "devicemodel/core/vmmapi.c", "diff": "@@ -149,7 +149,12 @@ vm_open(const char *name)\nctx->lowmem_limit = 2 * GB;\nctx->name = (char *)(ctx + 1);\nstrcpy(ctx->name, name);\n- create_vm.secure_world_enabled = trusty_enabl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
dm: sync common header file to DM sync acrn_common.h to device model set secure world enabled flag Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,783
09.04.2018 16:10:00
-28,800
51414536fa7fa8460643fe17bc0b22f454e642f5
hv:add suffix(UL)for MACRO(SECURE_WORLD_ENABLED) Now the MACRO SECURE_WORLD_ENABLED (1<<0) Change it to 64 bit data SECURE_WORLD_ENABLED (1UL<<0) Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/public/acrn_common.h", "new_path": "hypervisor/include/public/acrn_common.h", "diff": "#define REQUEST_WRITE 1\n/* Generic VM flags from guest OS */\n-#define SECURE_WORLD_ENABLED (1<<0) /* Whether secure world is enabled */\n+#define SECURE...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv:add suffix(UL)for MACRO(SECURE_WORLD_ENABLED) Now the MACRO SECURE_WORLD_ENABLED (1<<0) Change it to 64 bit data SECURE_WORLD_ENABLED (1UL<<0) Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie...
528,786
09.04.2018 10:56:25
-28,800
ef0c5ec2e302527014bca941d89386e1542a8c6c
hv: cache tsc_offset Guest write tsc: cache the offset into run_context.tsc_offset; Guest read tsc : use run_context.tsc_offset to calculate guest_tsc. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -1974,7 +1974,8 @@ vlapic_wrmsr(struct vcpu *vcpu, uint32_t msr, uint64_t val)\nvlapic->last_timer = -1;\n} else {\n/* transfer guest tsc to host tsc */\n- val -...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cache tsc_offset Guest write tsc: cache the offset into run_context.tsc_offset; Guest read tsc : use run_context.tsc_offset to calculate guest_tsc. Signed-off-by: Qi Yadong <yadong.qi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
10.04.2018 11:36:09
-28,800
241efb2da671c6d78cd512eda48bae38048be701
vlapic: apicv_get_apic_page_addr should get hpa virtual-ACPI page which write into VMCS should be hpa Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -2272,7 +2272,7 @@ apicv_get_apic_access_addr(__unused struct vm *vm)\nuint64_t\napicv_get_apic_page_addr(struct vlapic *vlapic)\n{\n- return (uint64_t)(vlapic->...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vlapic: apicv_get_apic_page_addr should get hpa virtual-ACPI page which write into VMCS should be hpa Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,675
10.04.2018 11:53:46
-28,800
f98a7ca90a6be1b06bb877e74252d65b8be12149
vlapic: apicv_get_apic_access_addr should get hpa APIC-access page which write into VMCS should be hpa Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vlapic.c", "new_path": "hypervisor/arch/x86/guest/vlapic.c", "diff": "@@ -2263,7 +2263,7 @@ apicv_get_apic_access_addr(__unused struct vm *vm)\nmemset((void *)apicv_apic_access_addr, 0, CPU_PAGE_SIZE);\n}\n- return (uint64_t)(apicv_ap...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vlapic: apicv_get_apic_access_addr should get hpa APIC-access page which write into VMCS should be hpa Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,768
11.04.2018 16:51:49
-28,800
06bd73c765f38429c1d4f6eaacae416f1e5b8c6b
remove 'noxsave' in acrn.conf xsave is enabled for guests
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/clearlinux/acrn.conf", "new_path": "hypervisor/bsp/uefi/clearlinux/acrn.conf", "diff": "title The ACRN Service OS\nlinux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.23-19\n-options pci_devices_ignore=(0:18:2) noxsave maxcpus=1 ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove 'noxsave' in acrn.conf - xsave is enabled for guests Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,667
02.04.2018 13:33:02
-28,800
418c266bfcd105efc0b46b9dfb980cff700f0e2a
virtio-heci: Add ME client mapping in backend service ME client mapping is for tracking ME clients operations between frontend driver and backend service. It contains buffers for send/recv packing and forwarding. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "new_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "diff": "#include <sys/cdefs.h>\n#include <sys/param.h>\n-\n+#include <sys/ioctl.h>\n+#include <linux/mei.h>\n+#include <errno.h>\n+#include <fcntl.h>\n#include <s...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
virtio-heci: Add ME client mapping in backend service ME client mapping is for tracking ME clients operations between frontend driver and backend service. It contains buffers for send/recv packing and forwarding. Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Reviewed-by: Li Hao <hao.l.li@intel.com> Reviewed-by: Wang...
528,667
03.04.2018 10:25:38
-28,800
33e84efef91bbd0740fb1adc6aa03148761e9fa0
virtio-heci: Add firmware reset handling Now, we treat a read/write ENODEV error as a firmware reset. When MEI reset happens in driver, we need disconnect all active clients and restart HBM flow. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "new_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "diff": "@@ -124,6 +124,7 @@ struct virtio_heci {\nstruct mei_enumerate_me_clients me_clients_map;\nvolatile bool deiniting;\nvolatile bool resetting;\n+ volatile ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
virtio-heci: Add firmware reset handling Now, we treat a read/write ENODEV error as a firmware reset. When MEI reset happens in driver, we need disconnect all active clients and restart HBM flow. Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Reviewed-by: Li Hao <hao.l.li@intel.com> Reviewed-by: Wang Yu <yu1.wang@int...
528,667
03.04.2018 10:33:33
-28,800
d9545abefb92e63bc010f2f0c90348800e43c0d9
virtio-heci: disconnect client when message buffer overflowed Firmware need to disconnect the client connection when host's message overlow the receive buffer in firmware. We emulate this behavior in backend service. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "new_path": "devicemodel/hw/pci/virtio/virtio_heci.c", "diff": "@@ -557,6 +557,38 @@ virtio_heci_hbm_response(struct virtio_heci *vheci,\nvirtio_heci_client_put(vheci, client);\n}\n+/*\n+ * This function is intend to s...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
virtio-heci: disconnect client when message buffer overflowed Firmware need to disconnect the client connection when host's message overlow the receive buffer in firmware. We emulate this behavior in backend service. Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Reviewed-by: Li Hao <hao.l.li@intel.com> Reviewed-by: ...
528,667
10.04.2018 12:54:51
-28,800
c5b14c2646f3f5cfa4e8ddf8ab8600287606dd8e
DM: use standard offsetof to avoid duplicate definition Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/rtc.c", "new_path": "devicemodel/hw/platform/rtc.c", "diff": "#include <pthread.h>\n#include <string.h>\n#include <assert.h>\n+#include <stddef.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n# define RTC_DEBUG(format...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: use standard offsetof to avoid duplicate definition Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,768
11.04.2018 22:12:11
-28,800
a0b7fb81b42d0968781dc03cba9eb422cf4dee3c
Add range check for 'vm0_gpa' before creating EPT Input('vm0_gpa') should be validated when handling hypercall 'HC_VM_SET_MEMMAP to create EPT for UOS in 'hcall_set_vm_memmap()' function. at least 'hpa' range (from 'vm0_gpa') can't overlap hypervisor memory region.
[ { "change_type": "MODIFY", "old_path": "hypervisor/common/hypercall.c", "new_path": "hypervisor/common/hypercall.c", "diff": "@@ -444,6 +444,14 @@ int64_t hcall_set_vm_memmap(struct vm *vm, uint64_t vmid, uint64_t param)\ndev_dbg(ACRN_DBG_HYCALL, \"[vm%d] gpa=0x%x hpa=0x%x size=0x%x\",\nvmid, memmap...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
Add range check for 'vm0_gpa' before creating EPT Input('vm0_gpa') should be validated when handling hypercall 'HC_VM_SET_MEMMAP to create EPT for UOS in 'hcall_set_vm_memmap()' function. at least 'hpa' range (from 'vm0_gpa') can't overlap hypervisor memory region. Signed-off-by: Yonghua Huang <yonghua.huang@intel.co...
528,731
11.04.2018 17:00:05
-28,800
4c6f11fe8d5b4ac46720d4af1845fb4c052c2c11
mmu: add cflush api Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/arch/x86/mmu.h", "new_path": "hypervisor/include/arch/x86/mmu.h", "diff": "@@ -376,6 +376,11 @@ static inline void *mmu_pt_for_pde(uint32_t *pd, uint32_t vaddr)\nasm volatile (\" wbinvd\\n\" : : : \"memory\"); \\\n}\n+static inline void clfl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: add cflush api Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,731
11.04.2018 17:19:41
-28,800
d0c773f22d4970d9bab2e0ef99bced1134fe8321
vtd: fix memory coherency issue of vtd table Acked-by: Kevin Tian
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vtd.c", "new_path": "hypervisor/arch/x86/vtd.c", "diff": "@@ -252,6 +252,20 @@ static void iommu_write64(struct dmar_drhd_rt *dmar_uint, uint32_t offset,\nmmio_write_long(temp, dmar_uint->drhd->reg_base_addr + offset + 4);\n}\n+/* flush cac...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vtd: fix memory coherency issue of vtd table Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
528,783
12.04.2018 07:35:06
-28,800
0a0ff19eaa8f5d5227a25b02a0152c372a686ab3
hv: Remove hpet from acrn.conf Remove clocksource=hpet from SOS kernel cmdline, as ACRN is providing tsc and hpet will not be supported in the future
[ { "change_type": "MODIFY", "old_path": "hypervisor/bsp/uefi/clearlinux/acrn.conf", "new_path": "hypervisor/bsp/uefi/clearlinux/acrn.conf", "diff": "title The ACRN Service OS\nlinux /EFI/org.clearlinux/kernel-org.clearlinux.pk414-sos.4.14.23-19\n-options pci_devices_ignore=(0:18:2) maxcpus=1 console=...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: Remove hpet from acrn.conf Remove clocksource=hpet from SOS kernel cmdline, as ACRN is providing tsc and hpet will not be supported in the future Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
528,733
04.04.2018 11:55:27
-28,800
223efeb9864d40634d62e1eb65152280e7607891
DM: Update the default e820 table to reserve 0xF0000~0x100000 The region of MPtable/ACPI table/SMBios resides in 0xF0000 ~ 0x100000. They should be marked as RESERVED instead of RAM type in e820 table. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/sw_load_common.c", "new_path": "devicemodel/core/sw_load_common.c", "diff": "@@ -52,16 +52,30 @@ static char bootargs[STR_LEN];\n* ctx->highmem = request_memory_size - ctx->lowmem_limit\n*\n* Begin End Type Length\n- * 0: 0 - lowmem RAM lowmem...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: Update the default e820 table to reserve 0xF0000~0x100000 The region of MPtable/ACPI table/SMBios resides in 0xF0000 ~ 0x100000. They should be marked as RESERVED instead of RAM type in e820 table. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony ...
528,675
10.04.2018 19:51:29
-28,800
96f7ff3be1f7581933bede3c725f845dff5bad3c
cpu: add physical cpu active bitmap support use pcpu_active_bitmap presents which cpu is active Acked-by: Tian, Kevin
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -59,6 +59,9 @@ int phy_cpu_num;\nunsigned long pcpu_sync = 0;\nuint32_t up_count = 0;\n+/* physical cpu active bitmap, support up to 64 cpus */\n+uint64_t pcpu_active_bitmap = 0;\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
cpu: add physical cpu active bitmap support use pcpu_active_bitmap presents which cpu is active Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com>
528,675
11.04.2018 09:46:41
-28,800
b7d57a946bf40b49862f9be1b5056eaec522f676
cpu: change cpu_halt name to cpu_dead cpu_halt actually mean cpu dead in current code, so change it with more clear name. Acked-by: Tian, Kevin
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -510,7 +510,7 @@ void bsp_boot_init(void)\nhv_main(CPU_BOOT_ID);\n/* Control should not come here */\n- cpu_halt(CPU_BOOT_ID);\n+ cpu_dead(CPU_BOOT_ID);\n}\nvoid cpu_secondary_ini...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
cpu: change cpu_halt name to cpu_dead cpu_halt actually mean cpu dead in current code, so change it with more clear name. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com>
528,675
11.04.2018 13:13:15
-28,800
60425f91b44b41ab61babb118a78164fa8c58551
mmu: add ept execution only capability check check IA32_VMX_EPT_VPID_CAP MSR to see if ept execution only capability is supported or not Acked-by: Tian, Kevin
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -45,6 +45,7 @@ enum mem_map_request_type {\n};\nstruct mm_capability {\n+ bool ept_x_only_supported;\n/* EPT and MMU 1-GByte page supported flag */\nbool ept_1gb_page_supported;\n...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: add ept execution only capability check check IA32_VMX_EPT_VPID_CAP MSR to see if ept execution only capability is supported or not Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com>
528,675
11.04.2018 11:00:53
-28,800
2d6c75408e4d0b98ae9af9ca3f8747f87fef18d8
mmu: refine the checking of entry present change the input param of check_page_table_present from struct map_params to page_table_type check EPT present bits misconfiguration in check_page_table_present change var "table_present" to more suitable name "entry_present" Acked-by: Tian, Kevin
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -171,6 +171,30 @@ static bool check_mmu_1gb_support(struct map_params *map_params)\nreturn status;\n}\n+static inline uint32_t check_page_table_present(int page_table_type,\n+ uin...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
mmu: refine the checking of entry present - change the input param of check_page_table_present from struct map_params to page_table_type - check EPT present bits misconfiguration in check_page_table_present - change var "table_present" to more suitable name "entry_present" Signed-off-by: Jason Chen CJ <jason.cj.che...
528,713
12.04.2018 10:33:05
-28,800
3847a4d1a99f7fb1e6ed2bf13918283d886a70ef
hypercall: bug fix on the address convertion while hypercall Before copy data between guest and host, should convert the GPA to HVA and do the copy.
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/common/hypercall.h", "new_path": "hypervisor/include/common/hypercall.h", "diff": "@@ -370,8 +370,8 @@ static inline int check_result(int found)\nint found = 0; \\\ntypeof(*(ptr)) *h_ptr = (ptr); \\\ntypeof(*(ptr)) *g_ptr = \\\n- (void *)gpa...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hypercall: bug fix on the address convertion while hypercall Before copy data between guest and host, should convert the GPA to HVA and do the copy. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Chen, Jason Cl <jason.cj.chen@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com>
528,675
10.04.2018 21:34:12
-28,800
403076e6b95d685024283b7f2c048c34c50b80fc
vtd: dmar_uint->root_table_addr should be hpa add necessary HPA2HVA/HVA2HPA transition for root_table_addr Acked-by: Tian, Kevin Acked-by: Xu, Anthony
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vtd.c", "new_path": "hypervisor/arch/x86/vtd.c", "diff": "@@ -965,14 +965,10 @@ static int add_iommu_device(struct iommu_domain *domain, uint16_t segment,\n}\nif (dmar_uint->root_table_addr == 0) {\n- /* 1:1 mapping for hypervisor HEAP,\n- ...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vtd: dmar_uint->root_table_addr should be hpa add necessary HPA2HVA/HVA2HPA transition for root_table_addr Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
528,675
10.04.2018 21:41:30
-28,800
4ea7588241bd2d95a4be623346a392e4d382ffb9
vtd: context_table_addr should be hpa add necessary HPA2HVA/HVA2HPA transition for context_table_addr Acked-by: Tian, Kevin Acked-by: Xu, Anthony
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vtd.c", "new_path": "hypervisor/arch/x86/vtd.c", "diff": "@@ -974,8 +974,7 @@ static int add_iommu_device(struct iommu_domain *domain, uint16_t segment,\nif (!DMAR_GET_BITSLICE(root_entry->lower, ROOT_ENTRY_LOWER_PRESENT)) {\n/* create cont...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vtd: context_table_addr should be hpa add necessary HPA2HVA/HVA2HPA transition for context_table_addr Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com>
528,675
10.04.2018 21:46:31
-28,800
1e2c2018272a087ac72f24f1945c0bef3ac9deb2
vtd: add page allocation check for root_table & context_table if failed to allocate page structure for root_table or context_table, ASSERT system and return. Acked-by: Tian, Kevin
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vtd.c", "new_path": "hypervisor/arch/x86/vtd.c", "diff": "@@ -965,7 +965,14 @@ static int add_iommu_device(struct iommu_domain *domain, uint16_t segment,\n}\nif (dmar_uint->root_table_addr == 0) {\n- dmar_uint->root_table_addr = HVA2HPA(all...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
vtd: add page allocation check for root_table & context_table if failed to allocate page structure for root_table or context_table, ASSERT system and return. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Tian, Kevin <kevin.tian@intel.com>
528,804
12.04.2018 09:31:13
-28,800
72b2cb1fa7920074215086120fbb117ac6bba099
remove deadcode of rdtsc_handler/rdtscp_handler Guest OS rdtsc/rdtscp doesn't trap into hypervisor, so remove them. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/vmexit.c", "new_path": "hypervisor/arch/x86/vmexit.c", "diff": "#include <hv_arch.h>\n#include <hv_debug.h>\n-static int rdtscp_handler(struct vcpu *vcpu);\nstatic int unhandled_vmexit_handler(struct vcpu *vcpu);\n-static int rdtsc_handler(...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
remove deadcode of rdtsc_handler/rdtscp_handler Guest OS rdtsc/rdtscp doesn't trap into hypervisor, so remove them. 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,713
12.04.2018 09:40:19
-28,800
7ed446e63b849eabefe476d19962f7ef879409fa
ptdev: bug fix on operating list Before using a node of list, initialize it.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/assign.c", "new_path": "hypervisor/arch/x86/assign.c", "diff": "@@ -166,6 +166,10 @@ alloc_entry(struct vm *vm, enum ptdev_intr_type type)\nASSERT(entry, \"alloc memory failed\");\nentry->type = type;\nentry->vm = vm;\n+\n+ INIT_LIST_HEAD(&...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
ptdev: bug fix on operating list Before using a node of list, initialize it. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com> Reviewed-by: Chen, Jason Cl <jason.cj.chen@intel.com>
528,713
12.04.2018 09:56:28
-28,800
52c020c6f029e714989ce93acfb431c6a41749aa
VMX: bug fix on operating vmx Switch all the referenced virtual address to physical address include ept mapping, vmcs field, vmxon, vmclear, and vmptrld.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/guest/vmsr.c", "new_path": "hypervisor/arch/x86/guest/vmsr.c", "diff": "@@ -163,7 +163,7 @@ void init_msr_emulation(struct vcpu *vcpu)\n}\n/* Set up MSR bitmap - pg 2904 24.6.9 */\n- value64 = (int64_t) vcpu->vm->arch_vm.msr_bitmap;\n+ valu...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
VMX: bug fix on operating vmx Switch all the referenced virtual address to physical address include ept mapping, vmcs field, vmxon, vmclear, and vmptrld. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Chen, Jason Cl <jason.cj.chen@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com> Signed-off-by:...
528,713
12.04.2018 14:04:23
-28,800
c5fabf55a03cd573ca2bb50d65d404bcbeade31e
sprintf: bug fix in sprintf implemented code In the case that the copy sz is 0, it is unnecessary to do copy.
[ { "change_type": "MODIFY", "old_path": "hypervisor/lib/sprintf.c", "new_path": "hypervisor/lib/sprintf.c", "diff": "@@ -634,7 +634,7 @@ static int charmem(int cmd, const char *s, int sz, void *hnd)\nn++;\n}\n- } else {\n+ } else if (sz > 0) {\nwhile (*s && n < sz) {\nif (n < param->sz - param->wrtn)...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
sprintf: bug fix in sprintf implemented code In the case that the copy sz is 0, it is unnecessary to do copy. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Chen, Jason Cl <jason.cj.chen@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com>
528,713
12.04.2018 13:57:05
-28,800
c8116fc7c973686ae2f554100c46d85f45aa25c4
spinlock: bug fix in spinlock code Using ebx will truncate the high 32bit part of 64bit virtual address. So using rbx instead of ebx.
[ { "change_type": "MODIFY", "old_path": "hypervisor/include/lib/spinlock.h", "new_path": "hypervisor/include/lib/spinlock.h", "diff": "@@ -69,13 +69,13 @@ static inline int spinlock_release(spinlock_t *lock)\n.macro spinlock_obtain lock\nmovl $1, % eax\n- lea \\lock, % ebx\n- lock xaddl % eax, SYNC_S...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
spinlock: bug fix in spinlock code Using ebx will truncate the high 32bit part of 64bit virtual address. So using rbx instead of ebx. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com>
528,722
13.04.2018 17:28:26
-28,800
f3db18b981763e7f444869550f9866765a5f4609
version: v0.1-rc4
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "#\nMAJOR_VERSION=0\nMINOR_VERSION=1\n-RC_VERSION=3\n+RC_VERSION=4\nBASEDIR := $(shell pwd)\nDM_OBJDIR ?= $(CURDIR)/build\n" }, { "change_type": "MODIFY", "old_path": "hypervisor/Ma...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
version: v0.1-rc4 Signed-off-by: Jack Ren <jack.ren@intel.com>
528,713
13.04.2018 14:51:25
-28,800
6b1782b360cf5df4cd2bb071f5869607fa6ff690
refine: remove redundant data type definition remove data defination of mmio_addr_t, vaddr_t, paddr_t, and ioport_t. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -617,7 +617,7 @@ static void start_cpus()\n/* Broadcast IPIs to all other CPUs */\nsend_startup_ipi(INTR_CPU_STARTUP_ALL_EX_SELF,\n- -1U, ((paddr_t) cpu_secondary_reset));\n+ -1U,...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
refine: remove redundant data type definition remove data defination of mmio_addr_t, vaddr_t, paddr_t, and ioport_t. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,747
13.04.2018 15:09:40
25,200
66332aca00d9be272de5b481d45ccf501473bec9
doc: doxygen improvements and known issues hiding Include more doxygen info, flag undocumented material, update .known_issues matching for known doxygen/sphinx issues
[ { "change_type": "MODIFY", "old_path": "doc/.known-issues/doc/hypercall.conf", "new_path": "doc/.known-issues/doc/hypercall.conf", "diff": "# Hypercall\n#\n#\n-# include/net/net_ip.h warnings\n-#\n^(?P<filename>[-._/\\w]+/api/hypercall_api.rst):(?P<lineno>[0-9]+): WARNING: Invalid definition: Expect...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
doc: doxygen improvements and known issues hiding Include more doxygen info, flag undocumented material, update .known_issues matching for known doxygen/sphinx issues Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
528,756
13.04.2018 14:55:21
-28,800
4eff8d10a1f73673033a7981610ba1e652d70052
IOC mediator: implement CBC protocol stack Carrier Board Communication(CBC) protocol is a duplex protocol for IOC data transfer, including physical layer, link layer, address layer and service layer. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/Makefile", "new_path": "devicemodel/Makefile", "diff": "@@ -64,6 +64,7 @@ SRCS += hw/platform/block_if.c\nSRCS += hw/platform/ioapic.c\nSRCS += hw/platform/cmos_io.c\nSRCS += hw/platform/ioc.c\n+SRCS += hw/platform/ioc_cbc.c\nSRCS += hw/pci/wdt_i63...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: implement CBC protocol stack Carrier Board Communication(CBC) protocol is a duplex protocol for IOC data transfer, including physical layer, link layer, address layer and service layer. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Reviewed-by: Liu Shuo <shuo.a....
528,756
13.04.2018 15:04:38
-28,800
a1d7cae1486fc4a35c2fd8e4135eafebcbceb08a
IOC mediator: IOC signal and group definitions This patch adds the IOC signal identities and signal group identities, that will be used by subsequent signal support patches. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -141,23 +141,426 @@ static struct ioc_ch_info ioc_ch_tbl[] = {\n{IOC_INIT_FD, IOC_DP_NONE, IOC_VIRTUAL_UART, IOC_CH_ON},\n};\n-/* TODO: Fill the tables by folow-up patches...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: IOC signal and group definitions This patch adds the IOC signal identities and signal group identities, that will be used by subsequent signal support patches. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Reviewed-by: Liu Shuo <shuo.a.liu@intel.com> Reviewed-by...
528,756
12.04.2018 18:06:35
-28,800
746d4376429ccb9cee370ad9fc216ed2298a6859
IOC mediator: support IOC signal whitelist This patch implements the signal whitelist feature. All the signal messages will be discarded if they are not existed in whitelist. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -1183,6 +1183,20 @@ ioc_init(void)\nif (ioc_ch_init(ioc) != 0)\ngoto chl_err;\n+ /* Initlialize CBC rx/tx signal and group whitelists */\n+ wlist_init_signal(cbc_rx_signal...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: support IOC signal whitelist This patch implements the signal whitelist feature. All the signal messages will be discarded if they are not existed in whitelist. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Reviewed-by: Liu Shuo <shuo.a.liu@intel.com> Reviewed-b...
528,756
13.04.2018 16:40:31
-28,800
fd5472b42127e94d9becf65d52bfaa59bc657791
IOC mediator: DEBUG: add dummy channels Add three PTY devices as dummy native channels. They are used for emulating native lifecycle channel, native signal channel and native OEM raw channel for IOC debugging. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/platform/ioc.c", "new_path": "devicemodel/hw/platform/ioc.c", "diff": "@@ -106,6 +106,12 @@ do { if (ioc_debug && dbg_file) { fprintf(dbg_file, format, arg);\\\nfflush(dbg_file); } } while (0)\n#define WPRINTF(format, arg...) printf(format, ##ar...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
IOC mediator: DEBUG: add dummy channels Add three PTY devices as dummy native channels. They are used for emulating native lifecycle channel, native signal channel and native OEM raw channel for IOC debugging. Signed-off-by: Liu Yuan <yuan1.liu@intel.com> Reviewed-by: Wang Yu <yu1.wang@intel.com> Reviewed-by: Liu Shu...
528,768
16.04.2018 19:57:05
-28,800
bb011a4316e49cc41703ff2bfd73ea3126930ab5
rename vmexit handlers this patch is to align the suffix of the handlers' name.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/ept.c", "new_path": "hypervisor/arch/x86/ept.c", "diff": "@@ -400,7 +400,7 @@ static int dm_emulate_mmio_pre(struct vcpu *vcpu, uint64_t exit_qual)\nreturn 0;\n}\n-int ept_violation_handler(struct vcpu *vcpu)\n+int ept_violation_vmexit_hand...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
rename vmexit handlers this patch is to align the suffix of the handlers' name. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
528,654
09.04.2018 09:19:35
-28,800
6560ff367ce311ef3b80320c22aa5ec594c6ea68
hv: cpu: add cpu_has_cap() API Add cpu_has_cap API for cpu feature/capability detect instead of add get_xxx_cap for each feature/capability detect. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -94,25 +94,20 @@ static void start_cpus(void);\nstatic void pcpu_sync_sleep(unsigned long *sync, int mask_bit);\nint ibrs_type;\n-static inline bool get_tsc_adjust_cap(void)\n+inl...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: cpu: add cpu_has_cap() API Add cpu_has_cap API for cpu feature/capability detect instead of add get_xxx_cap for each feature/capability detect. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
09.04.2018 10:20:03
-28,800
d7d2ef8c885e7991e8dbe305fc97f5dba2a6b34a
hv: xsave: remove is_xsave_supported Update X86_FEATURE_OSXSAVE when enabled and replace is_xsave_supported with cpu_has_cap(X86_FEATURE_OSXSAVE). Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/cpu.c", "new_path": "hypervisor/arch/x86/cpu.c", "diff": "@@ -761,18 +761,6 @@ bool is_vapic_virt_reg_supported(void)\nreturn ((cpu_caps.vapic_features & VAPIC_FEATURE_VIRT_REG) != 0);\n}\n-bool is_xsave_supported(void)\n-{\n- /*\n- *todo:\...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: xsave: remove is_xsave_supported Update X86_FEATURE_OSXSAVE when enabled and replace is_xsave_supported with cpu_has_cap(X86_FEATURE_OSXSAVE). Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
13.04.2018 13:14:12
-28,800
80d194cfb5a49f3b9cb11c9ff0a3135f0798b30c
hv: vmx_capability: add cpu_has_vmx_ept/vpid_cap API Refine and simple vmx_capability API defination. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -44,19 +44,15 @@ enum mem_map_request_type {\nPAGING_REQUEST_TYPE_UNKNOWN,\n};\n-struct mm_capability {\n- bool ept_x_only_supported;\n- /* EPT and MMU 1-GByte page supported flag...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: vmx_capability: add cpu_has_vmx_ept/vpid_cap API Refine and simple vmx_capability API defination. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,654
13.04.2018 13:21:50
-28,800
4116ddd2a0958947a057cdfb4a8adc0361016358
hv: mmu: replace cpu feature/capability detect with cpu_has_cap Since we get cpu feature/capability in boot_cpu_data at boot initialization, then there no need to get this feature/capability using cpuid again. Acked-by: Eddie Dong
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/mmu.c", "new_path": "hypervisor/arch/x86/mmu.c", "diff": "@@ -49,11 +49,6 @@ static struct vmx_capability {\nuint32_t vpid;\n} vmx_caps;\n-static struct mm_capability {\n- /* MMU 1-GByte page supported flag */\n- bool mmu_1gb_page_supported...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
hv: mmu: replace cpu feature/capability detect with cpu_has_cap Since we get cpu feature/capability in boot_cpu_data at boot initialization, then there no need to get this feature/capability using cpuid again. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
528,733
12.04.2018 17:49:23
-28,800
c8585a22e35b161e2f955eebee0b5ba7d1f7c0c2
DM: add deinit function for bvmcons Move the bvmcons enable flag from main.c to consport.c. So we don't need the flag in main.c for bvmcons. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/consport.c", "new_path": "devicemodel/core/consport.c", "diff": "#define BVM_CONSOLE_PORT 0x220\n#define BVM_CONS_SIG ('b' << 8 | 'v')\n+static bool bvmcons_enabled = false;\nstatic struct termios tio_orig, tio_new;\nstatic void\n@@ -147,7 +14...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: add deinit function for bvmcons Move the bvmcons enable flag from main.c to consport.c. So we don't need the flag in main.c for bvmcons. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
13.04.2018 10:31:37
-28,800
1a2a07476b9a6b102bd9499cf3928dc50c598a9e
DM: cleanup resource for uart. Add deinit function for uart. Another work is add resource cleanup functions which is called by other components when they are using uart. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/uart.c", "new_path": "devicemodel/hw/pci/uart.c", "diff": "@@ -106,9 +106,22 @@ pci_uart_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts)\nreturn 0;\n}\n+static void\n+pci_uart_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *o...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: cleanup resource for uart. Add deinit function for uart. Another work is add resource cleanup functions which is called by other components when they are using uart. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
13.04.2018 15:17:06
-28,800
e65b98bf365fd165ffdc028433ec46ef9cf1c3d5
DM: lpc_deinit doesn't release all resources allocated. Also refine the failure path of lpc_init to make sure all resources allocated get release. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/lpc.c", "new_path": "devicemodel/hw/pci/lpc.c", "diff": "@@ -155,6 +155,38 @@ lpc_uart_io_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,\nreturn 0;\n}\n+static void\n+lpc_deinit(struct vmctx *ctx)\n+{\n+ struct lpc_uart_vd...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: lpc_deinit doesn't release all resources allocated. Also refine the failure path of lpc_init to make sure all resources allocated get release. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
13.04.2018 16:57:55
-28,800
097aee76bf51bb7ec33625fdd428824563950cb7
DM: release mevent when doing virtual device deinit When doing warm reboot, the mevent module will not be deinitialized. We need to delete all mevent registered while deinit virutal device. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/hw/pci/virtio/virtio_console.c", "new_path": "devicemodel/hw/pci/virtio/virtio_console.c", "diff": "@@ -766,6 +766,13 @@ virtio_console_close_all(struct virtio_console *console)\nbe = (struct virtio_console_backend *)port->arg;\nif (be) {\n+ if (be...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: release mevent when doing virtual device deinit When doing warm reboot, the mevent module will not be deinitialized. We need to delete all mevent registered while deinit virutal device. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
528,733
13.04.2018 18:03:02
-28,800
96085d960fd80451a38fda4b5600e915ae710ba2
DM: release mem range allocated in init_pci Two memory ranges are allocated: - PCI ECFG - PCI hole They should be released when deinit_pci. Old code mark this two ranges not unregistered. Which is wrong for warm reboot case. Make them could be unregistered. Acked-by: Anthony Xu
[ { "change_type": "MODIFY", "old_path": "devicemodel/core/mem.c", "new_path": "devicemodel/core/mem.c", "diff": "@@ -234,6 +234,34 @@ register_mem_fallback(struct mem_range *memp)\nreturn register_mem_int(&mmio_rb_fallback, memp);\n}\n+int\n+unregister_mem_fallback(struct mem_range *memp)\n+{\n+ stru...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
DM: release mem range allocated in init_pci Two memory ranges are allocated: - PCI ECFG - PCI hole They should be released when deinit_pci. Old code mark this two ranges not unregistered. Which is wrong for warm reboot case. Make them could be unregistered. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked...
528,713
16.04.2018 11:50:56
-28,800
d02f4d4a5f5f60806fb7fda6969c0456bb7bdc06
refine: change the address arguments type of mmio access api Change the address arguments type of mmio access api from uint64_t to void*.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/interrupt.c", "new_path": "hypervisor/arch/x86/interrupt.c", "diff": "@@ -215,11 +215,11 @@ void dump_lapic(void)\n{\ndev_dbg(ACRN_DBG_INTR,\n\"LAPIC: TIME %08x, init=0x%x cur=0x%x ISR=0x%x IRR=0x%x\",\n- mmio_read_long(0xFEE00000 + LAPIC_L...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
refine: change the address arguments type of mmio access api Change the address arguments type of mmio access api from uint64_t to void*. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,713
16.04.2018 12:07:42
-28,800
c5f860e1cb5d7f6725cb9e9f366bcb96f40b85bc
MMU: bug fix on operating va <=> pa convertion Before referencing to physical address of devs such as lapic, ioapic, vtd, and uart, switch to virtual address. Use a phisical address of pml4 to write CR3.
[ { "change_type": "MODIFY", "old_path": "hypervisor/arch/x86/interrupt.c", "new_path": "hypervisor/arch/x86/interrupt.c", "diff": "@@ -215,11 +215,11 @@ void dump_lapic(void)\n{\ndev_dbg(ACRN_DBG_INTR,\n\"LAPIC: TIME %08x, init=0x%x cur=0x%x ISR=0x%x IRR=0x%x\",\n- mmio_read_long((void*)(0xFEE00000 +...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
MMU: bug fix on operating va <=> pa convertion Before referencing to physical address of devs such as lapic, ioapic, vtd, and uart, switch to virtual address. Use a phisical address of pml4 to write CR3. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
528,713
16.04.2018 12:11:29
-28,800
2a37a4de713acc8d661f1b8a279f4ac3a42e2c09
ACPI: bug fix on address convertion Before referencing to phisical address of acpi tables, switch it to virtual address.
[ { "change_type": "MODIFY", "old_path": "hypervisor/boot/acpi.c", "new_path": "hypervisor/boot/acpi.c", "diff": "@@ -107,7 +107,6 @@ struct acpi_madt_local_apic {\n};\nstatic void *global_rsdp;\n-static uint64_t madt;\nstatic struct acpi_table_rsdp*\nbiosacpi_search_rsdp(char *base, int length)\n@@ -...
C
BSD 3-Clause New or Revised License
projectacrn/acrn-hypervisor
ACPI: bug fix on address convertion Before referencing to phisical address of acpi tables, switch it to virtual address. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>