Skip to content

Commit

Permalink
tools/lguest: Make lguest launcher use X86_SUBARCH_LGUEST explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgrof authored and Ingo Molnar committed Apr 22, 2016
1 parent ea17948 commit 907bb65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3351,8 +3351,8 @@ int main(int argc, char *argv[])
/* Boot protocol version: 2.07 supports the fields for lguest. */
boot->hdr.version = 0x207;

/* The hardware_subarch value of "1" tells the Guest it's an lguest. */
boot->hdr.hardware_subarch = 1;
/* X86_SUBARCH_LGUEST tells the Guest it's an lguest. */
boot->hdr.hardware_subarch = X86_SUBARCH_LGUEST;

/* Tell the entry path not to try to reload segment registers. */
boot->hdr.loadflags |= KEEP_SEGMENTS;
Expand Down

0 comments on commit 907bb65

Please sign in to comment.