RE: [PATCH] intel-iommu: Set status bit after operation completed

2023-05-09 Thread Duan, Zhenzhong
..@gmail.com >Subject: Re: [PATCH] intel-iommu: Set status bit after operation completed > >On Thu, Mar 09, 2023 at 05:23:19PM +0800, Zhenzhong Duan wrote: >> According to SDM 11.4.4.2 Global Status Register: >> "This field is cleared by hardware when software sets the SRT

Re: [PATCH] intel-iommu: Set status bit after operation completed

2023-05-09 Thread Michael S. Tsirkin
On Thu, Mar 09, 2023 at 05:23:19PM +0800, Zhenzhong Duan wrote: > According to SDM 11.4.4.2 Global Status Register: > "This field is cleared by hardware when software sets the SRTP field in the > Global Command register. This field is set by hardware when hardware > completes the ‘Set Root Table Po

RE: [PATCH] intel-iommu: Set status bit after operation completed

2023-03-12 Thread Duan, Zhenzhong
>Subject: Re: [PATCH] intel-iommu: Set status bit after operation completed > >On Fri, Mar 10, 2023 at 02:32:13AM +, Duan, Zhenzhong wrote: >> I think it may break with special designed guest OS, >> E.x: Imagine a guest write GCMD_REG and start a new thread to do further >w

Re: [PATCH] intel-iommu: Set status bit after operation completed

2023-03-10 Thread Peter Xu
On Fri, Mar 10, 2023 at 02:32:13AM +, Duan, Zhenzhong wrote: > I think it may break with special designed guest OS, > E.x: Imagine a guest write GCMD_REG and start a new thread to do further work. > New thread find status bit in GTS_REG set and go ahead, but the address space > switch > may no

RE: [PATCH] intel-iommu: Set status bit after operation completed

2023-03-09 Thread Duan, Zhenzhong
mail.com >Subject: Re: [PATCH] intel-iommu: Set status bit after operation completed > >Hi, Zhenzhong, > >On Thu, Mar 09, 2023 at 05:23:19PM +0800, Zhenzhong Duan wrote: >> According to SDM 11.4.4.2 Global Status Register: >> "This field is cleared by hardware when

Re: [PATCH] intel-iommu: Set status bit after operation completed

2023-03-09 Thread Peter Xu
Hi, Zhenzhong, On Thu, Mar 09, 2023 at 05:23:19PM +0800, Zhenzhong Duan wrote: > According to SDM 11.4.4.2 Global Status Register: > "This field is cleared by hardware when software sets the SRTP field in the > Global Command register. This field is set by hardware when hardware > completes the ‘S

[PATCH] intel-iommu: Set status bit after operation completed

2023-03-09 Thread Zhenzhong Duan
According to SDM 11.4.4.2 Global Status Register: "This field is cleared by hardware when software sets the SRTP field in the Global Command register. This field is set by hardware when hardware completes the ‘Set Root Table Pointer’ operation using the value provided in the Root Table Address regi