weltling
Repos
14
Followers
354
Following
3

Communication through a serial port or named pipe

41
8

Yocto layer dedicated to Cloud Hypervisor

5
4

Events

Created at 18 hours ago

cloud-hypervisor: deb: Fix changelog

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 2 days ago

cloud-hypervisor: rpm: Reset release field

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 2 days ago

cloud-hypervisor: Upgrade to 27.0

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 2 days ago

README: Fix contents entry indent

The #use-prebuilt-binaries entry shifted to the left due to wrong markup.

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

build: update to the latest kvm-ioctls

The latest kvm-ioctls contains a breaking change to its API. Now Arm's get/set_one_reg use u128 instead of u64.

Signed-off-by: Wei Liu liuwe@microsoft.com

build: enable size optimization for release profile

This reduces the binary size from 7.3M to 6.5M.

Also the build time for a clean build shrinks from 1m28s to 1m14s on my development machine (an eight-core VM on Azure). This goes against the conventional wisdom but it is what it is.

Signed-off-by: Wei Liu liuwe@microsoft.com

build: Bump textwrap from 0.15.0 to 0.15.1 in /fuzz

Bumps textwrap from 0.15.0 to 0.15.1.


updated-dependencies:

  • dependency-name: textwrap dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bump unicode-ident from 1.0.3 to 1.0.4 in /fuzz

Bumps unicode-ident from 1.0.3 to 1.0.4.


updated-dependencies:

  • dependency-name: unicode-ident dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bump semver from 1.0.13 to 1.0.14

Bumps semver from 1.0.13 to 1.0.14.


updated-dependencies:

  • dependency-name: semver dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bump textwrap from 0.15.0 to 0.15.1

Bumps textwrap from 0.15.0 to 0.15.1.


updated-dependencies:

  • dependency-name: textwrap dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bump unicode-xid from 0.2.3 to 0.2.4

Bumps unicode-xid from 0.2.3 to 0.2.4.


updated-dependencies:

  • dependency-name: unicode-xid dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

vitio-devices: rng: Avoid panic and propagate errors properly

Signed-off-by: Bo Chen chen.bo@intel.com

vitio-devices: watchdog: Avoid panic and propagate errors properly

Signed-off-by: Bo Chen chen.bo@intel.com

virtio-devices: watchdog: Update process queue design

Update the implementation of the process_queue() function to match all other virtio devices implementations. This solves some issue related to potential out-of-bound accesses to the former used_desc_heads list.

Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

devices: legacy: pl011: Move boot timestamping to warn!()

This makes it consistent with x86_64 and allows the performance metrics tooling to continue to work on aarch64.

Signed-off-by: Rob Bradford robert.bradford@intel.com

vmm: Ensure default deserialisation for "amx" feature bit

This allows a migration from a binary not compiled with struct member to be completed.

Signed-off-by: Rob Bradford robert.bradford@intel.com

vmm: Remove "amx" feature gate

Given the AMX x86 feature has been made available since kernel v5.17, and given we don't have any test validating this feature, there's no need to keep it behing a Rust feature gate.

Fixes #3996

Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

virtio-devices: balloon: Simplify the resize operation

There's no need to delegate the resize operation to the virtio-balloon thread. This can come directly from the vmm thread which will use the Balloon object to update the VIRTIO configuration and trigger the interrupt for the guest to be notified.

Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

build: Bump clap from 3.2.21 to 3.2.22 in /fuzz

Bumps clap from 3.2.21 to 3.2.22.


updated-dependencies:

  • dependency-name: clap dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bump clap from 3.2.21 to 3.2.22

Bumps clap from 3.2.21 to 3.2.22.


updated-dependencies:

  • dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

vhdx: Fix wrong alignment calculation

With the existing macro, align!(7, 4) would generate 16 which is obviously wrong. Also, given it is a macro, the compiler catch the error if the provided 'alignment' is '0'.

Signed-off-by: Bo Chen chen.bo@intel.com

qcow: Fix wrong alignment calculation

With the existing code, round_up(7, 2) would generate 6 which is obviously wrong. Also, following what's done for 'round_down()', the fixed code does not handle 'alignment == 0' explicitly.

Signed-off-by: Bo Chen chen.bo@intel.com

build: Bump libc from 0.2.132 to 0.2.133 in /fuzz

Bumps libc from 0.2.132 to 0.2.133.


updated-dependencies:

  • dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Created at 4 days ago

fileinfo: tests: Disable times sensitive tests on debug build

Signed-off-by: Anatol Belski ab@php.net

Merge branch 'PHP-8.1' into PHP-8.2

Created at 6 days ago

fileinfo: tests: Disable times sensitive tests on debug build

Signed-off-by: Anatol Belski ab@php.net

Created at 6 days ago

fileinfo: tests: Disable times sensitive tests on debug build

Signed-off-by: Anatol Belski ab@php.net

Merge branch 'PHP-8.1' into PHP-8.2

Merge branch 'PHP-8.2'

  • PHP-8.2: fileinfo: tests: Disable times sensitive tests on debug build
Created at 6 days ago
Does cloud-hypervisor v26.0+ support Centos8.4 guest image?
$ qemu-img convert CentOS-8-ec2-8.4.2105-20210603.0.x86_64.qcow2 CentOS-8-ec2-8.4.2105-20210603.0.x86_64.raw
$ fdisk -l CentOS-8-ec2-8.4.2105-20210603.0.x86_64.raw
Disk CentOS-8-ec2-8.4.2105-20210603.0.x86_64.raw: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbf86e5a5

Device                                       Boot Start      End  Sectors  Size Id Type
CentOS-8-ec2-8.4.2105-20210603.0.x86_64.raw1 *     2048 16283647 16281600  7.8G 83 Linux

First issue - the disk layout is DOS. Subsequently, the second issue - the disk most likely boots from MBR. For Cloud Hypervisor - it should be GPT and UEFI boot, that's the easiest. In further also, it would seem to me that internally the image uses LVM, which itself is not an issue but would most likely not that easy as a simple GPT layout. The kernel used and the cmdline passed to Cloud Hypervisor need to match what the image would expect - the necessary kernel drivers and the config.

Perhaps it could work out if using UEFI with CSM module, but I didn't try that so couldn't really tell. A while ago i was working on a tool to convert such images to be compatible with the standard Cloud Hypervisor funtionality - https://github.com/weltling/cloud-hypervisor-tools . It probably could be extended to convert the CentOS images, too.

Thanks

Created at 6 days ago
ci: test_windows_guest_disk_hotplug is flaky on aarch64

I've run the steps in the test manually and there doesn't seem to be an issue with the disk hotplug functionality. What I realize however, that in the aarch64 Windows guest any powershell code is tremendously slow. In short term, it might be worth a try to rewrite the tests to not use PS.

For a longer term, digging into what exactly makes powershell that unstable would be needed. I still have an aarch64 dev board, but the focus has shifted back to x86_64 at the moment. I'd suggest to try moving away from powershell first and see if it brings an improvement, the powershell issues investigation would be something to defer.

Thanks

Created at 1 week ago

rust-hypervisor-firmware: Upgrade to 0.4.1

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 1 week ago

rust-hypervisor-firmware: Upgrade to 0.4.1

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 1 week ago

edk2: Upgrade to c1166d5

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 1 week ago
weltling delete branch packaging_00
Created at 1 week ago

NEWS: Add entry for GH-8805

[ci skip]

Signed-off-by: Anatol Belski ab@php.net

Created at 1 week ago

NEWS: Add entry for GH-8805

[ci skip]

Signed-off-by: Anatol Belski ab@php.net

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: NEWS: Add entry for GH-8805

NEWS: Add entry for GH-8805

[ci skip]

Signed-off-by: Anatol Belski ab@php.net

Merge branch 'PHP-8.2'

  • PHP-8.2: NEWS: Add entry for GH-8805 NEWS: Add entry for GH-8805
Created at 1 week ago

NEWS: Add entry for GH-8805

[ci skip]

Signed-off-by: Anatol Belski ab@php.net

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: NEWS: Add entry for GH-8805

NEWS: Add entry for GH-8805

[ci skip]

Signed-off-by: Anatol Belski ab@php.net

Created at 1 week ago
closed issue
finfo returns wrong mime type for woff/woff2 files

Description

Uploaded woff/woff2 return incorrect mime type.

The following code:


// $path is a content of an uploaded woff or woff2 file

$finfo = new \finfo(\FILEINFO_MIME_TYPE));
$mimeType = $finfo->file($path); // returns "application/octet-stream"
echo $mimeType;

Resulted in this output:

returns "application/octet-stream"

But I expected this output instead:

expected result is: "font/woff"

Mime type has been fixed in libmagic/file in version 5.42.

https://github.com/file/file/commit/7a821aedc144f70ec848ea632a64db74b79563c1

PHP Version

8.1.7

Operating System

Alpine 3.16

Created at 1 week ago

fileinfo: magic: Backport mime type support for woff/woff2 fonts

Upstream patch: https://github.com/file/file/commit/7a821aedc144f70ec848ea632a64db74b79563c1

Fixes GH-8805.

Signed-off-by: Anatol Belski ab@php.net (cherry picked from commit 8a2ebe069148909a00739c83e9bcc031734bf826)

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: fileinfo: magic: Backport mime type support for woff/woff2 fonts

Merge branch 'PHP-8.2'

  • PHP-8.2: fileinfo: magic: Backport mime type support for woff/woff2 fonts
Created at 1 week ago

fileinfo: magic: Backport mime type support for woff/woff2 fonts

Upstream patch: https://github.com/file/file/commit/7a821aedc144f70ec848ea632a64db74b79563c1

Fixes GH-8805.

Signed-off-by: Anatol Belski ab@php.net (cherry picked from commit 8a2ebe069148909a00739c83e9bcc031734bf826)

Created at 1 week ago

fileinfo: magic: Backport mime type support for woff/woff2 fonts

Upstream patch: https://github.com/file/file/commit/7a821aedc144f70ec848ea632a64db74b79563c1

Fixes GH-8805.

Signed-off-by: Anatol Belski ab@php.net (cherry picked from commit 8a2ebe069148909a00739c83e9bcc031734bf826)

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: fileinfo: magic: Backport mime type support for woff/woff2 fonts
Created at 1 week ago
weltling delete branch doc_vsock_00
Created at 2 weeks ago
pull request opened
README: Fix contents entry indent

The #use-prebuilt-binaries entry shifted to the left due to wrong markup.

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com

Created at 2 weeks ago
weltling create branch readme_index_entry_00
Created at 2 weeks ago

build: bump io-uring from 0.5.5 to 0.5.6

Bumps io-uring from 0.5.5 to 0.5.6.


updated-dependencies:

  • dependency-name: io-uring dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump io-uring from 0.5.5 to 0.5.6 in /fuzz

Bumps io-uring from 0.5.5 to 0.5.6.


updated-dependencies:

  • dependency-name: io-uring dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump clap from 3.2.20 to 3.2.21 in /fuzz

Bumps clap from 3.2.20 to 3.2.21.


updated-dependencies:

  • dependency-name: clap dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

virtio-devices: pmem: Derive thiserror::Error

Signed-off-by: Bo Chen chen.bo@intel.com

virtio-devices: pmem: Report errors from 'process_queue' properly

Signed-off-by: Bo Chen chen.bo@intel.com

virtio-devices: pmem: Avoid panic and propagate errors properly

Signed-off-by: Bo Chen chen.bo@intel.com

build: bump thiserror from 1.0.34 to 1.0.35 in /fuzz

Bumps thiserror from 1.0.34 to 1.0.35.


updated-dependencies:

  • dependency-name: thiserror dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump anyhow from 1.0.64 to 1.0.65 in /fuzz

Bumps anyhow from 1.0.64 to 1.0.65.


updated-dependencies:

  • dependency-name: anyhow dependency-type: indirect update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump thiserror from 1.0.34 to 1.0.35

Bumps thiserror from 1.0.34 to 1.0.35.


updated-dependencies:

  • dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump vfio-ioctls from c52e88a to bf7c9b9

Bumps vfio-ioctls from c52e88a to bf7c9b9.


updated-dependencies:

  • dependency-name: vfio-ioctls dependency-type: direct:production ...

Signed-off-by: dependabot[bot] support@github.com

build: bump clap from 3.2.20 to 3.2.21

Bumps clap from 3.2.20 to 3.2.21.


updated-dependencies:

  • dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: bump anyhow from 1.0.64 to 1.0.65

Bumps anyhow from 1.0.64 to 1.0.65.


updated-dependencies:

  • dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

build: Bulk dependencies update

Multiple rust-vmm crates must be updated at once given the vm-memory one has been updated and they all rely on vm-memory.

  • vm-memory from 0.8.0 to 0.9.0
  • vhost from 0.4.0 to 0.5.0
  • virtio-queue from 0.5.0 to 0.6.0
  • vhost-user-backend from 0.6.0 to 0.7.0
  • linux-loader from 0.4.0 to 0.5.0

Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

performance-metrics: Move some helper functions to test_infra

The helper functions for measuring and parsing the performance of virtio-net and virtio-block devices are moved to the test_infra crate so that they be reused for integration tests of rate limiter.

Signed-off-by: Bo Chen chen.bo@intel.com

tests: Add rate limiter test for virtio net

Signed-off-by: Bo Chen chen.bo@intel.com

test_infra: Support 'rw' and 'randrw' as FIO operations

Signed-off-by: Bo Chen chen.bo@intel.com

test_infra: Add helper function to parse fio output for IOPS

Signed-off-by: Bo Chen chen.bo@intel.com

tests: Add rate limiter test for virtio block

Signed-off-by: Bo Chen chen.bo@intel.com

scripts: Add script to run rate limiter integration tests

Signed-off-by: Bo Chen chen.bo@intel.com

Jenkinsfile: Add CI worker for rate limiter tests

Given rate limiter tests are performance related, they need to be tested on a bare-metal machine. It is now using the same node as the metrics CI.

Signed-off-by: Bo Chen chen.bo@intel.com

Created at 2 weeks ago
doc: Add VSOCK doc page

Thanks for the thorough review! The suggestions are applied, I've also rebased and run aspell once more to ensure there are no more trivial fixes.

Yeah, text is not code :) Probably i rely too much on the browser spell checker, but that's not always available and using none in vim. Perhaps it might be an idea to think about integrating it as a pre-commit hook for docs. At least i'll keep in mind to use aspell when editing docs.

thanks!

Created at 2 weeks ago

doc: Add VSOCK doc page

Signed-off-by: Anatol Belski anbelski@linux.microsoft.com Co-authored-by: Sebastien Boeuf sebastien.boeuf@intel.com

Created at 2 weeks ago

Update docs/vsock.md

Co-authored-by: Sebastien Boeuf sebastien.boeuf@intel.com

Created at 2 weeks ago

Update docs/vsock.md

Co-authored-by: Sebastien Boeuf sebastien.boeuf@intel.com

Created at 2 weeks ago

Update docs/vsock.md

Co-authored-by: Sebastien Boeuf sebastien.boeuf@intel.com

Created at 2 weeks ago