Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuned arguments of QEMU to fit for acrn-unit-test #8

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3688542
unit-test: avoid invoke configure
fyin1 Oct 23, 2018
79eb582
unit-test: workaround the SMP issue.
fyin1 Oct 23, 2018
3da5b99
unit-test: update the mutliboot header
fyin1 Oct 23, 2018
c729bdd
apic: test modification
JasonChenCJ Oct 23, 2018
5de5a97
acrn-unit-test: move the test to guest directory.
fyin1 Oct 30, 2018
23cad73
acrn-unit-test: add README/COPYRIGHT
fyin1 Oct 30, 2018
6e5c23d
acrn-unit-test: Enable 2 cpu core in guest testing.
fyin1 Dec 4, 2018
73efe10
bugfix: cstart64: update selectors after switching GDT on BSP
junjiemao1 Feb 2, 2019
3bda028
cstart: initialize .bss
junjiemao1 Jan 9, 2019
3896eab
setting esp to init stack
Shawnshh Apr 2, 2019
4449b8c
fix byg of cstart.S which didn't initialize ds/es/fs/gs/ss
Apr 3, 2019
2dc0f41
Merge pull request #2 from HuiHuangShi/cesp
wenlingz Apr 19, 2019
1125692
Merge pull request #3 from nwang-intel/master
wenlingz Apr 19, 2019
d5def37
reset tss_desc to default value
yuandengliang Apr 26, 2019
e545def
reset tss_desc to default value
yuandengliang Apr 26, 2019
73d9c8a
Makefile: generate raw binaries which can be loaded directly
junjiemao1 Jan 9, 2019
a76b9f6
intel-iommu: rename to intel_iommu
junjiemao1 Feb 3, 2019
234774c
make: stitch all tests together
junjiemao1 Feb 3, 2019
94a8189
flat.lds: discard .comment and .note
junjiemao1 Apr 28, 2019
9dcf960
Merge pull request #4 from yuandengliang/3384-load-tss-err
wenlingz May 8, 2019
3b315d4
Merge pull request #1 from junjiemao1/stitched
wenlingz May 14, 2019
bfacda9
Tuned arguments of QEMU to fit for acrn-unit-test
ysun May 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.o
*.flat
*.elf
*.raw
.pc
patches
.stgit-*
Expand Down
15 changes: 5 additions & 10 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
Copyright (C) 2006 Qumranet.
Copyright (C) 2007-2017 by various contributors (see source files for details)

The kvm-unit-tests are free software; the whole package can be redistributed
and/or modified under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.

Many files in this directory and its subdirectories are also licensed under
the less restrictive GNU LGPL, version 2, or other compatible licenses. See
the individual files for details.
There are two parts unit-test:
- guest based unit test. This is inherited from kvm-unit-test and inherit the kvm-unit-test
license.
- host base unit test. This is free software and can be redistributed and/or modified under
BSD license.
1 change: 0 additions & 1 deletion README

This file was deleted.

3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is the unit-test for ACRN project. We have two type of unit-test:
- guest side. The unit-test will be run as a ACRN guest
- host side. The uni-test will be run at ACRN host side.
10 changes: 10 additions & 0 deletions guest/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Copyright (C) 2006 Qumranet.
Copyright (C) 2007-2017 by various contributors (see source files for details)

The kvm-unit-tests are free software; the whole package can be redistributed
and/or modified under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.

Many files in this directory and its subdirectories are also licensed under
the less restrictive GNU LGPL, version 2, or other compatible licenses. See
the individual files for details.
File renamed without changes.
7 changes: 6 additions & 1 deletion Makefile → guest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ all: directories $(shell cd $(SRCDIR) && git rev-parse --verify --short=8 HEAD >
standalone: all
@scripts/mkstandalone.sh

stitched: $(TEST_DIR)/stitched.raw

install: standalone
mkdir -p $(DESTDIR)
install tests/* $(DESTDIR)
Expand All @@ -114,7 +116,7 @@ libfdt_clean:
$(LIBFDT_objdir)/.*.d

distclean: clean libfdt_clean
$(RM) lib/asm config.mak $(TEST_DIR)-run msr.out cscope.* build-head
$(RM) $(TEST_DIR)-run msr.out cscope.* build-head
$(RM) -r tests logs logs.old

cscope: cscope_dirs = lib lib/libfdt lib/linux $(TEST_DIR) $(ARCH_LIBDIRS) lib/asm-generic
Expand All @@ -123,3 +125,6 @@ cscope:
find -L $(cscope_dirs) -maxdepth 1 \
-name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files
cscope -bk

unit: all
x86/run x86/$(file).flat
1 change: 1 addition & 0 deletions guest/README
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions guest/config.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SRCDIR=${shell pwd}
PREFIX=/usr/local
HOST=x86_64
ARCH=x86_64
ARCH_NAME=x86_64
PROCESSOR=x86_64
CC=gcc
CXX=g++
LD=ld
OBJCOPY=objcopy
OBJDUMP=objdump
AR=ar
ADDR2LINE=addr2line
API=
TEST_DIR=x86
FIRMWARE=
ENDIAN=
PRETTY_PRINT_STACKS=yes
ENVIRON_DEFAULT=yes
ERRATATXT=errata.txt
U32_LONG_FMT=
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions guest/lib/asm
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/x86/fwcfg.c → guest/lib/x86/fwcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ uint64_t fwcfg_get_u64(unsigned index)

unsigned fwcfg_get_nb_cpus(void)
{
return fwcfg_get_u16(FW_CFG_NB_CPUS);
return 2;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions lib/x86/setup.c → guest/lib/x86/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "fwcfg.h"
#include "alloc_phys.h"

extern char bss_start;
extern char edata;

struct mbi_bootinfo {
Expand Down Expand Up @@ -42,6 +43,11 @@ u32 initrd_size;

static char env[ENV_SIZE];

void bss_init(void)
{
memset(&bss_start, 0, &edata - &bss_start);
}

void setup_multiboot(struct mbi_bootinfo *bootinfo)
{
struct mbi_module *mods;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading