diff --git "a/source/_posts/dpdk/dpdk_vdpa\347\203\255\350\277\201\347\247\273.md" "b/source/_posts/dpdk/dpdk_vdpa\347\203\255\350\277\201\347\247\273.md" index e69de29..67ad086 100644 --- "a/source/_posts/dpdk/dpdk_vdpa\347\203\255\350\277\201\347\247\273.md" +++ "b/source/_posts/dpdk/dpdk_vdpa\347\203\255\350\277\201\347\247\273.md" @@ -0,0 +1,7 @@ +```c +static __rte_always_inline void +vhost_log_page(uint8_t *log_base, uint64_t page) +{ + vhost_set_bit(page % 8, &log_base[page / 8]); +} +``` \ No newline at end of file