108 Star 475 Fork 237

GVPopenEuler / stratovirt

 / 详情

memory: 给region增加id

新建
需求 成员
创建于  
2023-02-27 23:03

当前region比较的实现如下:
impl PartialEq for FlatRange {
fn eq(&self, other: &Self) -> bool {
self.addr_range == other.addr_range
&& self.owner.region_type == other.owner.region_type
&& self.rom_dev_romd.unwrap_or(false) == other.rom_dev_romd.unwrap_or(false)
&& self.owner == other.owner
&& self.offset_in_region == other.offset_in_region
}
}
采用字段的地址值比较,有缺陷。如果采用value比较也会有问题。需要增加唯一id进行区分

评论 (3)

李华超 创建了需求

Hi li-huachao, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Virt, and any of the maintainers: @朱科潜 , @frankyj915 , @Bin Wu , @ZhiGang , @alexchen , @Chuan , @imxcc , @ZhangBo , @yezengruan , @limingwang , @sujerry , @李华超

openeuler-ci-bot 添加了
 
sig/Virt
标签
朱科潜 负责人设置为李华超

此issue建议分类到X86架构下

您好,我在尝试完成此issue, 可以请您到我的下游仓库中先简单的review一下吗? @李华超
https://gitee.com/anti-entropy123/stratovirt/commit/697c71a4dcfcbd6de1226b1c67f11b1b4f1656e0

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936 4831922 whoisyourdaday 1710898117
1
https://gitee.com/openeuler/stratovirt.git
git@gitee.com:openeuler/stratovirt.git
openeuler
stratovirt
stratovirt

搜索帮助