v9_0_1.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package qemu
  15. func init() {
  16. RegisterCmd(
  17. newCmd_9_0_1_x86_64(),
  18. newCmd_9_0_1_aarch64(),
  19. )
  20. }
  21. func newOpt_9_0_1_x86_64() QemuOptions {
  22. return &opt_901_x86_64{
  23. baseOptions_x86_64: newBaseOptions_x86_64(),
  24. baseOptions_ge_800_x86_64: newBaseOptionsGE800_x86_64(),
  25. baseOptions_ge_310: newBaseOptionsGE310(),
  26. }
  27. }
  28. func newCmd_9_0_1_x86_64() QemuCommand {
  29. return newBaseCommand(
  30. Version_9_0_1,
  31. Arch_x86_64,
  32. newOpt_9_0_1_x86_64(),
  33. )
  34. }
  35. type opt_901_x86_64 struct {
  36. *baseOptions_x86_64
  37. *baseOptions_ge_800_x86_64
  38. *baseOptions_ge_310
  39. }
  40. func (o opt_901_x86_64) NoHpet() (bool, string) {
  41. return true, "hpet=off"
  42. }
  43. func newCmd_9_0_1_aarch64() QemuCommand {
  44. return newBaseCommand(
  45. Version_9_0_1,
  46. Arch_aarch64,
  47. newOpt_9_0_1_aarch64(),
  48. )
  49. }
  50. type opt_901_aarch64 struct {
  51. *baseOptions_aarch64
  52. *baseOptions_ge_310
  53. }
  54. func newOpt_9_0_1_aarch64() QemuOptions {
  55. return &opt_901_aarch64{
  56. baseOptions_aarch64: newBaseOptions_aarch64(),
  57. baseOptions_ge_310: newBaseOptionsGE310(),
  58. }
  59. }