Hi, In pt_bar_mapping function, r->addr should not be changed by invalid value(-1). This value(-1) causes failure of mapping BAR when I/O Space or Memory Space enable bit is updated repeatedly by native windows driver. This situation occurs in Windows Vista guest. Attached patch fixes this problem. Signed-off-by: Naoki Nishiguchi Regards, Naoki Nishiguchi