Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

arm support #27

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Conversation

weizhou-chaojixx
Copy link

No description provided.

@@ -106,17 +106,21 @@ int VM::setTSSAddress(uint64_t tss_addr) {
}

int VM::setUserMemoryRegion(kvm_userspace_memory_region *region) {
m_cpu->requestExit();
if (m_cpu) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit message looks broken

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit should go into a separate PR.

CMakeLists.txt Outdated
@@ -78,7 +78,7 @@ find_package(LIBCOROUTINE REQUIRED)
message(STATUS "Found libcoroutine ${LIBCOROUTINE_PACKAGE_VERSION}")

if(WITH_TARGET MATCHES "s2e")
# TODO: look at libcpu compile options to figure this out
# TODO: look at libcpu compile options to figure this out§
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dangling char at end of line

libs2e.cpp
s2e-kvm-io.cpp
s2e-kvm-state-arm.cpp
s2e-kvm-trace.cpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit should not be here. Please squash your previous changes.

}
#endif
else if (m_cpuBuffer->ready_for_interrupt_injection) {
} else if (m_cpuBuffer->ready_for_interrupt_injection) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit should be squashed.

@@ -287,7 +287,8 @@ void S2EKVM::initLogLevel(void) {

const char *libcpu_log_file = getenv("LIBCPU_LOG_FILE");
if (libcpu_log_file) {
logfile = fopen(libcpu_log_file, "w");
//logfile = fopen(libcpu_log_file, "w");
logfile = freopen(libcpu_log_file, "w", stdout);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this. Maybe you used it for debugging and forgot to remove?

Signed-off-by wei zhou <[email protected]>
…m env

If cpu exit due to sregs updated, the env->kvm_exit_code will be set as 1. When sregs have been synced the kvm_exit_code will be reset to 0.

Signed-off-by: wei zhou <[email protected]>
allow user to custom the memory regions

Signed-off-by: chaojixx <[email protected]>
This tells the client that the KVM is able to custom the memory regions

Signed-off-by: chaojixx <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants