Skip to content

Commit 3063a22

Browse files
authored
Merge pull request #266 from Wenzel/xen/compat_4.18+
Xen: fix compatibility with Xen 4.18.0+
2 parents 2251a1c + 62c0ead commit 3063a22

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed

Cargo.lock

Lines changed: 27 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ nix = "^0.23.0"
4141
enum-iterator = "0.7.0"
4242
thiserror = "1.0"
4343
libc = { version = "0.2.58", optional = true }
44-
xenctrl = { version = "=0.7.0", optional = true }
44+
xenctrl = { version = "=0.9.0", optional = true }
4545
xenstore-rs = { version = "=0.3.2", optional = true }
4646
xenforeignmemory = { version = "=0.3.0", optional = true }
4747
xenevtchn = { version = "=0.2.0", optional = true }

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "pymicrovmi"
33
# note "pymicrovmi" is just a conflict free name for Cargo
44
# the Python package is named "microvmi" (setup.py)
5-
version = "0.2.15"
5+
version = "0.2.16"
66
authors = ["Mathieu Tarral <mathieu.tarral@protonmail.com>"]
77
edition = "2018"
88
description = "Python bindings for libmicrovmi"

python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN yum -y install llvm-toolset-7.0-clang llvm-toolset-7.0-clang-devel
77
# Note: the first sed disables a compiler flag that would be treated as an error
88
# the second sed disabled the compilation of qemu, which is very long and also
99
# had errors, and we don't need it anyway
10-
RUN git clone -b RELEASE-4.17.0 --depth 1 https://github.com/xen-project/xen \
10+
RUN git clone -b RELEASE-4.18.0 --depth 1 https://github.com/xen-project/xen \
1111
&& cd xen \
1212
&& yum install -y flex ninja-build dev86 xz-devel python3-devel gettext-devel iasl \
1313
ncurses-devel pixman-devel wget yajl-devel zlib-devel \

src/driver/xen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl Introspectable for Xen {
211211
fn get_vcpu_count(&self) -> Result<u16, Box<dyn Error>> {
212212
let domain_info = self
213213
.xc
214-
.domain_getinfo(self.domid)
214+
.domain_getinfolist(self.domid)
215215
.map_err(XenDriverError::from)?
216216
.ok_or("Domain info not found")?;
217217
Ok((domain_info.max_vcpu_id + 1).try_into().unwrap())

0 commit comments

Comments
 (0)