SMP support of MMU

Dong, Eddie
2007-05-30T02:33:46Z

Avi:
I noticed the current MMU data structure is defined as per VCPU
such as:

struct kvm_vcpu {
.....
struct list_head free_pages;
struct kvm_mmu_page page_header_buf[KVM_NUM_MMU_PAGES];
.....
}

This is a hot topics in Xen development time: whether should we
support global shadow PT or per VCPU shadow PT? Per VCPU shadow is much
close to native from architecture point of view, but definitely much
complicated in implementation. Do we really need to implement per VCPU
shadow? Xen today is still global shadow.
If global shadow is good enough, then I will try to move
free_pages and page_header_buf[KVM_NUM_MMU_PAGES] to struct kvm.
Comments?

thx,eddie