search for: page_essa

Displaying 8 results from an estimated 8 matches for "page_essa".

2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
....h 2006-09-01 12:50:25.000000000 +0200 @@ -33,6 +33,22 @@ extern struct page *mem_map; _rc; \ }) +static inline int page_host_discards(void) +{ + return MACHINE_HAS_ESSA; +} + +static inline int page_discarded(struct page *page) +{ + int state; + + if (!MACHINE_HAS_ESSA) + return 0; + state = page_essa(page, ESSA_GET_STATE); + return (state & ESSA_USTATE_MASK) == ESSA_USTATE_VOLATILE && + (state & ESSA_CSTATE_MASK) == ESSA_CSTATE_ZERO; +} + static inline void page_set_unused(struct page *page, int order) { int i; @@ -52,4 +68,27 @@ static inline void page_set_stable(struc f...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
....h 2006-09-01 12:50:25.000000000 +0200 @@ -33,6 +33,22 @@ extern struct page *mem_map; _rc; \ }) +static inline int page_host_discards(void) +{ + return MACHINE_HAS_ESSA; +} + +static inline int page_discarded(struct page *page) +{ + int state; + + if (!MACHINE_HAS_ESSA) + return 0; + state = page_essa(page, ESSA_GET_STATE); + return (state & ESSA_USTATE_MASK) == ESSA_USTATE_VOLATILE && + (state & ESSA_CSTATE_MASK) == ESSA_CSTATE_ZERO; +} + static inline void page_set_unused(struct page *page, int order) { int i; @@ -52,4 +68,27 @@ static inline void page_set_stable(struc f...
2007 Apr 18
0
[patch 2/9] Guest page hinting: unused / free pages on s390.
...define ESSA_USTATE_VOLATILE 0x0c + +#define ESSA_CSTATE_MASK 0x03 +#define ESSA_CSTATE_RESIDENT 0x00 +#define ESSA_CSTATE_PRESERVED 0x02 +#define ESSA_CSTATE_ZERO 0x03 + +extern struct page *mem_map; + +/* + * ESSA <rc-reg>,<page-address-reg>,<command-immediate> + */ +#define page_essa(_page,_command) ({ \ + int _rc; \ + asm volatile(".insn rrf,0xb9ab0000,%0,%1,%2,0" \ + : "=&d" (_rc) : "a" (((_page)-mem_map)<<PAGE_SHIFT), \ + "i" (_command)); \ + _rc; \ +}) + +static inline void page_set_unused(struct page *...
2007 Apr 18
0
[patch 2/9] Guest page hinting: unused / free pages on s390.
...define ESSA_USTATE_VOLATILE 0x0c + +#define ESSA_CSTATE_MASK 0x03 +#define ESSA_CSTATE_RESIDENT 0x00 +#define ESSA_CSTATE_PRESERVED 0x02 +#define ESSA_CSTATE_ZERO 0x03 + +extern struct page *mem_map; + +/* + * ESSA <rc-reg>,<page-address-reg>,<command-immediate> + */ +#define page_essa(_page,_command) ({ \ + int _rc; \ + asm volatile(".insn rrf,0xb9ab0000,%0,%1,%2,0" \ + : "=&d" (_rc) : "a" (((_page)-mem_map)<<PAGE_SHIFT), \ + "i" (_command)); \ + _rc; \ +}) + +static inline void page_set_unused(struct page *...
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic