RE: [PATCH V5 8/9] physmem: Add helper function to destroy CPU AddressSpace

2023-10-12 Thread Salil Mehta via
t; dar...@os.amperecomputing.com; il...@os.amperecomputing.com; > vis...@os.amperecomputing.com; karl.heub...@oracle.com; > miguel.l...@oracle.com; zhukeqian ; wangxiongfeng > (C) ; wangyanan (Y) ; > jiakern...@gmail.com; maob...@loongson.cn; lixiang...@loongson.cn; Linuxarm > > Subject: Re:

Re: [PATCH V5 8/9] physmem: Add helper function to destroy CPU AddressSpace

2023-10-11 Thread Gavin Shan
Hi Salil, On 10/12/23 10:04, Salil Mehta wrote: On 12/10/2023 00:31, Gavin Shan wrote: On 10/12/23 05:43, Salil Mehta wrote: [...] +void cpu_address_space_destroy(CPUState *cpu, int asidx) +{ +    CPUAddressSpace *cpuas; + +    assert(asidx < cpu->num_ases); +    assert(asidx == 0 || !kvm_e

Re: [PATCH V5 8/9] physmem: Add helper function to destroy CPU AddressSpace

2023-10-11 Thread Salil Mehta
Hi Gavin, On 12/10/2023 00:31, Gavin Shan wrote: Hi Salil, On 10/12/23 05:43, Salil Mehta wrote: Virtual CPU Hot-unplug leads to unrealization of a CPU object. This also involves destruction of the CPU AddressSpace. Add common function to help destroy the CPU AddressSpace. Signed-off-by: Sali

Re: [PATCH V5 8/9] physmem: Add helper function to destroy CPU AddressSpace

2023-10-11 Thread Gavin Shan
Hi Salil, On 10/12/23 05:43, Salil Mehta wrote: Virtual CPU Hot-unplug leads to unrealization of a CPU object. This also involves destruction of the CPU AddressSpace. Add common function to help destroy the CPU AddressSpace. Signed-off-by: Salil Mehta Tested-by: Vishnu Pajjuri --- include/e