Skip to contentSkip to conversation

Pagetable updates

DISCUSSION Jacob Gorm Hansen 3 participants 5 messages Feb 19, 2004 – Feb 21, 2004

lore
Share & tools
lore
#0 lore raw

hi,

I am having a problem with some pagetable-updates that seem to by sneaking past my checks in XenoLinux. I have #undeffed CONFIG_XENO in mm/memory.c, and have checking code in place in the functions

MULTICALL_flush_page_update_queue() &
__flush_page_update_queue()

in arch/xeno/mm/hypervisor.c.

Is there anywhere else (like in asm-code somewhere) pte-updates are passed up to Xen without my knowledge?

thanks,
Jacob

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#1 lore raw
Quoted 6 lines

hi,

I am having a problem with some pagetable-updates that seem to by sneaking past my checks in XenoLinux. I have #undeffed CONFIG_XENO in mm/memory.c, and have checking code in place in the functions

Quoted 7 lines

MULTICALL_flush_page_update_queue() &
__flush_page_update_queue()

in arch/xeno/mm/hypervisor.c.

Is there anywhere else (like in asm-code somewhere) pte-updates are passed up to Xen without my knowledge?

I think page-table updates are all made via the interface you mention. Some things (e.g., LDT updates are sometimes done directly -- for example within the GPF handler).

-- Keir

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#2 lore raw

What happens if I install a PDE without setting MMU_EXTENDED_COMMAND and MMUEXT_PIN_L2_TABLE? I'd like to, for backwards compatibility's sake, have it show up in my KVA.

-Kip

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#3 lore raw

To answer my own question I can do the mapping as a separate operation, but my question still holds with regards to what pinning the "l2 table" does.

-Kip

Quoted 9 lines · Kip Macy

What happens if I install a PDE without setting MMU_EXTENDED_COMMAND and MMUEXT_PIN_L2_TABLE? I'd like to, for backwards compatibility's sake, have it show up in my KVA.

-Kip

Quoted 10 lines

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

#4 lore raw

When the refcnt of an L2 table is raised from zero, the whole page table structure is scanned to check it for safety. If the L2 table did not explicitly have its refcnt pinned to non-zero then this scanning would occur every time the table was installed into the hardware MMU.

Pinning is *only* a performance enhancement -- you can get away without using the mechanism, but it will cost you performance.

-- Keir

Quoted 4 lines

To answer my own question I can do the mapping as a separate operation, but my question still holds with regards to what pinning the "l2 table" does.

Quoted 23 lines

-Kip

Quoted 19 lines · Kip Macy

What happens if I install a PDE without setting MMU_EXTENDED_COMMAND and MMUEXT_PIN_L2_TABLE? I'd like to, for backwards compatibility's sake, have it show up in my KVA.

-Kip

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click