Skip to content

Conversation

@razvan-cojocaru
Copy link

Hello,

You should probably sync your fork with the original libbdvmi, there have been fixes and updates since the version you've forked, so you should go for the latest version for best results.

Happy new year,
Razvan

Initial import of the libbdvmi library.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Filled in AUTHORS and basic build instructions to the README.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Cleanup in the Xen event manager code (readability, less

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added an example application that simply prints out register write
events to the console.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
The code is using namespace std for brevity, but the std:: prefix
remained in use in a few places.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added more information on the required Xen version and how to
do a quick test run for the library to the README file.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added an explicit LGPLv3 header to the hookdomain.cpp example.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added a new option, --with-xen to configure.ac, for use with
non-standard Xen installations.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Fixed the way the configure script looks for Xen headers when
the --with-xen is being used with ./configure.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
No longer using an AC_SUBST()-ed $(xendir).

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Add an extra autoreconf -fi step to the bootstrap script.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added an extra mkdir m4 step to ./bootstrap.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Now using mkdir -p m4/ in the bootstrap script.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
According to valgrind, when poll() returns -1, fd.revents will
contain random stack bytes.

Signed-off-by: Mihai Dontu <mdontu@bitdefender.com>
The Xen event manager code has been modified to now notify that
the guest is about to be shut down (as opposed to previously
notifying the client application after the domain was no longer
running).

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added a better way to detect that a guest is shutting down (while the
guest still exists).
Now using xc_monitor_emulate_each_rep().
Be more tolerant of mem_access_emulate_enable() failures.
Removed Xen 4.3 support.
Coding style fixes.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
The wrong value was being passed to the event handler for Xen
versions >= 4.6.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added Driver::getXSAVESize(), to be able to compute the XSAVE size.
Modified XenDriver::requestPageFault() to take a bitmask (errorCode)
instead of the boolean-like writeAccess.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Fixed a corner case where a crash is possible if
XenDriver::::getDomainId() throws.
Updated the source code to compile against XenServer's Dundee (7.0)
version of Xen.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Indentation fixes (especially for } else { and } catch () {.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added a xc_mem_access_disable_emulate() call to the cleanup logic.
Now ignoring what xc_mem_access_enable_emulate() returns, since the
function itself does nothing other than setting a Xen flag that no
other code checks.
Modified a rather cryptic error message to a hopefully more user-friendly
one.
Fixed a small memory leak (on error).

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Updated README.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Libbdvmi used to support in-house versions of Xen going back to 4.3.
Since 4.6 has been out for a while, and it works out of the box,
this patch removes support for the older versions.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Fixed a couple of copy/pasted messages printed to stdout.
Now creating the event handler object before the event manager.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
All domains are now considered protected.
Fixes and improvements.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Added a couple of command-line macro definitions needed to be able
to compile libbdvmi against Xen 4.7-unstable.
Fixed a small coding style issue.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
std::runtime_error will do just fine.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
mdontu-bd and others added 30 commits July 17, 2020 12:57
Updated the copyright year.
libbdvmi: added an RPM spec file
libbdvmi: fixed a compatibility issue with older versions of automake
It prevents the successful build of the project on certain platforms.
libbdvmi: renamed the linker version script
libbdvmi: define includedir in the pkg-config file
libbdvmi: fixed a crash caused by the use of an invalid std::set iterator
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
KVM: cleanup startTime_ related code
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
fix commit 'fd82e22 KVM: cleanup startTime_ related code'
add option to disable Xen support
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
fix commit '14ade80'add option to disable Xen support
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
Signed-off-by: Adalbert Lazăr <alazar@bitdefender.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants