localtime.diff
../opennebula-4.4.0/src/vmm/LibVirtDriverKVM.cc 2013-12-09 19:52:23.919999936 +1200 | ||
---|---|---|
96 | 96 | |
97 | 97 |
bool pae = false; |
98 | 98 |
bool acpi = false; |
99 |
bool localtime = false; |
|
99 | 100 | |
100 | 101 |
int pae_found = -1; |
101 | 102 |
int acpi_found = -1; |
103 |
int localtime_found = -1; |
|
102 | 104 | |
103 | 105 |
const VectorAttribute * raw; |
104 | 106 |
string default_raw; |
... | ... | |
726 | 728 |
{ |
727 | 729 |
pae_found = features->vector_value("PAE", pae); |
728 | 730 |
acpi_found = features->vector_value("ACPI", acpi); |
731 |
localtime_found = features->vector_value("LOCALTIME", localtime); |
|
729 | 732 |
} |
730 | 733 |
} |
731 | 734 | |
... | ... | |
739 | 742 |
get_default("FEATURES", "ACPI", acpi); |
740 | 743 |
} |
741 | 744 | |
745 |
if ( localtime_found != 0 ) |
|
746 |
{ |
|
747 |
get_default("FEATURES", "LOCALTIME", localtime); |
|
748 |
} |
|
749 | ||
742 | 750 |
if( acpi || pae ) |
743 | 751 |
{ |
744 | 752 |
file << "\t<features>" << endl; |
... | ... | |
756 | 764 |
file << "\t</features>" << endl; |
757 | 765 |
} |
758 | 766 | |
767 |
if (localtime) |
|
768 |
{ |
|
769 |
file << "\t<clock offset='localtime'/>" << endl; |
|
770 |
} |
|
771 | ||
759 | 772 |
attrs.clear(); |
760 | 773 | |
761 | 774 |
// ------------------------------------------------------------------------ |