//src/hv/kvm: Begin implementing the acclerant API

The files were moved to be a little bit nicer directory-structure wise.

Errors are now thrown via exceptions. I initially wanted to do
no-exceptions, but doing so will be kind of annoying with third party
libraries and in general, so the shift to exceptions is a Good Thing.
This commit is contained in:
2026-02-15 15:25:35 -05:00
parent d34a6058fb
commit f545235e30
11 changed files with 117 additions and 52 deletions

View File

@@ -1,4 +1,14 @@
#include <hv/kvm/accelerant.hpp>
#include "utils/error.hpp"
int main(int argc, char** argv) {
try {
auto accelerant = hv::kvm::Accelerant::create();
printf("Created KVM accelerant\n");
} catch(util::ErrorException& error) {
printf("Error creating KVM Accelerant: %s\n", error.what());
}
return 0;
}