Skip to content

Commit

Permalink
tools/kvm/kvmi/kvmi-test: use kvmi_get_maximum_gfn()
Browse files Browse the repository at this point in the history
Signed-off-by: Adalbert Lazăr <[email protected]>
  • Loading branch information
adlazar committed Aug 22, 2019
1 parent 97ff3dc commit 9849844
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/kvm/kvmi/kvmi-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ static void pause_vm( void *dom )

static int new_guest( void *dom, unsigned char ( *uuid )[16], void *ctx )
{
unsigned long long max_gfn;
int k;

printf( "New guest: " );
Expand All @@ -295,6 +296,11 @@ static int new_guest( void *dom, unsigned char ( *uuid )[16], void *ctx )

pause_vm( dom );

if ( kvmi_get_maximum_gfn( dom, &max_gfn ) )
die( "kvmi_get_maximum_gfn" );

printf( "Max gfn: 0x%llx\n", max_gfn );

Dom = dom;

return 0;
Expand Down

0 comments on commit 9849844

Please sign in to comment.