| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
virtio: support access iov with offset for Element Add helper methods to Element for reading/writing data from/to iovec buffers, which is useful for virtio-sound and similar devices. Signed-off-by: Hu Nong Da <hunongda@huawei.com> (cherry picked from commit fe322c4ff8a46e12a73ef9b7df6e54e91100c4a8) | 21 天前 | |
virtio-snd: updated the return value handling for OhVolume implementation Updated the return value handling for OhVolume implementation. Signed-off-by: Hu Nong Da <hunongda@huawei.com> (cherry picked from commit 41255f6aa5ab1c157420b542f378e79ab1de5f5a) | 21 天前 | |
Updating Rust to 1.90.0 | 5 个月前 | |
migration: support UFFD dirty bitmap tracking Extend the existing UFFD restore backend with dirty bitmap query support. Keep the upstream mappings JSON plus UFFD fd handoff unchanged, and keep the registered UFFD backend alive after restore so later QMP queries can inspect it. Build the dirty bitmap by scanning /proc/self/pagemap in large batches instead of issuing one pagemap read per page. Treat pages as populated when pagemap reports either present-in-RAM or swapped-out state, and classify a populated page as dirty when its UFFD-WP bit is clear. Re-apply UFFD write protection after each query to provide reset semantics. The pagemap batching also replaces the earlier mincore resident filter so swapped dirty pages are not missed. (cherry picked from commit 849d076996dfffc9989a061c8b80955d378c8279) | 21 天前 | |
fix mst compile error This error was introduced by commit 75ed42cc79e376c4757f907cef1bab2e1e7e43c4, it deleted the Copy trait of ByteCode, which will cause errors in mst, so change Copy to Clone should be better modification. | 1 年前 | |
machine/x86: Load ACPI and SMBIOS for x86 stdmachine direct kernel boot 1. ACPI and SMBIOS's pointer and checksum should update by hand now. 2. For standard machine, load ACPI and SMBIOS to memory when has no fwcfg. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> Signed-off-by: Fei Xu <xufei30@huawei.com> | 3 个月前 | |
Clock: add get_virtual_clock interface In scenarious such as USB passthrough, when the VM is paused, the vCPU clock must stops ticking. This prevents inaccurate timers from being trigered. In addtion, the EventLopp::get_ctx call is optimized. Signed-off-by: Mingwang Li <limingwang@huawei.com> | 2 年前 | |
util: Cleanup and Add Sync/Send Safety Annotations in util Module Improved comment alignment and readability in bitmap.rs and daemonize.rs. Fixed typos in seccomp documentation comments ("programe" -> "program"). Removed unused std::{fmt, i32} import from loop_context.rs. Added unsafe impl Sync/Send for thread safety: - List<T> in link_list.rs - EventNotifier and Timer in loop_context.rs Minor cosmetic cleanup in pixman.rs (removed trailing newline). Signed-off-by: Fei Xu <xufei30@huawei.com> | 1 年前 | |
util: Fix possible out of bound array indexing Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> | 1 年前 | |
bugfix the display frame rate The clock unit of EDID detailed timing is 10kHz, so the calculated Hz needs to be converted. Signed-off-by: Mingwang Li <limingwang@huawei.com> (cherry picked from commit 872abb05f15f7a0dda9e543780ac0b7a2bd489c7) | 21 天前 | |
deps: Clean up dependency to KVM related crates Signed-off-by: Fei Xu <xufei30@huawei.com> | 2 年前 | |
touchpad: Add BTN_TOOL_DOUBLETAP and BTN_TOOL_TRIPLETAP support Added events handling for BTN_TOOL_DOUBLETAP and BTN_TOOL_TRIPLETAP, fixing the unresponsive two-finger and three-finger gestures on linux vm. Signed-off-by: chaisong <chai_song@126.com> (cherry picked from commit 03005267361d4c1177e8841f5fcb178d4bb1ba91) | 21 天前 | |
file: obtain IO alignment size from file system DirectIO may degrade into bufferIO when not aligned, and IO will not report errors at this time. Detecting alignment by judging the return value of IO is unreliable. Directly obtain the alignment values presented by the operating system. Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> | 5 个月前 | |
event_loop: use OnceLock to replace static mut Signed-off-by: Fan Xuan Zhe <fanxuanzhe@huawei.com> Signed-off-by: Tao Chen <boby.chen@huawei.com> | 8 个月前 | |
util/AsAny: introduce three downcast APIs Now some modules using AsAny do downcast directly on wrappper, e.g. Arc. This assumes that deref can be automatically called. But AsAny trait can be automatically implemented for any types satisfying AsAny requirements due to Rust blanket impl feature. This would make deref of wrapper can't be called and then result in that wrapper's Any is returned. So let's introduce three util APIs to do downcast. The caller should call as_ref() explicitly to ensure we can ge the expected instance. Signed-off-by: Zhao Yi Min <zhaoyimin1@huawei.com> | 5 个月前 | |
util: Cleanup and Add Sync/Send Safety Annotations in util Module Improved comment alignment and readability in bitmap.rs and daemonize.rs. Fixed typos in seccomp documentation comments ("programe" -> "program"). Removed unused std::{fmt, i32} import from loop_context.rs. Added unsafe impl Sync/Send for thread safety: - List<T> in link_list.rs - EventNotifier and Timer in loop_context.rs Minor cosmetic cleanup in pixman.rs (removed trailing newline). Signed-off-by: Fei Xu <xufei30@huawei.com> | 1 年前 | |
fix: rotate logs by full date key Signed-off-by: papertager <2567587994@qq.com> (cherry picked from commit 13acd0654083e22f3ff6a30a72187b94d86446db) | 21 天前 | |
loop context: narrow lock scope to prevent deadlock The lock on event.status was previously held during the entire handler calling process, when physically unplugging a usbhost device, there may be a deadlock due to concurrency issues between the main thread's event loop handler processing and the qmp-iothread's command processing. So this patch narrow the lock scope on event.status to prevent deadlock. Signed-off-by: Fan Xuan Zhe <fanxuanzhe@huawei.com> Signed-off-by: Fei Xu <xufei30@huawei.com> | 5 个月前 | |
net: support macnat We are going to use ipvtap to support WiFi bridge feature. Ipvtap requires that the packet outgoing should use the same mac address as the master physical link commonly. But there're few exceptions to handle. So we introduce a feature named by macnat which works very smiliar with usual NAT. From the name, we can know the feature would replace the mac address with host mac for outgoing packet and replace the mac address with guest mac for incoming packet. The translation principles are below: 1. tx packets: 1) Replace the arp source mac address with the host's. 2) For unicast packets, replace the source mac address with the host's. 3) For multicast packets, do nothing. 2. rx packets: 1) Replace the arp destination mac address with the guest's only when the arp destination mac address is the host's. 2) For unicast packets, replace the destination mac address with the guest's. 3) For multicast packets, do nothing. Signed-off-by: Zhao Yi Min <zhaoyimin1@huawei.com> | 5 个月前 | |
clippy check fix Fix all kinds lint warnings given by rust compiler to make the code more readable without changing the function or logic. Signed-off-by: Fan Xuan Zhe <fanxuanzhe@huawei.com> Signed-off-by: Tao Chen <boby.chen@huawei.com> | 8 个月前 | |
util: Verify unsafe code blocks Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> | 1 年前 | |
util: Verify unsafe code blocks Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> | 1 年前 | |
Safety: Refactor the misc unsafe code Refactor unsafe code. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> | 5 个月前 | |
util/socket: add set_nonblocking interface to fixup main-loop hang issue Accepted stream is blocking mode although listening stream has been set nonblocked. This might block char device write. Then main-loop would be also blocked. So let's introduce an interface to set nonblocking and set accepted fd with nonblocking mode by default. Signed-off-by: Zhao Yi Min <zhaoyimin1@huawei.com> | 1 年前 | |
virtio-net: support tap replacement The bridged/NAT network might switch among normal tap, macvtap and ipvtap. So we need to support dynamically replace the tap link. To support it, we introduce a new qmp command for SA. When handling the command, we remove all registerred fds of rx/tx, re-realize the device and at last notify the guest driver to reset. Signed-off-by: Zhao Yi Min <zhaoyimin1@huawei.com> | 5 个月前 | |
test_helper: use OnceLock to replace static mut Use OnceLock to wrap TEST_CLOCK instead of using static mut to make the code more secure and avoid potential concurrent access. Signed-off-by: Fan Xuan Zhe <fanxuanzhe@huawei.com> Signed-off-by: Tao Chen <boby.chen@huawei.com> | 8 个月前 | |
Optimize the use of unsafe for address_space/block_backend/util/virtio module 1. Delete some unused unsafe statement. 2. Fix the satement and use of unsafe. Signed-off-by: Fei Xu <xufei30@huawei.com> | 9 个月前 | |
time: use i64 to represent the return value of gettime struct timespace is defined in time as: pub struct timespec { pub tv_sec: time_t, #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] pub tv_nsec: i64, #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))] pub tv_nsec: ::c_long, } So, we should not truncate i64 value to u32 in the public function gettime. Fix it. Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> | 1 年前 | |
migration: support UFFD dirty bitmap tracking Extend the existing UFFD restore backend with dirty bitmap query support. Keep the upstream mappings JSON plus UFFD fd handoff unchanged, and keep the registered UFFD backend alive after restore so later QMP queries can inspect it. Build the dirty bitmap by scanning /proc/self/pagemap in large batches instead of issuing one pagemap read per page. Treat pages as populated when pagemap reports either present-in-RAM or swapped-out state, and classify a populated page as dirty when its UFFD-WP bit is clear. Re-apply UFFD write protection after each query to provide reset semantics. The pagemap batching also replaces the earlier mincore resident filter so swapped dirty pages are not missed. (cherry picked from commit 849d076996dfffc9989a061c8b80955d378c8279) | 21 天前 | |
clippy: fix some cast_lossless warnings Fix some clippy warnings that were not fixed last commit (f3f0a3c432). Use command line: cargo clippy --fix --workspace --all-features --all-targets -- -Aclippy::all -Wclippy::cast_lossless Use command line in HM: cargo clippy --target aarch64-linux-ohos --features "boot_time ramfb virtio_gpu scream_ohaudio ohui_srv vnc usb_camera_oh pvpanic" -- -Aclippy::all -Wclippy::cast_lossless Note: Some header files have different type definitions in HM and Linux, and such warnings will not be fixed this time. See: machine_manager/src/socket.rs util/src/unix.rs Fix: f3f0a3c432(clippy: fix some cast_lossless warnings) Signed-off-by: liuxiangdong <liuxiangdong5@huawei.com> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 21 天前 | ||
| 21 天前 | ||
| 5 个月前 | ||
| 21 天前 | ||
| 1 年前 | ||
| 3 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 21 天前 | ||
| 2 年前 | ||
| 21 天前 | ||
| 5 个月前 | ||
| 8 个月前 | ||
| 5 个月前 | ||
| 1 年前 | ||
| 21 天前 | ||
| 5 个月前 | ||
| 5 个月前 | ||
| 8 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 5 个月前 | ||
| 1 年前 | ||
| 5 个月前 | ||
| 8 个月前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 21 天前 | ||
| 1 年前 |